diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-24 17:04:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-24 17:04:48 +0000 |
commit | f919bfe282b8a94d956290dc9812b456fa2b447e (patch) | |
tree | d35a84945559ca819e5269b11f508c6f3c70deda /lib/Parse/ParseDecl.cpp | |
parent | 615c5d4674355ba830b9978f462ca7a8c5d15f85 (diff) |
random cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 6d2aad6905..4649abad46 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -1627,8 +1627,9 @@ void Parser::ParseDeclaratorInternal(Declarator &D, // C++ member pointers start with a '::' or a nested-name. // Member pointers get special handling, since there's no place for the // scope spec in the generic path below. - if ((Tok.is(tok::coloncolon) || Tok.is(tok::identifier) || - Tok.is(tok::annot_cxxscope)) && getLang().CPlusPlus) { + if (getLang().CPlusPlus && + (Tok.is(tok::coloncolon) || Tok.is(tok::identifier) || + Tok.is(tok::annot_cxxscope))) { CXXScopeSpec SS; if (ParseOptionalCXXScopeSpecifier(SS)) { if(Tok.isNot(tok::star)) { @@ -1659,7 +1660,8 @@ void Parser::ParseDeclaratorInternal(Declarator &D, tok::TokenKind Kind = Tok.getKind(); // Not a pointer, C++ reference, or block. - if (Kind != tok::star && (Kind != tok::amp || !getLang().CPlusPlus) && + if (Kind != tok::star && + (Kind != tok::amp || !getLang().CPlusPlus) && // We parse rvalue refs in C++03, because otherwise the errors are scary. (Kind != tok::ampamp || !getLang().CPlusPlus) && (Kind != tok::caret || !getLang().Blocks)) { |