From f55eeea4024cb05bff2c9f72968f23183e992a32 Mon Sep 17 00:00:00 2001 From: David Van Cleve Date: Fri, 23 Oct 2020 16:01:58 +0200 Subject: [PATCH] Export TemplateArgumentMatcher so clients defining custom matchers don't need to use the internal namespace This change adds another export, `using TemplateArgumentMatcher = internal::Matcher;`, to the collection of exports that put instantiations of the `clang::ast_matchers::internal::Matcher` into the `clang::ast_matchers` namespace. This makes it possible to define custom TemplateArgument matchers without reaching into the `internal` namespace. Reviewed By: klimek Differential Revision: https://reviews.llvm.org/D89920 --- clang/include/clang/ASTMatchers/ASTMatchers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 51d51d7..11886dc 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -145,6 +145,7 @@ using TypeLocMatcher = internal::Matcher; using NestedNameSpecifierMatcher = internal::Matcher; using NestedNameSpecifierLocMatcher = internal::Matcher; using CXXCtorInitializerMatcher = internal::Matcher; +using TemplateArgumentMatcher = internal::Matcher; using TemplateArgumentLocMatcher = internal::Matcher; /// @} -- 2.7.4