- Update clang-format --help output after b1f0efc06acc.
- Update clang-format-diff.py help text, which apparently hasn't been updated in a while. Since git and svn examples are now part of the help text, remove them in the text following the help text.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/ClangFormat.rst | ||
---|---|---|
233 | (As far as I can tell, we don't have git clang-format docs anywhere? But that's for a different patch.) |
clang/docs/ClangFormat.rst | ||
---|---|---|
20 | This should be edited in dump_format_help.py instead. |
It looks like your clang-format review does not contain any unit tests, please try to ensure all code changes have a unit test (unless this is an NFC or refactoring, adding documentation etc..)
Add your unit tests in clang/unittests/Format and you can build with ninja FormatTests. We recommend using the verifyFormat(xxx) format of unit tests rather than EXPECT_EQ as this will ensure you change is tolerant to random whitespace changes (see FormatTest.cpp as an example)
For situations where your change is altering the TokenAnnotator.cpp which can happen if you are trying to improve the annotation phase to ensure we are correctly identifying the type of a token, please add a token annotator test in TokenAnnotatorTest.cpp
clang/docs/ClangFormat.rst | ||
---|---|---|
20 | Fixed in c47c480b1845. |
This should be edited in dump_format_help.py instead.