1. 22 Aug, 2024 1 commit
  2. 21 Aug, 2024 1 commit
  3. 18 Aug, 2024 1 commit
  4. 06 Aug, 2024 2 commits
  5. 05 Aug, 2024 2 commits
  6. 02 Aug, 2024 2 commits
    • Josiah VanderZee's avatar
      Run format target from project root · b11eaf16
      Josiah VanderZee authored
      The CMake format target does not use the correct .clang-format file in
      out-of-source builds. This instructs CMake to use the project root as
      the working directory for running the clang-format command so that it
      finds the .clang-format file.
      b11eaf16
    • Josiah VanderZee's avatar
      Use c-strings to constant initialize token array · 9f7babc3
      Josiah VanderZee authored
      Since `std::string` has to be dynamically constructed and destructed,
      it could be accessed before initialization or after destruction in a
      multithreaded context. By using constant c-strings instead, we guarantee
      that the array will be valid for the whole lifetime of the program. The
      use of `constexpr` also enforces this requirement.
      
      I have run clang-format on the file to format my changes according to
      CONTRIBUTING.md.
      9f7babc3
  7. 17 Jul, 2024 1 commit
  8. 02 May, 2024 1 commit
  9. 22 Feb, 2024 2 commits
  10. 28 Jan, 2024 1 commit
  11. 26 Jan, 2024 2 commits
  12. 04 Jan, 2024 2 commits
  13. 28 Dec, 2023 1 commit
  14. 14 Dec, 2023 2 commits
  15. 27 Nov, 2023 2 commits
  16. 07 Nov, 2023 2 commits
  17. 23 Oct, 2023 1 commit
  18. 22 Oct, 2023 1 commit
  19. 12 Oct, 2023 4 commits
  20. 11 Oct, 2023 2 commits
  21. 21 Sep, 2023 1 commit
  22. 17 Sep, 2023 2 commits
  23. 10 Sep, 2023 2 commits
    • Kefu Chai's avatar
      CI: test with supported C++ standards (#1226) · 016b2e77
      Kefu Chai authored
      
      
      * CI: test with supported C++ standards
      
      let's test with the supported standards for better coverage.
      C++23 standard was just out, but the support on the toolchain is
      not quite ready yet. so let's leave it for a future change.
      Signed-off-by: default avatarKefu Chai <tchaikov@gmail.com>
      
      * CI: drop redundant Build step
      
      "Build Tests" is strictly a superset of "Build". in addition to
      the library, the former builds the tests also. both these
      steps share the same set of command line arguments. by removing
      "Build" step, we don't lose anything regarding the test coverage
      and information for further investigation if the build fails.
      Signed-off-by: default avatarKefu Chai <tchaikov@gmail.com>
      
      ---------
      Signed-off-by: default avatarKefu Chai <tchaikov@gmail.com>
      016b2e77
    • Kefu Chai's avatar
      Revert "node/convert: relax the check for string_view (#1222)" (#1225) · 2383e6d0
      Kefu Chai authored
      This reverts commit 62622011.
      
      in 62622011, we wanted address the needs to use the `string_view`
      converter in C++98, but that requirement was based on wrong
      preconditions. `std::string_view` was introduced in C++17, and
      popular standard libraries like libstdc++ and libc++ both provide
      `std::string_view` when the source is built with C++17.
      
      furthermore 62622011 is buggy. because it uses `<version>` to tell
      the feature set provided by the standard library. but `<version>`
      is a part of C++20. so this defeats the purpose of the change of
      62622011.
      
      Fixes #1223
      2383e6d0
  24. 06 Sep, 2023 1 commit
  25. 19 Aug, 2023 1 commit
    • Gianfranco Costamagna's avatar
      Fix testsuite with gcc-13 (#1216) · fcbb8193
      Gianfranco Costamagna authored
      cd /<<PKGBUILDDIR>>/build-static/test && /usr/bin/c++ -DYAML_CPP_STATIC_DEFINE -I/<<PKGBUILDDIR>>/test/integration -I/<<PKGBUILDDIR>>/test -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -isystem /usr/src/googletest/googlemock/include -isystem /usr/src/googletest/googlemock -isystem /usr/src/googletest/googletest/include -isystem /usr/src/googletest/googletest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/yaml-cpp-0.8.0+dfsg-1~build1 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wno-variadic-macros -Wno-sign-compare -DGTEST_HAS_PTHREAD=1 -MD -MT test/CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -MF CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o.d -o CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o -c /<<PKGBUILDDIR>>/test/binary_test.cpp
      /<<PKGBUILDDIR>>/test/binary_test.cpp: In member function ‘virtual void BinaryTest_DecodingNoCrashOnNegative_Test::TestBody()’:
      /<<PKGBUILDDIR>>/test/binary_test.cpp:11:38: error: narrowing conversion of ‘-58’ from ‘int’ to ‘char’ [-Wnarrowing]
         11 |   std::string input{-58, -1, -99, 109};
            |                                      ^
      fcbb8193