From: Rafael Espindola Date: Fri, 4 Jan 2013 21:18:45 +0000 (+0000) Subject: Style fix: We don't use lowercase-and-underscored template parameter names. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ac928b4dc15b5eeb13ea62e96330a145cc71068;p=clang Style fix: We don't use lowercase-and-underscored template parameter names. Thanks for dgregor for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171532 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 0a9fc2f5af..8b8e1ee752 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -1177,8 +1177,8 @@ SourceRange VarDecl::getSourceRange() const { return DeclaratorDecl::getSourceRange(); } -template -static bool hasCLanguageLinkageTemplate(const decl_type &D) { +template +static bool hasCLanguageLinkageTemplate(const T &D) { // Language linkage is a C++ concept, but saying that everything in C has // C language linkage fits the implementation nicely. ASTContext &Context = D.getASTContext(); @@ -1195,7 +1195,7 @@ static bool hasCLanguageLinkageTemplate(const decl_type &D) { // If the first decl is in an extern "C" context, any other redeclaration // will have C language linkage. If the first one is not in an extern "C" // context, we would have reported an error for any other decl being in one. - const decl_type *First = D.getFirstDeclaration(); + const T *First = D.getFirstDeclaration(); return First->getDeclContext()->isExternCContext(); }