diff options
| author | Angel Garcia Gomez <angelgarcia@google.com> | 2015-10-22 09:48:23 +0000 |
|---|---|---|
| committer | Angel Garcia Gomez <angelgarcia@google.com> | 2015-10-22 09:48:23 +0000 |
| commit | 146b96dfcb8b4539164f8a613ea11c50932e544b (patch) | |
| tree | 2c2106f87a80d1d8c16e1d5e9c0acaec9f508e2c /clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp | |
| parent | 31bcd2bddde3b39105da5e658d98cdb4b8c4ce16 (diff) | |
| download | bcm5719-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/ReplaceAutoPtrCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp b/clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp index e41a3aec602..8924f84c427 100644 --- a/clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp @@ -21,8 +21,8 @@ namespace clang { namespace tidy { namespace modernize { -const char AutoPtrTokenId[] = "AutoPrTokenId"; -const char AutoPtrOwnershipTransferId[] = "AutoPtrOwnershipTransferId"; +static const char AutoPtrTokenId[] = "AutoPrTokenId"; +static const char AutoPtrOwnershipTransferId[] = "AutoPtrOwnershipTransferId"; /// \brief Matches expressions that are lvalues. /// |

