Hi,

I would like to submit a patch for
https://llvm.org/bugs/show_bug.cgi?id=27400 .

Beside attaching the patch, is there anything I should be aware of? I have
not submitted a patch before.

You can find the patch attached to this mail.

Kind regards,
Mads Ravn
Index: clang-tidy/misc/MacroParenthesesCheck.cpp
===================================================================
--- clang-tidy/misc/MacroParenthesesCheck.cpp	(revision 268956)
+++ clang-tidy/misc/MacroParenthesesCheck.cpp	(working copy)
@@ -184,6 +184,9 @@
         Next.isOneOf(tok::comma, tok::greater))
       continue;
 
+    if(Prev.is(tok::kw_namespace))
+        continue;
+
     Check->diag(Tok.getLocation(), "macro argument should be enclosed in "
                                    "parentheses")
         << FixItHint::CreateInsertion(Tok.getLocation(), "(")
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to