[PATCH] D129057: [clang-format] Break on AfterColon only if not followed by comment

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 3 22:19:24 PDT 2022


curdeius added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:7099
                OnePerLine);
-  verifyFormat("SomeClass::Constructor() :\n"
+  verifyFormat("SomeClass::Constructor() :         // NOLINT\n"
                "    aaaaaaaaaaaaa(aaaaaaaaaaaaaa), // Some comment\n"
----------------
You should add a test without modifying an existing one.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129057



More information about the cfe-commits mailing list