[clang] e0809bd - Fix Wparentheses warning. NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 02:26:30 PDT 2023


Author: Simon Pilgrim
Date: 2023-10-09T10:26:00+01:00
New Revision: e0809bd062220eb2eeb8ca23d3731839e18f3eee

URL: https://github.com/llvm/llvm-project/commit/e0809bd062220eb2eeb8ca23d3731839e18f3eee
DIFF: https://github.com/llvm/llvm-project/commit/e0809bd062220eb2eeb8ca23d3731839e18f3eee.diff

LOG: Fix Wparentheses warning. NFC.

Added: 
    

Modified: 
    clang/lib/Sema/SemaDecl.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index c6cb04b64f545e0..23b743d67a16b07 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -10457,10 +10457,10 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
              TemplateSpecializationType::
                  anyInstantiationDependentTemplateArguments(
                      TemplateArgs.arguments()));
-        assert(!isDependentSpecialization ||
-               (HasExplicitTemplateArgs == isDependentSpecialization) &&
-                   "dependent friend function specialization without template "
-                   "args");
+        assert((!isDependentSpecialization ||
+                (HasExplicitTemplateArgs == isDependentSpecialization)) &&
+               "dependent friend function specialization without template "
+               "args");
       } else {
         // For class-scope explicit specializations of function templates,
         // if the lexical context is dependent, then the specialization


        


More information about the cfe-commits mailing list