We can run the tools on a subset files of compilation database.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/Tooling/AllTUsExecution.cpp | ||
---|---|---|
121 | Yes, getNumOccurrences returns non-zero only when the flag is set by the command line. clang-tool -executor=all-TUs . # => getNumOccurrences() == 0 clang-tool -executor=all-TUs -filter="xx" . # > getNumOccurrences() != 0 |
lib/Tooling/AllTUsExecution.cpp | ||
---|---|---|
121 | Sorry, I meant "programmatically"... something like Filter.setInitialValue("..."). |
Remove the default value check.
lib/Tooling/AllTUsExecution.cpp | ||
---|---|---|
121 | hmm, it works the same as llvm::cl::init (getNumOccurrences returns 0). I removed this check (just use if (!Filter.match)), the reason I added here is to avoid the cost of regex match, but it seems pre-optimization. |
lib/Tooling/AllTUsExecution.cpp | ||
---|---|---|
121 | sounds good. |
Please also mention that this only applies to all-TUs.