Updating a comment to clarify that SkipUntil handles balanced delimiters.
authorAaron Ballman <aaron@aaronballman.com>
Sun, 23 Feb 2020 19:33:37 +0000 (14:33 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 23 Feb 2020 19:34:19 +0000 (14:34 -0500)
clang/include/clang/Parse/Parser.h

index 621e179c382ffa1a31ee5cf9e97924f0d51b6042..879c7fdf682d60b4f4291f63724df10b560c75c5 100644 (file)
@@ -1113,7 +1113,8 @@ public:
   /// it (unless StopBeforeMatch is specified).  Because we cannot guarantee
   /// that the token will ever occur, this skips to the next token, or to some
   /// likely good stopping point.  If Flags has StopAtSemi flag, skipping will
-  /// stop at a ';' character.
+  /// stop at a ';' character. Balances (), [], and {} delimiter tokens while
+  /// skipping.
   ///
   /// If SkipUntil finds the specified token, it returns true, otherwise it
   /// returns false.