ΒΆtemplate <typename NodeT>
const NodeT* selectFirst(
llvm::StringRef BoundTo,
const SmallVectorImpl<
clang::ast_matchers::BoundNodes>& Results)
template <typename NodeT>
const NodeT* selectFirst(
llvm::StringRef BoundTo,
const SmallVectorImpl<
clang::ast_matchers::BoundNodes>& Results)
Description
Returns the first result of type \c NodeT bound to \p BoundTo. Returns \c NULL if there is no match, or if the matching node cannot be casted to \c NodeT. This is useful in combanation with \c match():
Declared at: clang/include/clang/ASTMatchers/ASTMatchFinder.h:277
Templates
- NodeT
Parameters
- llvm::StringRef BoundTo
- const SmallVectorImpl< clang::ast_matchers::BoundNodes>& Results