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 | 1e52dfc648ce0b25ef57ae29ef1b4337d80011ef (patch) | |
tree | 7f98634461762173d237a91bf2420778873376a5 /lib/Parse/Parser.cpp | |
parent | b6c2b3f658df5525b9c0af606b64d304e7416c2f (diff) |
Support for objextive-c++ use of property-dot syntax as receiver
in liu of a class method getter.
// rdar://8962253
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 4b2bd0d89c..820f703068 100644 --- a/lib/Parse/Parser.cpp +++ b/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); |