Added the DecorateReflowComments option to control whether '* ' are added
to the beginnings of continuation lines for block comments.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Sorry about the premature review, this is my first commit, and I didn't realize it wouldn't create a draft first.
- For rebuilding the docs, I assume I need to add -DLLVM_BUILD_DOCS=true to CMake and then run ninja -C build?
no you need to run
clang/doc/tools/dump_format_style.py
This will regnerate ClangFormatStyleOptions.rst from the Format.h change you have here, you then need to include that rst file in the review
clang/include/clang/Format/Format.h | ||
---|---|---|
2022 | you are not setting the default value for this so it could be uninitialized, you need to set that in the LLVMStyle section you need to ensure the == operator has been updated you should be adding a CHECK_PARSE_BOOL() unit test at a minimum but also some verifyFormat checks in clang/unittest/Format |
clang/lib/Format/BreakableToken.cpp | ||
---|---|---|
406 | So if set to false it will never add the decoration. But when set to true it still will not, if it's the first line. This is not what I'd expect reading the documentation. If you want to pursue this I think you should go for an enum with Never, Always, and <insert name here> (what we currently have). |
clang/lib/Format/BreakableToken.cpp | ||
---|---|---|
406 |
Yeah, I think that makes sense. That's what I was thinking while working on the unit tests, because I realized this was breaking the existing style. |
you are not setting the default value for this so it could be uninitialized, you need to set that in the LLVMStyle section
you need to ensure the == operator has been updated
you should be adding a CHECK_PARSE_BOOL() unit test at a minimum but also some verifyFormat checks in clang/unittest/Format