[cfe-commits] r171532 - /cfe/trunk/lib/AST/Decl.cpp

Rafael Espindola rafael.espindola at gmail.com
Fri Jan 4 13:18:46 PST 2013


Author: rafael
Date: Fri Jan  4 15:18:45 2013
New Revision: 171532

URL: http://llvm.org/viewvc/llvm-project?rev=171532&view=rev
Log:
Style fix: We don't use lowercase-and-underscored template parameter names.
Thanks for dgregor for noticing it.

Modified:
    cfe/trunk/lib/AST/Decl.cpp

Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=171532&r1=171531&r2=171532&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Fri Jan  4 15:18:45 2013
@@ -1177,8 +1177,8 @@
   return DeclaratorDecl::getSourceRange();
 }
 
-template<typename decl_type>
-static bool hasCLanguageLinkageTemplate(const decl_type &D) {
+template<typename T>
+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 @@
   // 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();
 }
 





More information about the cfe-commits mailing list