Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 17113 Build 17113: arc lint + arc unit
Event Timeline
test/clang-tidy/read_file_config.cpp | ||
---|---|---|
1 | Will this work on windows? |
test/clang-tidy/read_file_config.cpp | ||
---|---|---|
1 | I believe it works on windows (although I don't have a windows machine) -- this command has been used in a few existing tests. |
Thank you for investigating and fixing this!
One comment re: the test below.
test/clang-tidy/read_file_config.cpp | ||
---|---|---|
5 | Please add a sanity check to ensure the code triggers the static analyzer check, when enabled explicitly: // RUN: clang-tidy -checks=-*,clang-analyzer-* %T/read-file-config/test.cpp | grep "clang-analyzer-*" (hint: it won't pass, since your regex in grep is incorrect ;) |
Add one more test to ensure the test code triggering "clang-analyzer-*" checks.
test/clang-tidy/read_file_config.cpp | ||
---|---|---|
5 | Done. This is valid regex, but doesn't do the expect thing, we expect to match the whole check name, which should be clang-analyzer-.* |
test/clang-tidy/read_file_config.cpp | ||
---|---|---|
5 | I didn't say the regex is invalid, I said it's incorrect (in the sense that it matches a pattern different from the one useful in this test). Anyway, thanks for the fix! One more idea is to expand the pattern a bit to make it obvious it matches a specific static analyzer warning ("warning: .* [clang-analyzer-specific.checker.Name]$"). |
Will this work on windows?