[PATCH] Pulled out cast detection in TokenAnnotator into its own function

Daniel Jasper djasper at google.com
Tue May 6 01:25:03 PDT 2014


I'd change the name, otherwise looks good.

================
Comment at: lib/Format/TokenAnnotator.cpp:821
@@ +820,3 @@
+  /// \brief Determine whether ')' is ending a cast.
+  bool determineCastUsage(const FormatToken &Tok) {
+    FormatToken *LeftOfParens = NULL;
----------------
Lets call this "rParenEndsCast" for now (not really sure what the best name is here).

http://reviews.llvm.org/D3619






More information about the cfe-commits mailing list