Add -format option (disabled by default for now) to trigger formatting
of replacements.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/clang-tidy/readability-braces-around-statements-format.cpp | ||
---|---|---|
1 ↗ | (On Diff #90440) | Will clang-tidy look for a .clang-format file? |
test/clang-tidy/readability-braces-around-statements-format.cpp | ||
---|---|---|
1 ↗ | (On Diff #90440) | Good question. No idea ;) Lemme check... |
docs/clang-tidy/index.rst | ||
---|---|---|
184 ↗ | (On Diff #90442) | This looks like a separate patch? |
docs/clang-tidy/index.rst | ||
---|---|---|
184 ↗ | (On Diff #90442) | I've just pasted up-to-date -help output here. This should have been done when the -quiet option was added. |
test/clang-tidy/readability-braces-around-statements-format.cpp | ||
---|---|---|
1 ↗ | (On Diff #90440) | Yes, it will look for .clang-format file in the working directory and its parents. If there happens to be a .clang-format with different style, the test might fail. We might want to explicitly set the style or add a .clang-format file in the test directory. |
Replace the separate -format and -style options with -format-style (default is
'none', which means no formatting).
Expanded -format-style option description. Run cleanup tests with different format styles, just in case.
clang-tidy/ClangTidy.cpp | ||
---|---|---|
214 ↗ | (On Diff #90448) | Maybe still apply the replacements if formatting fails? |