diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-04 21:18:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-04 21:18:45 +0000 |
commit | 7ac928b4dc15b5eeb13ea62e96330a145cc71068 (patch) | |
tree | 0b0c28a78d15e73697da23130fa4ad0c966adf42 /lib/AST/Decl.cpp | |
parent | 9bb0d280faaedd528d2af7eeaf06c9f262345ad2 (diff) |
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
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<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 @@ 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(); } |