|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 236 AST_POLYMORPHIC_MATCHER(isExpansionInMainFile,
257 AST_POLYMORPHIC_MATCHER(isExpansionInSystemHeader,
282 AST_POLYMORPHIC_MATCHER_P(isExpansionInFileMatching,
540 AST_MATCHER(Decl, isPublic) {
556 AST_MATCHER(Decl, isProtected) {
572 AST_MATCHER(Decl, isPrivate) {
587 AST_MATCHER(FieldDecl, isBitField) {
604 AST_MATCHER_P(FieldDecl, hasBitWidth, unsigned, Width) {
623 AST_MATCHER_P(FieldDecl, hasInClassInitializer, internal::Matcher<Expr>,
632 AST_MATCHER(FunctionDecl, isMain) {
646 AST_MATCHER_P(ClassTemplateSpecializationDecl, hasSpecializedTemplate,
655 AST_MATCHER(Decl, isImplicit) {
680 AST_POLYMORPHIC_MATCHER_P(
713 AST_MATCHER_P(Expr, ignoringImplicit, internal::Matcher<Expr>,
743 AST_MATCHER_P(Expr, ignoringImpCasts,
765 AST_MATCHER_P(Expr, ignoringParenCasts, internal::Matcher<Expr>, InnerMatcher) {
790 AST_MATCHER_P(Expr, ignoringParenImpCasts,
806 AST_MATCHER_P_OVERLOAD(QualType, ignoringParens, internal::Matcher<QualType>,
822 AST_MATCHER_P_OVERLOAD(Expr, ignoringParens, internal::Matcher<Expr>,
841 AST_MATCHER(Expr, isInstantiationDependent) {
857 AST_MATCHER(Expr, isTypeDependent) { return Node.isTypeDependent(); }
868 AST_MATCHER(Expr, isValueDependent) { return Node.isValueDependent(); }
888 AST_POLYMORPHIC_MATCHER_P2(
910 AST_POLYMORPHIC_MATCHER_P(
929 AST_MATCHER_P(TemplateArgument, refersToType,
947 AST_MATCHER_P(TemplateArgument, refersToTemplate,
967 AST_MATCHER_P(TemplateArgument, refersToDeclaration,
986 AST_MATCHER_P(TemplateArgument, isExpr, internal::Matcher<Expr>, InnerMatcher) {
1003 AST_MATCHER(TemplateArgument, isIntegral) {
1017 AST_MATCHER_P(TemplateArgument, refersToIntegralType,
1038 AST_MATCHER_P(TemplateArgument, equalsIntegralValue,
1294 AST_MATCHER(CallExpr, usesADL) { return Node.usesADL(); }
1491 AST_MATCHER_P(InitListExpr, hasSyntacticForm,
1848 AST_MATCHER_P(ForStmt, hasIncrement, internal::Matcher<Stmt>,
1863 AST_MATCHER_P(ForStmt, hasLoopInit, internal::Matcher<Stmt>,
1887 AST_MATCHER_P(CXXForRangeStmt, hasLoopVariable, internal::Matcher<VarDecl>,
1901 AST_MATCHER_P(CXXForRangeStmt, hasRangeInit, internal::Matcher<Expr>,
2411 AST_MATCHER_P(DesignatedInitExpr, designatorCountIs, unsigned, N) {
2482 AST_MATCHER_P(UnaryExprOrTypeTraitExpr, hasArgumentOfType,
2500 AST_MATCHER_P(UnaryExprOrTypeTraitExpr, ofKind, UnaryExprOrTypeTrait, Kind) {
2570 AST_MATCHER_P(NamedDecl, matchesName, std::string, RegExp) {
2635 AST_POLYMORPHIC_MATCHER_P(
2650 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
2668 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
2683 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
2720 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
2735 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
2760 AST_MATCHER_P(CXXRecordDecl, hasMethod, internal::Matcher<CXXMethodDecl>,
2775 AST_MATCHER(CXXRecordDecl, isLambda) {
2988 AST_MATCHER_P(NamedDecl, hasUnderlyingDecl, internal::Matcher<NamedDecl>,
3014 AST_MATCHER_P(CXXMemberCallExpr, on, internal::Matcher<Expr>,
3033 AST_MATCHER_P(ObjCMessageExpr, hasReceiverType, internal::Matcher<QualType>,
3051 AST_MATCHER(ObjCMethodDecl, isClassMethod) {
3067 AST_MATCHER(ObjCMethodDecl, isInstanceMethod) {
3084 AST_MATCHER(ObjCMessageExpr, isClassMessage) {
3101 AST_MATCHER(ObjCMessageExpr, isInstanceMessage) {
3115 AST_MATCHER_P(ObjCMessageExpr, hasReceiver, internal::Matcher<Expr>,
3131 AST_MATCHER_P(ObjCMessageExpr, hasSelector, std::string, BaseName) {
3159 AST_MATCHER_P(ObjCMessageExpr, matchesSelector, std::string, RegExp) {
3170 AST_MATCHER(ObjCMessageExpr, hasNullSelector) {
3182 AST_MATCHER(ObjCMessageExpr, hasUnarySelector) {
3198 AST_MATCHER(ObjCMessageExpr, hasKeywordSelector) {
3213 AST_MATCHER_P(ObjCMessageExpr, numSelectorArgs, unsigned, N) {
3233 AST_MATCHER_P(CallExpr, callee, internal::Matcher<Stmt>,
3249 AST_MATCHER_P_OVERLOAD(CallExpr, callee, internal::Matcher<Decl>, InnerMatcher,
3267 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
3297 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(
3315 AST_MATCHER_P(DeclaratorDecl, hasTypeLoc, internal::Matcher<TypeLoc>, Inner) {
3331 AST_MATCHER_P(QualType, asString, std::string, Name) {
3345 AST_MATCHER_P(
3353 AST_MATCHER_P_OVERLOAD(QualType, pointsTo, internal::Matcher<Decl>,
3369 AST_MATCHER_P(Type, hasUnqualifiedDesugaredType, internal::Matcher<Type>,
3388 AST_MATCHER_P(QualType, references, internal::Matcher<QualType>,
3406 AST_MATCHER_P(QualType, hasCanonicalType, internal::Matcher<QualType>,
3414 AST_MATCHER_P_OVERLOAD(QualType, references, internal::Matcher<Decl>,
3437 AST_MATCHER_P(CXXMemberCallExpr, onImplicitObjectArgument,
3460 AST_MATCHER_P_OVERLOAD(CXXMemberCallExpr, thisPointerType,
3468 AST_MATCHER_P_OVERLOAD(CXXMemberCallExpr, thisPointerType,
3484 AST_MATCHER_P(DeclRefExpr, to, internal::Matcher<Decl>,
3505 AST_MATCHER_P(DeclRefExpr, throughUsingDecl,
3528 AST_MATCHER_P(OverloadExpr, hasAnyDeclaration, internal::Matcher<Decl>,
3543 AST_MATCHER_P(DeclStmt, hasSingleDecl, internal::Matcher<Decl>, InnerMatcher) {
3559 AST_MATCHER_P(
3577 AST_MATCHER(VarDecl, isStaticLocal) {
3592 AST_MATCHER(VarDecl, hasLocalStorage) {
3606 AST_MATCHER(VarDecl, hasGlobalStorage) {
3622 AST_MATCHER(VarDecl, hasAutomaticStorageDuration) {
3642 AST_MATCHER(VarDecl, hasStaticStorageDuration) {
3658 AST_MATCHER(VarDecl, hasThreadStorageDuration) {
3673 AST_MATCHER(VarDecl, isExceptionVariable) {
3685 AST_POLYMORPHIC_MATCHER_P(argumentCountIs,
3701 AST_POLYMORPHIC_MATCHER_P2(hasArgument,
3718 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N,
3735 AST_MATCHER_P(DeclStmt, declCountIs, unsigned, N) {
3758 AST_MATCHER_P2(DeclStmt, containsDeclaration, unsigned, N,
3781 AST_MATCHER(CXXCatchStmt, isCatchAll) {
3798 AST_MATCHER_P(CXXConstructorDecl, hasAnyConstructorInitializer,
3817 AST_MATCHER_P(CXXCtorInitializer, forField,
3837 AST_MATCHER_P(CXXCtorInitializer, withInitializer,
3857 AST_MATCHER(CXXCtorInitializer, isWritten) {
3877 AST_MATCHER(CXXCtorInitializer, isBaseInitializer) {
3897 AST_MATCHER(CXXCtorInitializer, isMemberInitializer) {
3920 AST_POLYMORPHIC_MATCHER_P(hasAnyArgument,
3936 AST_MATCHER(CXXConstructExpr, isListInitialization) {
3952 AST_MATCHER(CXXConstructExpr, requiresZeroInitialization) {
3976 AST_POLYMORPHIC_MATCHER_P2(hasParameter,
4004 AST_POLYMORPHIC_MATCHER_P2(forEachArgumentWithParam,
4071 AST_POLYMORPHIC_MATCHER_P(hasAnyParameter,
4098 AST_POLYMORPHIC_MATCHER_P(parameterCountIs,
4119 AST_MATCHER(FunctionDecl, isNoReturn) { return Node.isNoReturn(); }
4129 AST_MATCHER_P(FunctionDecl, returns,
4149 AST_POLYMORPHIC_MATCHER(isExternC, AST_POLYMORPHIC_SUPPORTED_TYPES(FunctionDecl,
4168 AST_POLYMORPHIC_MATCHER(isStaticStorageClass,
4183 AST_MATCHER(FunctionDecl, isDeleted) {
4196 AST_MATCHER(FunctionDecl, isDefaulted) {
4215 AST_POLYMORPHIC_MATCHER(hasDynamicExceptionSpec,
4235 AST_POLYMORPHIC_MATCHER(isNoThrow,
4268 AST_POLYMORPHIC_MATCHER(isConstexpr,
4282 AST_POLYMORPHIC_MATCHER_P(
4299 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) {
4311 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) {
4337 AST_POLYMORPHIC_MATCHER_P(equalsBoundNode,
4361 AST_MATCHER_P(IfStmt, hasConditionVariableStatement,
4378 AST_MATCHER_P(ArraySubscriptExpr, hasIndex,
4395 AST_MATCHER_P(ArraySubscriptExpr, hasBase,
4413 AST_POLYMORPHIC_MATCHER_P(hasBody,
4435 AST_POLYMORPHIC_MATCHER_P(hasAnySubstatement,
4454 AST_MATCHER_P(CompoundStmt, statementCountIs, unsigned, N) {
4491 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(equals,
4500 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(equals,
4509 AST_POLYMORPHIC_MATCHER_P_OVERLOAD(equals,
4526 AST_POLYMORPHIC_MATCHER_P(hasOperatorName,
4547 AST_POLYMORPHIC_MATCHER(isAssignmentOperator,
4559 AST_POLYMORPHIC_MATCHER_P(hasLHS,
4574 AST_POLYMORPHIC_MATCHER_P(hasRHS,
4597 AST_MATCHER_P(UnaryOperator, hasUnaryOperand,
4619 AST_POLYMORPHIC_MATCHER_P(hasSourceExpression,
4639 AST_MATCHER_P(CastExpr, hasCastKind, CastKind, Kind) {
4647 AST_MATCHER_P(ExplicitCastExpr, hasDestinationType,
4657 AST_MATCHER_P(ImplicitCastExpr, hasImplicitDestinationType,
4670 AST_MATCHER(RecordDecl, isStruct) {
4682 AST_MATCHER(RecordDecl, isUnion) {
4694 AST_MATCHER(RecordDecl, isClass) {
4709 AST_MATCHER_P(AbstractConditionalOperator, hasTrueExpression,
4724 AST_MATCHER_P(AbstractConditionalOperator, hasFalseExpression,
4751 AST_POLYMORPHIC_MATCHER(isDefinition,
4768 AST_MATCHER(FunctionDecl, isVariadic) {
4789 AST_MATCHER_P(CXXMethodDecl, ofClass,
4820 AST_MATCHER_P(CXXMethodDecl, forEachOverridden,
4847 AST_MATCHER(CXXMethodDecl, isVirtual) {
4865 AST_MATCHER(CXXMethodDecl, isVirtualAsWritten) {
4884 AST_POLYMORPHIC_MATCHER(isFinal,
4900 AST_MATCHER(CXXMethodDecl, isPure) {
4915 AST_MATCHER(CXXMethodDecl, isConst) {
4932 AST_MATCHER(CXXMethodDecl, isCopyAssignmentOperator) {
4949 AST_MATCHER(CXXMethodDecl, isMoveAssignmentOperator) {
4967 AST_MATCHER(CXXMethodDecl, isOverride) {
4982 AST_MATCHER(CXXMethodDecl, isUserProvided) {
5010 AST_POLYMORPHIC_MATCHER(
5026 AST_MATCHER(QualType, isInteger) {
5040 AST_MATCHER(QualType, isUnsignedInteger) {
5054 AST_MATCHER(QualType, isSignedInteger) {
5068 AST_MATCHER(QualType, isAnyCharacter) {
5088 AST_MATCHER(QualType, isAnyPointer) {
5107 AST_MATCHER(QualType, isConstQualified) {
5126 AST_MATCHER(QualType, isVolatileQualified) {
5143 AST_MATCHER(QualType, hasLocalQualifiers) {
5159 AST_MATCHER_P(MemberExpr, member,
5180 AST_POLYMORPHIC_MATCHER_P(
5203 AST_MATCHER_P(UsingDecl, hasAnyUsingShadowDecl,
5221 AST_MATCHER_P(UsingShadowDecl, hasTargetDecl,
5253 AST_POLYMORPHIC_MATCHER(isTemplateInstantiation,
5312 AST_POLYMORPHIC_MATCHER(isExplicitTemplateSpecialization,
5334 AST_MATCHER(Type, booleanType) {
5346 AST_MATCHER(Type, voidType) {
5398 AST_MATCHER(Type, realFloatingPointType) {
5415 AST_TYPELOC_TRAVERSE_MATCHER_DECL(hasElementType, getElement,
5448 AST_POLYMORPHIC_MATCHER_P(hasSize,
5507 AST_MATCHER_P(VariableArrayType, hasSizeExpr,
5533 AST_TYPELOC_TRAVERSE_MATCHER_DECL(hasValueType, getValue,
5574 AST_TYPE_TRAVERSE_MATCHER(hasDeducedType, getDeducedType,
5588 AST_TYPE_TRAVERSE_MATCHER(hasUnderlyingType, getUnderlyingType,
5638 AST_TYPE_TRAVERSE_MATCHER(innerType, getInnerType,
5753 AST_TYPELOC_TRAVERSE_MATCHER_DECL(
5874 AST_MATCHER_P(ElaboratedType, hasQualifier,
5897 AST_MATCHER_P(ElaboratedType, namesType, internal::Matcher<QualType>,
5929 AST_TYPE_TRAVERSE_MATCHER(
5967 AST_MATCHER_P(DecayedType, hasDecayedType, internal::Matcher<QualType>,
5986 AST_MATCHER_P(Decl, hasDeclContext, internal::Matcher<Decl>, InnerMatcher) {
6034 AST_MATCHER_P(NestedNameSpecifier, specifiesType,
6052 AST_MATCHER_P(NestedNameSpecifierLoc, specifiesTypeLoc,
6067 AST_MATCHER_P_OVERLOAD(NestedNameSpecifier, hasPrefix,
6085 AST_MATCHER_P_OVERLOAD(NestedNameSpecifierLoc, hasPrefix,
6104 AST_MATCHER_P(NestedNameSpecifier, specifiesNamespace,
6118 AST_MATCHER_P_OVERLOAD(Decl, equalsNode, const Decl*, Other, 0) {
6124 AST_MATCHER_P_OVERLOAD(Stmt, equalsNode, const Stmt*, Other, 1) {
6130 AST_MATCHER_P_OVERLOAD(Type, equalsNode, const Type*, Other, 2) {
6147 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>,
6178 AST_MATCHER_P(CXXConstructorDecl, forEachConstructorInitializer,
6204 AST_MATCHER(CXXConstructorDecl, isCopyConstructor) {
6219 AST_MATCHER(CXXConstructorDecl, isMoveConstructor) {
6234 AST_MATCHER(CXXConstructorDecl, isDefaultConstructor) {
6251 AST_MATCHER(CXXConstructorDecl, isDelegatingConstructor) {
6277 AST_POLYMORPHIC_MATCHER(isExplicit, AST_POLYMORPHIC_SUPPORTED_TYPES(
6304 AST_MATCHER_P(FunctionDecl, hasExplicitSpecifier, internal::Matcher<Expr>,
6325 AST_POLYMORPHIC_MATCHER(isInline,
6346 AST_MATCHER(NamespaceDecl, isAnonymous) {
6371 AST_MATCHER(Decl, isInStdNamespace) { return Node.isInStdNamespace(); }
6382 AST_MATCHER_P(CaseStmt, hasCaseConstant, internal::Matcher<Expr>,
6399 AST_MATCHER_P(Decl, hasAttr, attr::Kind, AttrKind) {
6417 AST_MATCHER_P(ReturnStmt, hasReturnValue, internal::Matcher<Expr>,
6448 AST_MATCHER(Expr, nullPointerConstant) {
6465 AST_MATCHER_P(Stmt, forFunction, internal::Matcher<FunctionDecl>,
6511 AST_MATCHER(NamedDecl, hasExternalFormalLinkage) {
6522 AST_MATCHER(ParmVarDecl, hasDefaultArgument) {
6534 AST_MATCHER(CXXNewExpr, isArray) {
6546 AST_MATCHER_P(CXXNewExpr, hasArraySize, internal::Matcher<Expr>, InnerMatcher) {
6558 AST_MATCHER(CXXRecordDecl, hasDefinition) {
6569 AST_MATCHER(EnumDecl, isScoped) {
6580 AST_MATCHER(FunctionDecl, hasTrailingReturn) {
6609 AST_MATCHER_P(Expr, ignoringElidableConstructorCall,
6664 AST_MATCHER(OMPExecutableDirective, isStandaloneDirective) {
6679 AST_MATCHER(Stmt, isOMPStructuredBlock) { return Node.isOMPStructuredBlock(); }
6696 AST_MATCHER_P(OMPExecutableDirective, hasStructuredBlock,
6714 AST_MATCHER_P(OMPExecutableDirective, hasAnyClause,
6746 AST_MATCHER(OMPDefaultClause, isNoneKind) {
6761 AST_MATCHER(OMPDefaultClause, isSharedKind) {
6782 AST_MATCHER_P(OMPExecutableDirective, isAllowedToContainClauseKind,
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h 83 namespace internal {
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp 31 namespace internal {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp 41 AST_MATCHER_P(ObjCMessageExpr, hasAnySelectorMatcher, std::vector<std::string>,
50 namespace internal {
tools/clang/tools/extra/clang-tidy/abseil/AbseilMatcher.h 31 AST_POLYMORPHIC_MATCHER(
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp 18 AST_MATCHER(Expr, isMacroID) { return Node.getExprLoc().isMacroID(); }
tools/clang/unittests/AST/ASTImporterTest.cpp 589 AST_MATCHER_P(TemplateDecl, hasTemplateDecl,
1422 AST_MATCHER_P(RecordDecl, hasFieldOrder, std::vector<StringRef>, Order) {
2879 AST_MATCHER_P(TagDecl, hasTypedefForAnonDecl, Matcher<TypedefNameDecl>,
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp 48 AST_MATCHER_P(Decl, just, internal::Matcher<Decl>, AMatcher) {
67 AST_POLYMORPHIC_MATCHER_P(polymorphicHas,