class Matcher::TypeToQualType
Declaration
template <typename TypeT>
class Matcher::TypeToQualType : public MatcherInterface { /* full declaration omitted */ };
Description
Allows the conversion of a \c Matcher<Type> to a \c Matcher<QualType>. Depending on the constructor argument, the matcher is either strict, i.e. does only matches in the absence of qualifiers, or not, i.e. simply ignores any qualifiers.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:637
Inherits from: MatcherInterface
Templates
- TypeT
Member Variables
- private const clang::ast_matchers::internal:: DynTypedMatcher InnerMatcher
Method Overview
- public llvm::Optional<clang::TraversalKind> TraversalKind() const
- public TypeToQualType<TypeT>(const Matcher<TypeT> & InnerMatcher)
- public bool matches(const clang::QualType & Node, clang::ast_matchers::internal::ASTMatchFinder * Finder, clang::ast_matchers::internal::BoundNodesTreeBuilder * Builder) const
Methods
¶llvm::Optional<clang::TraversalKind>
TraversalKind() const
llvm::Optional<clang::TraversalKind>
TraversalKind() const
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:652
¶TypeToQualType<TypeT>(
const Matcher<TypeT>& InnerMatcher)
TypeToQualType<TypeT>(
const Matcher<TypeT>& InnerMatcher)
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:641
Parameters
- const Matcher<TypeT>& InnerMatcher
¶bool matches(
const clang::QualType& Node,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
bool matches(
const clang::QualType& Node,
clang::ast_matchers::internal::ASTMatchFinder*
Finder,
clang::ast_matchers::internal::
BoundNodesTreeBuilder* Builder) const
Description
Returns true if 'Node' can be matched. May bind 'Node' to an ID via 'Builder', or recurse into the AST via 'Finder'.
Declared at: clang/include/clang/ASTMatchers/ASTMatchersInternal.h:644
Parameters
- const clang::QualType& Node
- clang::ast_matchers::internal::ASTMatchFinder* Finder
- clang::ast_matchers::internal:: BoundNodesTreeBuilder* Builder