aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-15 12:30:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-15 12:30:38 +0000
commita574c8909748fc0d2fd723a48334d6d2c72c8227 (patch)
treee4fa40fba5c8b8c2528dc7cd83d5c18cb6469f12 /lib/AST/Decl.cpp
parent7878a7bdebceaa8d8a893abb295027cde619e467 (diff)
Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index 433e76767c..66d698aec9 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -196,8 +196,7 @@ static bool useInlineVisibilityHidden(const NamedDecl *D) {
FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>();
}
-template<typename T>
-bool isInExternCContext(T *D) {
+template <typename T> static bool isInExternCContext(T *D) {
const T *First = D->getFirstDeclaration();
return First->getDeclContext()->isExternCContext();
}