我正在努力为我的项目运行 clang-tidy 。我正在尝试为我的项目运行 clang-tidy 以将数据发送到 Codacy。我这样做是这样的:
clang-tidy $PWD -header-filter=.*,-checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus* | ./codacy-clang-tidy-1.1.1 | \
curl -XPOST -L -H "project-token: $CODACY_PROJECT_TOKEN" \
-H "Content-type: application/json" -d @- \
"https://api.codacy.com/2.0/commit/$TRAVIS_COMMIT/issuesRemoteResults"
curl -XPOST -L -H "project-token: $CODACY_PROJECT_TOKEN" \
-H "Content-type: application/json" \
"https://api.codacy.com/2.0/commit/$TRAVIS_COMMIT/resultsFinal"
Run Code Online (Sandbox Code Playgroud)
但报错找不到编译数据:
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "/home/travis/build/mVento3/Duckvil/build"
No compilation database found in /home/travis/build/mVento3/Duckvil or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while …Run Code Online (Sandbox Code Playgroud) 我想知道hash_code()不同计算机上的 typeid 是否相同?例如:如果typeid(int).hash_code()它在另一台计算机上是一样的?