summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
diff options
context:
space:
mode:
authorAngel Garcia Gomez <angelgarcia@google.com>2015-10-22 09:48:23 +0000
committerAngel Garcia Gomez <angelgarcia@google.com>2015-10-22 09:48:23 +0000
commit146b96dfcb8b4539164f8a613ea11c50932e544b (patch)
tree2c2106f87a80d1d8c16e1d5e9c0acaec9f508e2c /clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
parent31bcd2bddde3b39105da5e658d98cdb4b8c4ce16 (diff)
downloadbcm5719-llvm-146b96dfcb8b4539164f8a613ea11c50932e544b.tar.gz
bcm5719-llvm-146b96dfcb8b4539164f8a613ea11c50932e544b.zip
Make string constants in the modernize module static.
Summary: Add static to global variables, if they are not in an anonymous namespace. Reviewers: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13975 llvm-svn: 251005
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp b/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
index d90cf7ce6bc..98177975eaa 100644
--- a/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/MakeUniqueCheck.cpp
@@ -18,9 +18,9 @@ namespace clang {
namespace tidy {
namespace modernize {
-const char PointerType[] = "pointerType";
-const char ConstructorCall[] = "constructorCall";
-const char NewExpression[] = "newExpression";
+static const char PointerType[] = "pointerType";
+static const char ConstructorCall[] = "constructorCall";
+static const char NewExpression[] = "newExpression";
void MakeUniqueCheck::registerMatchers(MatchFinder *Finder) {
if (getLangOpts().CPlusPlus11) {
OpenPOWER on IntegriCloud