[PATCH] D145435: Choose style (file) from within code for use in IDEs

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 7 12:29:45 PST 2023


HazardyKnusperkeks added a comment.

I think this would be a great feature. But I also think that it needs more documentation.

You also need to make sure, that we don't change that comment, that is `SpacesInLineCommentPrefix` and `ColumnLimit` should have no effect on the comment.



================
Comment at: clang/lib/Format/Format.cpp:3544
+    if (PrefixPos != StringRef::npos &&
+        ((PrefixPos == 0) || (Code.substr(PrefixPos - 1, 1).ltrim() == ""))) {
+
----------------
Drop the extra parens.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145435/new/

https://reviews.llvm.org/D145435



More information about the cfe-commits mailing list