https://llvm.org/bugs/show_bug.cgi?id=27355
To compile with other binary output directory structures in build systems like Android.
Details
Diff Detail
Event Timeline
clang-tidy/ClangTidy.cpp | ||
---|---|---|
61 | As it is, the change leaves almost no context of where the Checkers.inc file comes from. I'd prefer to leave at least lib/StaticAnalyzer/Checkers/Checkers.inc. Will this work for you? Another question is how do you deal with other .inc files generated from .td files in llvm/lib/... or llvm/tools/clang/lib/...? |
clang-tidy/ClangTidy.cpp | ||
---|---|---|
61 | I think that the other .inc files have proper exported include paths so that you only include the final part of the name. Looking at llvm/lib/Option/CMakeLists.txt, I see the following export o fthe includes: ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Option ) Should this export actually be happening in lib/StaticAnalyzer/Checkers/CMakeLists.txt? Even in that case, it will shorten down to just the final name, without any other part of the path (like you are requesting here). |
I'm personally fine with the solution in D19393. Removing this from my dashboard until that patch lands.
As it is, the change leaves almost no context of where the Checkers.inc file comes from. I'd prefer to leave at least lib/StaticAnalyzer/Checkers/Checkers.inc. Will this work for you?
Another question is how do you deal with other .inc files generated from .td files in llvm/lib/... or llvm/tools/clang/lib/...?