From: Benjamin Kramer Date: Sun, 7 Jun 2020 15:15:31 +0000 (+0200) Subject: Remove global std::string. StringRef is sufficient. NFC. X-Git-Tag: llvmorg-12-init~3831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c3df70fad83daba2384fab10e026288a9571901;p=platform%2Fupstream%2Fllvm.git Remove global std::string. StringRef is sufficient. NFC. --- diff --git a/clang/lib/Analysis/ExprMutationAnalyzer.cpp b/clang/lib/Analysis/ExprMutationAnalyzer.cpp index 5e30553..e57a425 100644 --- a/clang/lib/Analysis/ExprMutationAnalyzer.cpp +++ b/clang/lib/Analysis/ExprMutationAnalyzer.cpp @@ -73,10 +73,8 @@ const auto isMoveOnly = [] { }; template struct NodeID; -template <> struct NodeID { static const std::string value; }; -template <> struct NodeID { static const std::string value; }; -const std::string NodeID::value = "expr"; -const std::string NodeID::value = "decl"; +template <> struct NodeID { static constexpr StringRef value = "expr"; }; +template <> struct NodeID { static constexpr StringRef value = "decl"; }; template const Stmt *tryEachMatch(ArrayRef Matches,