From bcc1c135a3447a8a4793a42433880cba762dbf12 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 30 Jan 2017 18:20:00 +0000 Subject: [PATCH] [ASTMatchers] Sprinkle some constexpr on the global matcher constructors. This dramatically reduces the size of the global constructors we emit for those variables in debug mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293518 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/ASTMatchers/ASTMatchersInternal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/ASTMatchers/ASTMatchersInternal.h b/include/clang/ASTMatchers/ASTMatchersInternal.h index bc75e807ce..895e0b42e4 100644 --- a/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -1459,7 +1459,7 @@ class VariadicDynCastAllOfMatcher : public VariadicFunction, Matcher, makeDynCastAllOfComposite> { public: - VariadicDynCastAllOfMatcher() {} + constexpr VariadicDynCastAllOfMatcher() {} }; /// \brief A \c VariadicAllOfMatcher object is a variadic functor that takes @@ -1477,7 +1477,7 @@ class VariadicAllOfMatcher : public VariadicFunction, Matcher, makeAllOfComposite> { public: - VariadicAllOfMatcher() {} + constexpr VariadicAllOfMatcher() {} }; /// \brief Matches nodes of type \c TLoc for which the inner @@ -1598,7 +1598,7 @@ public: struct Func : public VariadicFunction, &Self::create> { - Func() {} + constexpr Func() {} }; private: -- 2.40.0