diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-08-16 19:13:35 +0000 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-08-16 19:13:35 +0000 |
commit | a54d3798126254e5109a0bc6289f5898fdcf85b5 (patch) | |
tree | f74aff2fd59fa57fde95a3d4cc4671720da2076e | |
parent | 766288b191c1a393130f2ec953827f95454a945a (diff) | |
download | bcm5719-llvm-a54d3798126254e5109a0bc6289f5898fdcf85b5.tar.gz bcm5719-llvm-a54d3798126254e5109a0bc6289f5898fdcf85b5.zip |
[clang-tidy] Use const char* to compile with VC cl.exe.
Summary:
cl.exe does not accept constexpr char FuncBindingStr[] = ...
Differential Revision: https://reviews.llvm.org/D36761
llvm-svn: 311035
-rw-r--r-- | clang-tools-extra/clang-tidy/android/CloexecCheck.cpp | 4 | ||||
-rw-r--r-- | clang-tools-extra/clang-tidy/android/CloexecCheck.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/android/CloexecCheck.cpp b/clang-tools-extra/clang-tidy/android/CloexecCheck.cpp index 9e6c5434bce..8473f1ab81c 100644 --- a/clang-tools-extra/clang-tidy/android/CloexecCheck.cpp +++ b/clang-tools-extra/clang-tidy/android/CloexecCheck.cpp @@ -37,9 +37,9 @@ std::string buildFixMsgForStringFlag(const Expr *Arg, const SourceManager &SM, } } // namespace -constexpr char CloexecCheck::FuncDeclBindingStr[]; +const char *CloexecCheck::FuncDeclBindingStr = "funcDecl"; -constexpr char CloexecCheck::FuncBindingStr[]; +const char *CloexecCheck::FuncBindingStr ="func"; void CloexecCheck::registerMatchersImpl( MatchFinder *Finder, internal::Matcher<FunctionDecl> Function) { diff --git a/clang-tools-extra/clang-tidy/android/CloexecCheck.h b/clang-tools-extra/clang-tidy/android/CloexecCheck.h index ff3e6268f60..1c58a31368d 100644 --- a/clang-tools-extra/clang-tidy/android/CloexecCheck.h +++ b/clang-tools-extra/clang-tidy/android/CloexecCheck.h @@ -92,10 +92,10 @@ protected: int N) const; /// Binding name of the FuncDecl of a function call. - static constexpr char FuncDeclBindingStr[] = "funcDecl"; + static const char *FuncDeclBindingStr; /// Binding name of the function call expression. - static constexpr char FuncBindingStr[] = "func"; + static const char *FuncBindingStr; }; } // namespace android |