<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 28, 2015 at 4:38 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rsmith<br>
Date: Thu May 28 18:38:53 2015<br>
New Revision: 238526<br>
<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D238526-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=GbW88wEwreV677n7a0-Vww4kI-RAtG9BGxw80inhzoc&s=7wstifShCaQvCYvmg2Ohcfbd48X9-RuJHfhjxmbCPno&e=" target="_blank">http://llvm.org/viewvc/llvm-project?rev=238526&view=rev</a><br>
Log:<br>
Remove dead code.<br>
<br>
Modified:<br>
cfe/trunk/lib/Sema/SemaDeclAttr.cpp<br>
<br>
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp<br>
URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_cfe_trunk_lib_Sema_SemaDeclAttr.cpp-3Frev-3D238526-26r1-3D238525-26r2-3D238526-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=BSqEv9KvKMW_Ob8SyngJ70KdZISM_ASROnREeq0cCxk&m=GbW88wEwreV677n7a0-Vww4kI-RAtG9BGxw80inhzoc&s=4YkNgARTlRlBAEF1pk_KIEtkkqpowivXwMu0tqZW6HY&e=" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=238526&r1=238525&r2=238526&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)<br>
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu May 28 18:38:53 2015<br>
@@ -3302,11 +3302,10 @@ static void handleGNUInlineAttr(Sema &S,<br>
static void handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) {<br>
if (hasDeclarator(D)) return;<br>
<br>
- const FunctionDecl *FD = dyn_cast<FunctionDecl>(D);<br>
// Diagnostic is emitted elsewhere: here we store the (valid) Attr<br>
// in the Decl node for syntactic reasoning, e.g., pretty-printing.<br>
CallingConv CC;<br>
- if (S.CheckCallingConvAttr(Attr, CC, FD))<br>
+ if (S.CheckCallingConvAttr(Attr, CC, /*FD*/nullptr))<br></blockquote><div><br></div><div>If you say /*FD=*/nullptr, clang-format won't add a space between the comment and what comes after it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
return;<br>
<br>
if (!isa<ObjCMethodDecl>(D)) {<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div></div>