forked from OSchip/llvm-project
Fix a -Wlogical-op-parentheses warning; NFC
This should address bot failures like: https://lab.llvm.org/buildbot/#/builders/77/builds/18317
This commit is contained in:
parent
0f5fc4c9a6
commit
cc30d43ce4
|
@ -1758,9 +1758,9 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
|
||||||
TUK = Sema::TUK_Reference;
|
TUK = Sema::TUK_Reference;
|
||||||
else if (Tok.is(tok::l_brace) ||
|
else if (Tok.is(tok::l_brace) ||
|
||||||
(DSC != DeclSpecContext::DSC_association &&
|
(DSC != DeclSpecContext::DSC_association &&
|
||||||
(getLangOpts().CPlusPlus && Tok.is(tok::colon)) ||
|
getLangOpts().CPlusPlus && Tok.is(tok::colon)) ||
|
||||||
(isClassCompatibleKeyword() &&
|
(isClassCompatibleKeyword() &&
|
||||||
(NextToken().is(tok::l_brace) || NextToken().is(tok::colon))))) {
|
(NextToken().is(tok::l_brace) || NextToken().is(tok::colon)))) {
|
||||||
if (DS.isFriendSpecified()) {
|
if (DS.isFriendSpecified()) {
|
||||||
// C++ [class.friend]p2:
|
// C++ [class.friend]p2:
|
||||||
// A class shall not be defined in a friend declaration.
|
// A class shall not be defined in a friend declaration.
|
||||||
|
|
Loading…
Reference in New Issue