Silence a -Wlogical-op-parentheses diagnostic; NFC
authorAaron Ballman <aaron@aaronballman.com>
Wed, 27 Jan 2021 20:37:11 +0000 (15:37 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 27 Jan 2021 20:37:54 +0000 (15:37 -0500)
clang/include/clang/Parse/Parser.h

index 23a42f7..61996f0 100644 (file)
@@ -2694,7 +2694,7 @@ private:
                             SourceLocation *End = nullptr,
                             LateParsedAttrList *LateAttrs = nullptr) {
     if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec) ||
-        standardAttributesAllowed() && isCXX11AttributeSpecifier()) {
+        (standardAttributesAllowed() && isCXX11AttributeSpecifier())) {
       ParseAttributes(WhichAttrKinds, Attrs, End, LateAttrs);
       return true;
     }
@@ -2704,7 +2704,7 @@ private:
                             SourceLocation *End = nullptr,
                             LateParsedAttrList *LateAttrs = nullptr) {
     if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec) ||
-        standardAttributesAllowed() && isCXX11AttributeSpecifier()) {
+        (standardAttributesAllowed() && isCXX11AttributeSpecifier())) {
       ParseAttributes(WhichAttrKinds, Attrs, End, LateAttrs);
       return true;
     }