summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-modernize/tool/ClangModernize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-modernize/tool/ClangModernize.cpp')
-rw-r--r--clang-tools-extra/clang-modernize/tool/ClangModernize.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang-tools-extra/clang-modernize/tool/ClangModernize.cpp b/clang-tools-extra/clang-modernize/tool/ClangModernize.cpp
index 842a28e8e93..e8066c0960a 100644
--- a/clang-tools-extra/clang-modernize/tool/ClangModernize.cpp
+++ b/clang-tools-extra/clang-modernize/tool/ClangModernize.cpp
@@ -36,7 +36,7 @@ namespace cl = llvm::cl;
using namespace clang;
using namespace clang::tooling;
-TransformOptions GlobalOptions;
+static TransformOptions GlobalOptions;
// All options must belong to locally defined categories for them to get shown
// by -help. We explicitly hide everything else (except -help and -version).
@@ -45,7 +45,7 @@ static cl::OptionCategory FormattingCategory("Formatting Options");
static cl::OptionCategory IncludeExcludeCategory("Inclusion/Exclusion Options");
static cl::OptionCategory SerializeCategory("Serialization Options");
-const cl::OptionCategory *VisibleCategories[] = {
+static const cl::OptionCategory *VisibleCategories[] = {
&GeneralCategory, &FormattingCategory, &IncludeExcludeCategory,
&SerializeCategory, &TransformCategory, &TransformsOptionsCategory,
};
@@ -112,7 +112,7 @@ TimingDirectoryName("perf",
cl::ValueOptional, cl::value_desc("directory name"),
cl::cat(GeneralCategory));
-cl::opt<std::string> SupportedCompilers(
+static cl::opt<std::string> SupportedCompilers(
"for-compilers", cl::value_desc("string"),
cl::desc("Select transforms targeting the intersection of\n"
"language features supported by the given compilers.\n"
@@ -189,7 +189,7 @@ SerializeLocation("serialize-dir",
////////////////////////////////////////////////////////////////////////////////
-void printVersion() {
+static void printVersion() {
llvm::outs() << "clang-modernizer version " CLANG_VERSION_STRING
<< "\n";
}
@@ -248,7 +248,7 @@ static CompilerVersions handleSupportedCompilers(const char *ProgName,
return RequiredVersions;
}
-std::unique_ptr<CompilationDatabase>
+static std::unique_ptr<CompilationDatabase>
autoDetectCompilations(std::string &ErrorMessage) {
// Auto-detect a compilation database from BuildPath.
if (BuildPath.getNumOccurrences() > 0)
OpenPOWER on IntegriCloud