On Thu, May 28, 2015 at 4:38 PM, Richard Smith <[email protected]> wrote:
> Author: rsmith > Date: Thu May 28 18:38:53 2015 > New Revision: 238526 > > URL: http://llvm.org/viewvc/llvm-project?rev=238526&view=rev > Log: > Remove dead code. > > Modified: > cfe/trunk/lib/Sema/SemaDeclAttr.cpp > > Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=238526&r1=238525&r2=238526&view=diff > > ============================================================================== > --- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original) > +++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Thu May 28 18:38:53 2015 > @@ -3302,11 +3302,10 @@ static void handleGNUInlineAttr(Sema &S, > static void handleCallConvAttr(Sema &S, Decl *D, const AttributeList > &Attr) { > if (hasDeclarator(D)) return; > > - const FunctionDecl *FD = dyn_cast<FunctionDecl>(D); > // Diagnostic is emitted elsewhere: here we store the (valid) Attr > // in the Decl node for syntactic reasoning, e.g., pretty-printing. > CallingConv CC; > - if (S.CheckCallingConvAttr(Attr, CC, FD)) > + if (S.CheckCallingConvAttr(Attr, CC, /*FD*/nullptr)) > If you say /*FD=*/nullptr, clang-format won't add a space between the comment and what comes after it. > return; > > if (!isa<ObjCMethodDecl>(D)) { > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
