summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-31 06:11:02 +0000
committerAlp Toker <alp@nuanti.com>2014-05-31 06:11:02 +0000
commit84212df7c52662e2048a8d7eff7cd3a368ddf343 (patch)
treeec126cfee2e9145af0590e0c95d1eec86244e0b1 /clang/lib/AST/Decl.cpp
parent0757607d49e1406194991ce1c6a3fb41fadbba4a (diff)
downloadbcm5719-llvm-84212df7c52662e2048a8d7eff7cd3a368ddf343.tar.gz
bcm5719-llvm-84212df7c52662e2048a8d7eff7cd3a368ddf343.zip
Rename utility function templates
isExternCTemplate() and getLanguageLinkageTemplate() have nothing to do with templates despite the dubious naming scheme. llvm-svn: 209969
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 5c8041548a0..89470725bb3 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -1679,7 +1679,7 @@ SourceRange VarDecl::getSourceRange() const {
}
template<typename T>
-static LanguageLinkage getLanguageLinkageTemplate(const T &D) {
+static LanguageLinkage getDeclLanguageLinkage(const T &D) {
// C++ [dcl.link]p1: All function types, function names with external linkage,
// and variable names with external linkage have a language linkage.
if (!D.hasExternalFormalLinkage())
@@ -1707,7 +1707,7 @@ static LanguageLinkage getLanguageLinkageTemplate(const T &D) {
}
template<typename T>
-static bool isExternCTemplate(const T &D) {
+static bool isDeclExternC(const T &D) {
// Since the context is ignored for class members, they can only have C++
// language linkage or no language linkage.
const DeclContext *DC = D.getDeclContext();
@@ -1720,11 +1720,11 @@ static bool isExternCTemplate(const T &D) {
}
LanguageLinkage VarDecl::getLanguageLinkage() const {
- return getLanguageLinkageTemplate(*this);
+ return getDeclLanguageLinkage(*this);
}
bool VarDecl::isExternC() const {
- return isExternCTemplate(*this);
+ return isDeclExternC(*this);
}
bool VarDecl::isInExternCContext() const {
@@ -2406,11 +2406,11 @@ FunctionDecl::getCorrespondingUnsizedGlobalDeallocationFunction() const {
}
LanguageLinkage FunctionDecl::getLanguageLinkage() const {
- return getLanguageLinkageTemplate(*this);
+ return getDeclLanguageLinkage(*this);
}
bool FunctionDecl::isExternC() const {
- return isExternCTemplate(*this);
+ return isDeclExternC(*this);
}
bool FunctionDecl::isInExternCContext() const {
OpenPOWER on IntegriCloud