[ASTMatchers] Add missing definition for decompositionDecl
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 16 Sep 2020 15:28:59 +0000 (17:28 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 16 Sep 2020 15:32:29 +0000 (17:32 +0200)
Otherwise we'd get a linker error whenever decompositionDecl is ODR
used.

clang/lib/ASTMatchers/ASTMatchersInternal.cpp

index 6b17bd0..4e4e43b 100644 (file)
@@ -710,6 +710,7 @@ const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasDecl> typeAliasDecl;
 const internal::VariadicDynCastAllOfMatcher<Decl, TypeAliasTemplateDecl>
     typeAliasTemplateDecl;
 const internal::VariadicAllOfMatcher<Decl> decl;
+const internal::VariadicAllOfMatcher<DecompositionDecl> decompositionDecl;
 const internal::VariadicDynCastAllOfMatcher<Decl, LinkageSpecDecl>
     linkageSpecDecl;
 const internal::VariadicDynCastAllOfMatcher<Decl, NamedDecl> namedDecl;