summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-05-09 08:23:23 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-05-09 08:23:23 +0000
commit45855df4c67960da662e8777ff520f2f0f07c5bd (patch)
treef9b4461935be0916dca5a75af1a35660cd6bc352 /clang/lib/Parse/Parser.cpp
parent28540adfcf0ec6eab41c812dfae337199f7fa641 (diff)
downloadbcm5719-llvm-45855df4c67960da662e8777ff520f2f0f07c5bd.tar.gz
bcm5719-llvm-45855df4c67960da662e8777ff520f2f0f07c5bd.zip
Recover properly if a class member declaration starts with a scope specifier
or template-id which can't be parsed. llvm-svn: 156468
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index e406b184a79..955f4558f85 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -1420,8 +1420,7 @@ bool Parser::TryAnnotateTypeOrScopeToken(bool EnteringContext, bool NeedType) {
/// TryAnnotateScopeToken - Like TryAnnotateTypeOrScopeToken but only
/// annotates C++ scope specifiers and template-ids. This returns
-/// true if the token was annotated or there was an error that could not be
-/// recovered from.
+/// true if there was an error that could not be recovered from.
///
/// Note that this routine emits an error if you call it with ::new or ::delete
/// as the current tokens, so only call it in contexts where these are invalid.
OpenPOWER on IntegriCloud