[PATCH] D92257: [clang-format] Add option to control the space at the front of a line comment

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 3 12:18:02 PST 2020


curdeius added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:963
   LLVMStyle.SpacesInCStyleCastParentheses = false;
+  LLVMStyle.SpacesInLineComments = {/*Minimum=*/1, /*Maximum=*/-1u};
   LLVMStyle.SpaceAfterCStyleCast = false;
----------------
I don't know precisely the LLVM style but does it allow more than one space (as Maximum would suggest)?
Are there any tests covering that?
And what about other styles, no need to set min/max for them?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92257



More information about the cfe-commits mailing list