mprobst accepted this revision.
mprobst added inline comments.

================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1001
+  if (TokenPosition < AllTokens.size()) {
+    FormatToken *PeekNext = AllTokens[TokenPosition];
+    return PeekNext;
----------------
nit: just `return AllTokens[TokenPosition]`?


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:1024
+    // Don't go past the end of the file.
+    if (!eof()) {
+      // Look for  return xxx = val; but not return xxx().
----------------
do you still need this, given peeknext protects against running past the doc 
end?


================
Comment at: clang/lib/Format/UnwrappedLineParser.h:188
 
+  // Peek to the next token
+  FormatToken *peekNextToken() const;
----------------
cam you document what this does to the "current token" pointer?


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

https://reviews.llvm.org/D105087

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to