summaryrefslogtreecommitdiffstats
path: root/clang/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
commit3e3502686bd31ae6667ef983bcd8718e08ab8da8 (patch)
tree5e57fc4f2c64e6ff2d0bb707b47ba59d8fb3236d /clang/lib/AST/Decl.cpp
parent6ecb1e78a9f497c2485037de384ea730f1ae440c (diff)
downloadbcm5719-llvm-3e3502686bd31ae6667ef983bcd8718e08ab8da8.tar.gz
bcm5719-llvm-3e3502686bd31ae6667ef983bcd8718e08ab8da8.zip
Make helper functions static.
llvm-svn: 175265
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 433e76767c4..66d698aec91 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud