[PATCH] D138402: [clang-format] Correctly count a tab's width in a comment

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 01:10:00 PST 2022


owenpan accepted this revision.
owenpan added a comment.

Thanks for unstacking it!



================
Comment at: clang/unittests/Format/FormatTestComments.cpp:66-67
                     const FormatStyle &Style = getLLVMStyle()) {
     EXPECT_EQ(Code.str(), format(Code, Style)) << "Expected code is not stable";
     EXPECT_EQ(Code.str(), format(test::messUp(Code), Style));
   }
----------------
Similar to what's done in FormatTest.cpp.


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

https://reviews.llvm.org/D138402



More information about the cfe-commits mailing list