This is a fix for #53737. In addition to commas, newline characters are considered as separators of checks.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
60,040 ms | x64 debian > libFuzzer.libFuzzer::large.test | |
60,130 ms | x64 debian > lld.MachO::arm64-thunk-starvation.s | |
60,290 ms | x64 debian > lld.MachO::arm64-thunks.s |
Event Timeline
.clang-tidy | ||
---|---|---|
1–10 | This change doesn't belong in this patch. | |
clang-tools-extra/clang-tidy/GlobList.cpp | ||
30–31 | ||
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp | ||
100 | This seems like a shortcoming in llvms YAML parser. Isn't the fold character > supposed to replace newlines with spaces and strip trailing ws "-*,misc-* llvm-* -clang-* google-*" Using the pipe | instead should yield the output you are currently expecting, |
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp | ||
---|---|---|
100 | That's true. > should actually not work without a comma after each check. |
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp | ||
---|---|---|
100 | YAMLParser.h mentions that "Multi-line literal folding" is not yet implemented. |
LGTM, but please wait a day or two before landing in case @njames93 has further concerns.
Would you merge the changes, @aaron.ballman? Seems like there are no objections from others. Please use the commit details mentioned here.
I've commit on your behalf in 2b21fc5520b39fba555f4e5f2480a5651056be84, thank you for the fix!
This change doesn't belong in this patch.