[PATCH] D84306: [clang-format][NFC] Be more careful about the layout of FormatToken.

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 27 02:34:00 PDT 2020


MyDeveloperDay added a comment.

a new minor Nits but looks good.



================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:1488
         (Style.ExperimentalAutoDetectBinPacking &&
-         (Current.PackingKind == PPK_OnePerLine ||
+         (Current.getPackingKind() == PPK_OnePerLine ||
           (!BinPackInconclusiveFunctions &&
----------------
Current.is(PPK_OnePerLine)


================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:1490
           (!BinPackInconclusiveFunctions &&
-           Current.PackingKind == PPK_Inconclusive)));
+           Current.getPackingKind() == PPK_Inconclusive)));
 
----------------
Current.is(PPK_Inconclusive)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84306





More information about the cfe-commits mailing list