jackua22
jackua22
My report is about clang-tidy, not about clang++. But good point. I extracted only these headers, adna ran tidy. Without -I options it takes tbb headers from /usr/include on RHEL...
I am attaching a test case. It is a minimized result of pre-processor output. It does have unresolved symbols. For example, uint is undefined. If you define it, the first...
I cut the test to 30 lines. Having problems attaching tgz, not supported type. Inserting code here. === t1.cpp === ``` #include using node_index_t = int; class Node { public:...
tidy crashes. clang++ there is to prove that the code is valid. Compilation is OK, but static analysis fails.
Is there any update on the clang-tidy crash?
I ran the latest clang-tidy we have in-house, llvm-v18.1.6d1rh74_lnx86/bin/clang-tidy, and it crashed as before. Which exact version did you run, and how can we get this non-crashing version?
I reproduced the issue with one line `#include ` The header is from here: https://github.com/sparsehash/sparsehash/releases/tag/sparsehash-2.0.4 To reproduce: ``` /grid/common/test/llvm-v18.1.4d1rh74_lnx86/bin/clang -c -std=c++17 -stdlib=libc++ -O3 -I/grid/cva/p4/eugene/z1/ua/3party/sparsehash/include tmp.cpp /grid/common/test/llvm-v18.1.4d1rh74_lnx86/bin/clang-tidy '--checks=-*,modernize-loop-convert,modernize-make-shared,modernize-make-unique,readability-duplicate-include' -- -std=c++17 -stdlib=libc++...
I think we have a patch for #87433.
The main branch is for 18.2, 19.1 or 20.1? And, is it truly the same as another? I spent hours creating a minimal test case, as I was asked to...
Our support rebuilt LLVM 18.1.4 with the patch. No crash.