Closed qwerty472123 closed 3 weeks ago
Hi @qwerty472123,
Thanks for your report. This indeed seems incorrect. I've opened an internal issue to track this.
This will be fixed in CodeQL 2.19.0, which should be released within the next couple of weeks.
As a example:
however, when use codeql extractor by
/usr/local/bin/codeql/cpp/tools/linux64/extractor --mimic clang++ -I b -I c -c test.cpp -otest
, it showsIt includes a/c.h, which is the same with MSVC, but gcc/clang includes c/c.h.
Clang and GCC using a static context for search directory, but MSVC use a dynamic context, which caused the problem.
I wanna CodeQL extractor to support the behavior of Clang and GCC for more consistent result with the clang compiled ELF.