class CollectMatchesCallback
Declaration
class CollectMatchesCallback : public MatchCallback { /* full declaration omitted */ };
Description
Called when the Match registered for it was successfully found in the AST.
Declared at: clang/include/clang/ASTMatchers/ASTMatchFinder.h:286
Inherits from: MatchFinder::MatchCallback
Member Variables
- public SmallVector<clang::ast_matchers::BoundNodes, 1> Nodes
Method Overview
- public llvm::Optional<TraversalKind> getCheckTraversalKind() const
- public void run(const MatchFinder::MatchResult & Result)
Inherited from MatchFinder::MatchCallback:
- public getCheckTraversalKind
- public getID
- public onEndOfTranslationUnit
- public onStartOfTranslationUnit
- public run
Methods
¶llvm::Optional<TraversalKind>
getCheckTraversalKind() const
llvm::Optional<TraversalKind>
getCheckTraversalKind() const
Description
TraversalKind to use while matching and processing the result nodes. This API is temporary to facilitate third parties porting existing code to the default behavior of clang-tidy.
Declared at: clang/include/clang/ASTMatchers/ASTMatchFinder.h:292
¶void run(const MatchFinder::MatchResult& Result)
void run(const MatchFinder::MatchResult& Result)
Description
Called on every match by the \c MatchFinder.
Declared at: clang/include/clang/ASTMatchers/ASTMatchFinder.h:288
Parameters
- const MatchFinder::MatchResult& Result