summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:21:04 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:21:04 +0000
commita0a13c3649b4e988535e87e2b2e4b9e720e30b66 (patch)
tree563cc9338c1abf3b7d451adefdc24241fb742427 /clang/lib/Sema/SemaTemplate.cpp
parent52514949692b972e2c3b5b5b7640ba81678104b9 (diff)
downloadbcm5719-llvm-a0a13c3649b4e988535e87e2b2e4b9e720e30b66.tar.gz
bcm5719-llvm-a0a13c3649b4e988535e87e2b2e4b9e720e30b66.zip
Move helpers into anonymous namespaces. NFC.
llvm-svn: 277918
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index fbae4ec5c42..99f92769744 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -8607,6 +8607,7 @@ bool Sema::IsInsideALocalClassWithinATemplateFunction() {
return false;
}
+namespace {
/// \brief Walk the path from which a declaration was instantiated, and check
/// that every explicit specialization along that path is visible. This enforces
/// C++ [temp.expl.spec]/6:
@@ -8734,6 +8735,7 @@ private:
}
}
};
+} // end anonymous namespace
void Sema::checkSpecializationVisibility(SourceLocation Loc, NamedDecl *Spec) {
if (!getLangOpts().Modules)
OpenPOWER on IntegriCloud