]> granicus.if.org Git - clang/commitdiff
Make helpers static. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 11 Feb 2017 12:21:17 +0000 (12:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 11 Feb 2017 12:21:17 +0000 (12:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/OSLog.cpp
lib/Sema/SemaTemplateDeduction.cpp

index 09dc77e6f1be9662e94e105df301ea0c6a46d6b0..b2983932ea22747dedf86804f9c3d3d5800be5d2 100644 (file)
@@ -14,6 +14,7 @@ using namespace clang;
 using clang::analyze_os_log::OSLogBufferItem;
 using clang::analyze_os_log::OSLogBufferLayout;
 
+namespace {
 class OSLogFormatStringHandler
     : public analyze_format_string::FormatStringHandler {
 private:
@@ -165,6 +166,7 @@ public:
     }
   }
 };
+} // end anonymous namespace
 
 bool clang::analyze_os_log::computeOSLogBufferLayout(
     ASTContext &Ctx, const CallExpr *E, OSLogBufferLayout &Layout) {
index 571ef55e4dfa076c0e4bec1f5f29e7aabe114b04..48c8c2b64ebf87e0b8d07649d53470a0cbc2cbb2 100644 (file)
@@ -2336,7 +2336,7 @@ static Sema::TemplateDeductionResult ConvertDeducedTemplateArguments(
   return Sema::TDK_Success;
 }
 
-DeclContext *getAsDeclContextOrEnclosing(Decl *D) {
+static DeclContext *getAsDeclContextOrEnclosing(Decl *D) {
   if (auto *DC = dyn_cast<DeclContext>(D))
     return DC;
   return D->getDeclContext();
@@ -2436,7 +2436,7 @@ FinishTemplateArgumentDeduction(
 /// Complete template argument deduction for a class or variable template,
 /// when partial ordering against a partial specialization.
 // FIXME: Factor out duplication with partial specialization version above.
-Sema::TemplateDeductionResult FinishTemplateArgumentDeduction(
+static Sema::TemplateDeductionResult FinishTemplateArgumentDeduction(
     Sema &S, TemplateDecl *Template, bool PartialOrdering,
     const TemplateArgumentList &TemplateArgs,
     SmallVectorImpl<DeducedTemplateArgument> &Deduced,