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

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 11:18:46 PDT 2017


krasimir added inline comments.


================
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.
----------------
bkramer wrote:
> `for (FormatToken *Token : llvm::reverse(Tokens))`
Wow! That's so cool! Thanks!


https://reviews.llvm.org/D39498





More information about the cfe-commits mailing list