[PATCH] D39498: [clang-format] Make parseUnaryOperator non-recursive, NFCI

Benjamin Kramer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 10:53:59 PDT 2017


bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.

lg



================
Comment at: lib/Format/TokenAnnotator.cpp:1671
+    parse(PrecedenceArrowAndPeriod);
+    for (size_t I = 0, E = Tokens.size(); I < E; ++I)
+      // The actual precedence doesn't matter.
----------------
`for (FormatToken *Token : llvm::reverse(Tokens))`


https://reviews.llvm.org/D39498





More information about the cfe-commits mailing list