diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-08 18:05:59 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-02-08 18:05:59 +0000 |
commit | 87967425f93ca0e5b1ea5f0fd15f6854d99425a6 (patch) | |
tree | 265f04c1667eb06e170a1fb60305ab7528b6c83c /clang/lib/Parse/Parser.cpp | |
parent | 504f89a7e8c424a90d9ab323dc84598787f80193 (diff) | |
download | bcm5719-llvm-87967425f93ca0e5b1ea5f0fd15f6854d99425a6.tar.gz bcm5719-llvm-87967425f93ca0e5b1ea5f0fd15f6854d99425a6.zip |
Support for objextive-c++ use of property-dot syntax as receiver
in liu of a class method getter.
// rdar://8962253
llvm-svn: 125094
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 4b2bd0d89cf..820f703068c 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -1061,7 +1061,8 @@ bool Parser::TryAnnotateTypeOrScopeToken(bool EnteringContext) { // Determine whether the identifier is a type name. if (ParsedType Ty = Actions.getTypeName(*Tok.getIdentifierInfo(), Tok.getLocation(), getCurScope(), - &SS)) { + &SS, false, + NextToken().is(tok::period))) { // This is a typename. Replace the current token in-place with an // annotation type token. Tok.setKind(tok::annot_typename); |