Put back definitions. We're still not C++17 :/
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 7 Jun 2020 15:41:02 +0000 (17:41 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 7 Jun 2020 15:41:02 +0000 (17:41 +0200)
clang/lib/Analysis/ExprMutationAnalyzer.cpp

index e57a425..cb5cabf 100644 (file)
@@ -75,6 +75,8 @@ const auto isMoveOnly = [] {
 template <class T> struct NodeID;
 template <> struct NodeID<Expr> { static constexpr StringRef value = "expr"; };
 template <> struct NodeID<Decl> { static constexpr StringRef value = "decl"; };
+constexpr StringRef NodeID<Expr>::value;
+constexpr StringRef NodeID<Decl>::value;
 
 template <class T, class F = const Stmt *(ExprMutationAnalyzer::*)(const T *)>
 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches,