[PATCH] D151047: [clang-format] Fix indent for selective formatting.

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 17 17:21:16 PDT 2023


owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTestSelective.cpp:643-646
+  Style.FixNamespaceComments = false;
+  Code = "namespace ns {\n"
+         "#define REF(alias) alias alias_var;\n"
+         "}"; // Format this line only
----------------
Then I'd remove `Style.FixNamespaceComments` as a factor by formatting a non-brace line.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151047



More information about the cfe-commits mailing list