summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-01-04 21:18:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-01-04 21:18:45 +0000
commit885106795ed1b01072d5ce0e8b678d65d55c3118 (patch)
tree2c3ef2f521fd4380583bd977bdfed85fa6fe80dd /clang/lib/AST/Decl.cpp
parent552074f18e922e0301671a9497003fda235476fb (diff)
downloadbcm5719-llvm-885106795ed1b01072d5ce0e8b678d65d55c3118.tar.gz
bcm5719-llvm-885106795ed1b01072d5ce0e8b678d65d55c3118.zip
Style fix: We don't use lowercase-and-underscored template parameter names.
Thanks for dgregor for noticing it. llvm-svn: 171532
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 0a9fc2f5afc..8b8e1ee7520 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud