diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-07-03 22:29:23 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-07-03 22:29:23 +0000 |
commit | cda104171088d721f627420962fc940d69c313b4 (patch) | |
tree | 52c1b07eb4948ab2c0ae79ff987d46d2882f414b /lib/Parse/Parser.cpp | |
parent | a1eec4bd198b96ef40a7c15cd0e131ca94511ad8 (diff) |
Obj-C++11 parser: turn off buffering of
c-function defined in objc class
implementation for now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index c2c4c90090..8ae0aa9976 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -775,6 +775,7 @@ bool Parser::isDeclarationAfterDeclarator() { (getLangOpts().CPlusPlus && Tok.is(tok::l_paren)) || // int X(0) -> not a function def [C++] (CurParsedObjCImpl && + !getLangOpts().CPlusPlus0x && // FIXME for Obj-C++11 parser. Tok.is(tok::l_brace)); // C-function nested in an @implementation } |