| Issue |
182526
|
| Summary |
[clang-tidy] vfsoverlay matches filename somewhat arbitrarily with compilation database
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
aengelke
|
The test custom-query-check.cpp creates a vfsoverlay with a file name main.cpp under the build directory, but if a compilation database is present (e.g. generated from CMake), clang-tidy will match any file name that is also named main.cpp for compilation flags. (We don't have many files with that name; to make this issue more obvious, use e.g. LLLexer.cpp.) In my opinion, if the path doesn't match, it shouldn't match the file for compilation flags; in any case, doing this with tests under the build directory is problematic.
Found while investigating build failures after #176420.
cc @HerrCai0907
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs