summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:12 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-01-14 14:06:37 +0100
commitdf186507e1d07c3ddba091a076ba7a33dbdc5867 (patch)
tree1a036220e7fe46703e2bc0840172068ddeffadc7 /clang/lib/AST
parentbff33bd5c83b947cccb4d6cf6ebca9dc021f716b (diff)
downloadbcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.tar.gz
bcm5719-llvm-df186507e1d07c3ddba091a076ba7a33dbdc5867.zip
Make helper functions static or move them into anonymous namespaces. NFC.
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/ASTImporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index f6c3aa1a3c1..8eb58b32ae1 100644
--- a/clang/lib/AST/ASTImporter.cpp
+++ b/clang/lib/AST/ASTImporter.cpp
@@ -3081,7 +3081,7 @@ Error ASTNodeImporter::ImportFunctionDeclBody(FunctionDecl *FromFD,
// Returns true if the given D has a DeclContext up to the TranslationUnitDecl
// which is equal to the given DC.
-bool isAncestorDeclContextOf(const DeclContext *DC, const Decl *D) {
+static bool isAncestorDeclContextOf(const DeclContext *DC, const Decl *D) {
const DeclContext *DCi = D->getDeclContext();
while (DCi != D->getTranslationUnitDecl()) {
if (DCi == DC)
OpenPOWER on IntegriCloud