[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-09 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG7b7170fa5791: [clang-format] avoid introducing multiline comments (authored by krasimir). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. Still LG Comment at: clang/lib/Format/BreakableToken.cpp:109 +// after '\'. +if (Style.isCpp()) { + StringRef::size_type LastNonBlank = krasimir wrote: > sammccall wrote: > > Do we really

[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-09 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: clang/lib/Format/BreakableToken.cpp:109 +// after '\'. +if (Style.isCpp()) { + StringRef::size_type LastNonBlank = sammccall wrote: > Do we really want to predicate this on isCpp()? `//` comments are allowe

[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-09 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 303788. krasimir marked 3 inline comments as done. krasimir added a comment. - address review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90949/new/ https://reviews.llvm.org/D90949 Files: clang/l

[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. One concern about looping, otherwise just style nits. Comment at: clang/lib/Format/BreakableToken.cpp:104 static const auto kNumberedListRegexp = llvm::Regex("^[1-9]

[PATCH] D90949: [clang-format] avoid introducing multiline comments

2020-11-06 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. krasimir requested review of this revision. In C++ with -Werror=comment, multiline comments are not allowed. clang-format could accidentally introduce multiline comments when reflowing. This adap