clang-tools  14.0.0git
Functions
clang::ast_matchers Namespace Reference

Functions

 AST_POLYMORPHIC_MATCHER (isInAbseilFile, AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc, NestedNameSpecifierLoc))
 Matches AST nodes that were found within Abseil files. More...
 
 AST_MATCHER (Expr, isMacroID)
 
 AST_POLYMORPHIC_MATCHER_P2 (hasAnyArgumentWithParam, AST_POLYMORPHIC_SUPPORTED_TYPES(CallExpr, CXXConstructExpr), internal::Matcher< Expr >, ArgMatcher, internal::Matcher< ParmVarDecl >, ParamMatcher)
 
 AST_MATCHER (Expr, usedInBooleanContext)
 
 AST_MATCHER (CXXConstructExpr, isDefaultConstruction)
 

Function Documentation

◆ AST_MATCHER() [1/3]

clang::ast_matchers::AST_MATCHER ( CXXConstructExpr  ,
isDefaultConstruction   
)

Definition at line 86 of file ContainerSizeEmptyCheck.cpp.

◆ AST_MATCHER() [2/3]

clang::ast_matchers::AST_MATCHER ( Expr  ,
isMacroID   
)

Definition at line 19 of file PreferIsaOrDynCastInConditionalsCheck.cpp.

◆ AST_MATCHER() [3/3]

clang::ast_matchers::AST_MATCHER ( Expr  ,
usedInBooleanContext   
)

Definition at line 55 of file ContainerSizeEmptyCheck.cpp.

◆ AST_POLYMORPHIC_MATCHER()

clang::ast_matchers::AST_POLYMORPHIC_MATCHER ( isInAbseilFile  ,
AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt, TypeLoc, NestedNameSpecifierLoc)   
)

Matches AST nodes that were found within Abseil files.

Example matches Y but not X (matcher = cxxRecordDecl(isInAbseilFile())

#include "absl/strings/internal-file.h"
class X {};

absl/strings/internal-file.h:

class Y {};

Usable as: Matcher<Decl>, Matcher<Stmt>, Matcher<TypeLoc>, Matcher<NestedNameSpecifierLoc>

Definition at line 31 of file AbseilMatcher.h.

◆ AST_POLYMORPHIC_MATCHER_P2()

clang::ast_matchers::AST_POLYMORPHIC_MATCHER_P2 ( hasAnyArgumentWithParam  ,
AST_POLYMORPHIC_SUPPORTED_TYPES(CallExpr, CXXConstructExpr)  ,
internal::Matcher< Expr >  ,
ArgMatcher  ,
internal::Matcher< ParmVarDecl >  ,
ParamMatcher   
)

Definition at line 20 of file ContainerSizeEmptyCheck.cpp.

X
int X
Definition: LSPBinderTests.cpp:25