[PATCH] D65648: [clang-format] Add support to SpacesBeforeTrailingComments to add spaces before Block comments.

Manikishan Ghantasala via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 12:06:30 PDT 2019


Manikishan marked an inline comment as done.
Manikishan added inline comments.


================
Comment at: unittests/Format/FormatTest.cpp:3663
+  FormatStyle Style = getGoogleStyle();
+  Style.SpacesBeforeTrailingComments = 0;
   EXPECT_EQ("#define MACRO()                     \\\n"
----------------
MyDeveloperDay wrote:
> this feels odd, suggesting those using google style will get reformatted changes?
Yes, so in that case shall I add a new style variable like spacesBeforeTrailingBlockComments. Using which they can enable the style. This also supports new styles which need. spaces before Block Comments and styles which doesn't need spaces.


Repository:
  rC Clang

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

https://reviews.llvm.org/D65648





More information about the cfe-commits mailing list