Add -format option (disabled by default for now) to trigger formatting
of replacements.
Details
Diff Detail
- Build Status
Buildable 4468 Build 4468: arc lint + arc unit
Event Timeline
test/clang-tidy/readability-braces-around-statements-format.cpp | ||
---|---|---|
1 | Will clang-tidy look for a .clang-format file? |
test/clang-tidy/readability-braces-around-statements-format.cpp | ||
---|---|---|
1 | Good question. No idea ;) Lemme check... |
docs/clang-tidy/index.rst | ||
---|---|---|
184 | This looks like a separate patch? |
docs/clang-tidy/index.rst | ||
---|---|---|
184 | 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 | 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 | ||
---|---|---|
225 | Maybe still apply the replacements if formatting fails? |
Maybe still apply the replacements if formatting fails?