[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-28 Thread Adheesh Wadkar via Phabricator via cfe-commits
apwadkar added inline comments. Comment at: clang/lib/Format/BreakableToken.cpp:406 Decoration = "* "; - if (Lines.size() == 1 && !FirstInLine) { + if ((Lines.size() == 1 && !FirstInLine) || !Style.DecorateReflowedComments) { // Comments for which FirstInLine is false c

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-28 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added inline comments. Comment at: clang/lib/Format/BreakableToken.cpp:406 Decoration = "* "; - if (Lines.size() == 1 && !FirstInLine) { + if ((Lines.size() == 1 && !FirstInLine) || !Style.DecorateReflowedComments) { // Comments for which FirstInLine

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-27 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added inline comments. Comment at: clang/include/clang/Format/Format.h:2022 + /// \version 17 + bool DecorateReflowedComments; + you are not setting the default value for this so it could be uninitialized, you need to set that in the LLVMStyle s

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-27 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. 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 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-26 Thread Adheesh Wadkar via Phabricator via cfe-commits
apwadkar added a comment. 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`? Repository: rG LLVM Github Monorepo

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-26 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. You need to add unit tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D146926/new/ https://reviews.llvm.org/D146926 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-26 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. You need to regenerate the documentation after changing Format.h Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D146926/new/ https://reviews.llvm.org/D146926 ___ cfe-commits

[PATCH] D146926: [clang-format] Add option to decorate reflowed block comments

2023-03-26 Thread Adheesh Wadkar via Phabricator via cfe-commits
apwadkar created this revision. Herald added a project: All. apwadkar requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Added the DecorateReflowComments option to control whether '* ' are added to the beginnings of continuation lines for bloc