Skip to content

Commit

Permalink
Merge pull request #395 from andreasfertig/clang12Support
Browse files Browse the repository at this point in the history
Added support for Clang 12.
  • Loading branch information
andreasfertig authored Apr 22, 2021
2 parents ba63e91 + 8239c1e commit c984b8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion GlobalVariableHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ using namespace clang::ast_matchers;

namespace clang::ast_matchers {
const internal::VariadicDynCastAllOfMatcher<Decl, VarTemplateSpecializationDecl> varTemplateSpecDecl; // NOLINT
const internal::VariadicDynCastAllOfMatcher<Decl, DecompositionDecl> decompositionDecl; // NOLINT
#if IS_CLANG_NEWER_THAN(11)
#else
// Clang 12 has decompositionDecl but with different type
const internal::VariadicDynCastAllOfMatcher<Decl, DecompositionDecl> decompositionDecl; // NOLINT
#endif

// XXX: recent clang source has a declType matcher. Try to figure out a migration path.
const internal::VariadicDynCastAllOfMatcher<Type, DecltypeType> myDecltypeType; // NOLINT
} // namespace clang::ast_matchers
Expand Down

0 comments on commit c984b8e

Please sign in to comment.