У меня есть настройка Pre-Commit Hooks Clang-Format < /code> и cpplint < /code> для моего приложения C ++ />
Как я могу это решить?#include "header/doc.hpp"
#include "header/node.hpp"
#include
#include
#include
TEST_CASE("Validate JSON Parsing") { REQUIRE(1 == 1); }
< /code>
Контент после изменений формата Clang < /h4>
#include
#include
#include
#include "header/doc.hpp"
#include "header/node.hpp"
TEST_CASE("Validate JSON Parsing") { REQUIRE(1 == 1); }
< /code>
Сообщение об ошибке из -за cpplint < /h4>
clang-format.............................................................Passed
cpplint..................................................................Failed
- hook id: cpplint
- exit code: 1
tests/test_main.cpp:6: Found C++ system header after other header. Should be: test_main.h, c system, c++ system, other. [build/include_order] [4]
tests/test_main.cpp:7: Found C++ system header after other header. Should be: test_main.h, c system, c++ system, other. [build/include_order] [4]
Done processing tests/test_main.cpp
Total errors found: 2
cppcheck.................................................................Passed
Insert license in comments...............................................Passed
Подробнее здесь: https://stackoverflow.com/questions/797 ... lint-error