Home
last modified time | relevance | path

Searched refs:MatchResult (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/llvm-project-15.0.7/mlir/lib/Rewrite/
H A DByteCode.h124 struct MatchResult { struct
125 MatchResult(Location loc, const PDLByteCodePattern &pattern, in MatchResult() argument
128 MatchResult(const MatchResult &) = delete;
129 MatchResult &operator=(const MatchResult &) = delete; argument
130 MatchResult(MatchResult &&other) = default;
131 MatchResult &operator=(MatchResult &&) = default; argument
164 SmallVectorImpl<MatchResult> &matches, argument
169 void rewrite(PatternRewriter &rewriter, const MatchResult &match,
178 SmallVectorImpl<MatchResult> *matches) const;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DRedundantVoidArgCheck.h42 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
45 void processFunctionDecl(const ast_matchers::MatchFinder::MatchResult &Result,
49 processTypedefNameDecl(const ast_matchers::MatchFinder::MatchResult &Result,
52 void processFieldDecl(const ast_matchers::MatchFinder::MatchResult &Result,
55 void processVarDecl(const ast_matchers::MatchFinder::MatchResult &Result,
59 processNamedCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
63 processExplicitCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
66 void processLambdaExpr(const ast_matchers::MatchFinder::MatchResult &Result,
70 removeVoidArgumentTokens(const ast_matchers::MatchFinder::MatchResult &Result,
H A DRedundantVoidArgCheck.cpp71 void RedundantVoidArgCheck::check(const MatchFinder::MatchResult &Result) { in check()
96 const MatchFinder::MatchResult &Result, const FunctionDecl *Function) { in processFunctionDecl()
129 const ast_matchers::MatchFinder::MatchResult &Result, SourceRange Range, in removeVoidArgumentTokens()
229 const MatchFinder::MatchResult &Result, in processTypedefNameDecl()
238 const MatchFinder::MatchResult &Result, const FieldDecl *Member) { in processFieldDecl()
245 const MatchFinder::MatchResult &Result, const VarDecl *Var) { in processVarDecl()
261 const MatchFinder::MatchResult &Result, const CXXNamedCastExpr *NamedCast) { in processNamedCastExpr()
270 const MatchFinder::MatchResult &Result, in processExplicitCastExpr()
278 const MatchFinder::MatchResult &Result, const LambdaExpr *Lambda) { in processLambdaExpr()
H A DUseDefaultMemberInitCheck.h32 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
38 void checkDefaultInit(const ast_matchers::MatchFinder::MatchResult &Result,
40 void checkExistingInit(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DNotNullTerminatedResultCheck.h31 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
44 StringRef Name, const ast_matchers::MatchFinder::MatchResult &Result);
46 const ast_matchers::MatchFinder::MatchResult &Result,
49 const ast_matchers::MatchFinder::MatchResult &Result,
52 const ast_matchers::MatchFinder::MatchResult &Result);
54 const ast_matchers::MatchFinder::MatchResult &Result,
56 void strerror_sFix(const ast_matchers::MatchFinder::MatchResult &Result);
58 const ast_matchers::MatchFinder::MatchResult &Result);
60 const ast_matchers::MatchFinder::MatchResult &Result);
H A DNotNullTerminatedResultCheck.cpp164 static bool isInjectUL(const MatchFinder::MatchResult &Result) { in isInjectUL()
424 const MatchFinder::MatchResult &Result, in renameFunc()
793 const MatchFinder::MatchResult &Result) { in check()
836 StringRef Name, const MatchFinder::MatchResult &Result) { in memoryHandlerFunctionFix()
867 StringRef Name, const MatchFinder::MatchResult &Result, in memcpyFix()
895 StringRef Name, const MatchFinder::MatchResult &Result, in memcpy_sFix()
921 StringRef Name, const MatchFinder::MatchResult &Result) { in memchrFix()
943 StringRef Name, const MatchFinder::MatchResult &Result, in memmoveFix()
956 const MatchFinder::MatchResult &Result) { in strerror_sFix()
967 StringRef Name, const MatchFinder::MatchResult &Result) { in ncmpFix()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp30 using MatchResult = MatchFinder::MatchResult; typedef
142 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in node()
155 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in statement()
189 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in member()
201 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in name()
259 Expected<CharSourceRange> operator()(const MatchResult &Result) { in operator ()()
276 CharSourceRange getStatementsRange(const MatchResult &, in getStatementsRange() argument
289 CharSourceRange getCallArgumentsRange(const MatchResult &Result, in getCallArgumentsRange()
305 CharSourceRange getElementsRange(const MatchResult &, in getElementsRange() argument
318 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) { in getElseRange()
[all …]
H A DRewriteRule.cpp31 using MatchResult = MatchFinder::MatchResult; typedef
36 translateEdits(const MatchResult &Result, ArrayRef<ASTEdit> ASTEdits) { in translateEdits()
70 return [Edits = std::move(Edits)](const MatchResult &Result) { in editList()
76 return [Edit = std::move(Edit)](const MatchResult &Result) { in edit()
82 return [Anchor = std::move(Anchor)](const MatchResult &Result) in noopEdit()
131 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval() argument
263 void run(const MatchFinder::MatchResult &Result) override { in run()
285 const MatchResult &Result) { in rewriteDescendantsImpl()
295 const MatchResult &Result) { in rewriteDescendants()
301 const MatchResult &Result) { in rewriteDescendants()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationRewriter.h39 bool isLiteralZero(const ast_matchers::MatchFinder::MatchResult &Result,
47 stripFloatCast(const ast_matchers::MatchFinder::MatchResult &Result,
55 stripFloatLiteralFraction(const ast_matchers::MatchFinder::MatchResult &Result,
62 simplifyDurationFactoryArg(const ast_matchers::MatchFinder::MatchResult &Result,
85 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
91 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
96 bool isInMacro(const ast_matchers::MatchFinder::MatchResult &Result,
H A DDurationRewriter.cpp71 rewriteInverseDurationCall(const MatchFinder::MatchResult &Result, in rewriteInverseDurationCall()
90 rewriteInverseTimeCall(const MatchFinder::MatchResult &Result, in rewriteInverseTimeCall()
160 bool isLiteralZero(const MatchFinder::MatchResult &Result, const Expr &Node) { in isLiteralZero()
186 stripFloatCast(const ast_matchers::MatchFinder::MatchResult &Result, in stripFloatCast()
206 stripFloatLiteralFraction(const MatchFinder::MatchResult &Result, in stripFloatLiteralFraction()
216 std::string simplifyDurationFactoryArg(const MatchFinder::MatchResult &Result, in simplifyDurationFactoryArg()
270 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale, in rewriteExprFromNumberToDuration()
288 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale, in rewriteExprFromNumberToTime()
305 bool isInMacro(const MatchFinder::MatchResult &Result, const Expr *E) { in isInMacro()
H A DTimeSubtractionCheck.cpp23 static bool insideMacroDefinition(const MatchFinder::MatchResult &Result, in insideMacroDefinition()
31 static bool isConstructorAssignment(const MatchFinder::MatchResult &Result, in isConstructorAssignment()
48 static bool isArgument(const MatchFinder::MatchResult &Result, in isArgument()
67 static bool isReturn(const MatchFinder::MatchResult &Result, const Expr *Node) { in isReturn()
81 static bool parensRequired(const MatchFinder::MatchResult &Result, in parensRequired()
130 void TimeSubtractionCheck::check(const MatchFinder::MatchResult &Result) { in check()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.h58 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
65 void moveOldNamespace(const ast_matchers::MatchFinder::MatchResult &Result,
69 const ast_matchers::MatchFinder::MatchResult &Result,
73 const ast_matchers::MatchFinder::MatchResult &Result,
77 void fixTypeLoc(const ast_matchers::MatchFinder::MatchResult &Result,
80 void fixUsingShadowDecl(const ast_matchers::MatchFinder::MatchResult &Result,
83 void fixDeclRefExpr(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.h28 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
31 void checkArithmeticExpr(const ast_matchers::MatchFinder::MatchResult &R);
32 void checkBitwiseExpr(const ast_matchers::MatchFinder::MatchResult &R);
33 void checkRelationalExpr(const ast_matchers::MatchFinder::MatchResult &R);
/llvm-project-15.0.7/clang/include/clang/Tooling/Transformer/
H A DMatchConsumer.h35 std::function<Expected<T>(const ast_matchers::MatchFinder::MatchResult &)>;
49 return [=](const ast_matchers::MatchFinder::MatchResult &Result) { in ifBound()
72 virtual llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &Match,
77 llvm::Expected<T> eval(const ast_matchers::MatchFinder::MatchResult &R) const;
95 const ast_matchers::MatchFinder::MatchResult &R) const { in eval()
H A DTransformer.h29 void onMatch(const ast_matchers::MatchFinder::MatchResult &Result);
39 const ast_matchers::MatchFinder::MatchResult &Result);
43 onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) = 0;
108 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
136 const ast_matchers::MatchFinder::MatchResult &Match,
147 const ast_matchers::MatchFinder::MatchResult &Match,
172 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp280 const MatchFinder::MatchResult &, in initializeOptionalReference() argument
319 const MatchFinder::MatchResult &, in transferMakeOptionalCall() argument
328 const MatchFinder::MatchResult &, in transferOptionalHasValueCall() argument
342 const MatchFinder::MatchResult &Result, in transferValueOrImpl()
389 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX()
450 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor()
486 const MatchFinder::MatchResult &, in transferNulloptAssignment() argument
505 const MatchFinder::MatchResult &, in transferSwapCall() argument
575 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
581 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch() argument
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantControlFlowCheck.h30 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
38 checkRedundantReturn(const ast_matchers::MatchFinder::MatchResult &Result,
42 checkRedundantContinue(const ast_matchers::MatchFinder::MatchResult &Result,
45 void issueDiagnostic(const ast_matchers::MatchFinder::MatchResult &Result,
H A DConstReturnTypeCheck.cpp29 const MatchFinder::MatchResult &Result) { in findConstToRemove()
83 const MatchFinder::MatchResult &MatchResult) { in checkDef() argument
85 llvm::Optional<Token> Tok = findConstToRemove(Def, MatchResult); in checkDef()
98 if (llvm::Optional<Token> T = findConstToRemove(Decl, MatchResult)) in checkDef()
122 void ConstReturnTypeCheck::check(const MatchFinder::MatchResult &Result) { in check()
H A DMagicNumbersCheck.h30 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
33 bool isConstant(const clang::ast_matchers::MatchFinder::MatchResult &Result,
46 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &, in isBitFieldWidth() argument
51 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &Result,
55 void checkBoundMatch(const ast_matchers::MatchFinder::MatchResult &Result, in checkBoundMatch()
H A DRedundantControlFlowCheck.cpp47 void RedundantControlFlowCheck::check(const MatchFinder::MatchResult &Result) { in check()
56 const MatchFinder::MatchResult &Result, const CompoundStmt *Block) { in checkRedundantReturn()
64 const MatchFinder::MatchResult &Result, const CompoundStmt *Block) { in checkRedundantContinue()
72 const MatchFinder::MatchResult &Result, const CompoundStmt *const Block, in issueDiagnostic()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DCloexecCheck.h53 void insertMacroFlag(const ast_matchers::MatchFinder::MatchResult &Result,
69 void replaceFunc(const ast_matchers::MatchFinder::MatchResult &Result,
86 void insertStringFlag(const ast_matchers::MatchFinder::MatchResult &Result,
90 StringRef getSpellingArg(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DIntegerTypesCheck.cpp24 const MatchFinder::MatchResult &MatchResult, in getTokenAtLoc() argument
27 if (Lexer::getRawToken(Loc, Tok, *MatchResult.SourceManager, in getTokenAtLoc()
28 MatchResult.Context->getLangOpts(), false)) in getTokenAtLoc()
69 void IntegerTypesCheck::check(const MatchFinder::MatchResult &Result) { in check()
/llvm-project-15.0.7/clang/unittests/AST/
H A DMatchVerifier.h58 void run(const MatchFinder::MatchResult &Result) override;
59 virtual void verify(const MatchFinder::MatchResult &Result, in verify()
158 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) { in run()
171 MatchVerifier<DynTypedNode>::run(const MatchFinder::MatchResult &Result) { in run()
196 void verify(const MatchFinder::MatchResult &Result, in verify()
236 void verify(const MatchFinder::MatchResult &Result, in verify()
275 void verify(const MatchFinder::MatchResult &Result, in verify()
302 void verify(const MatchFinder::MatchResult &Result, in verify()
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DRefactoringCallbacks.h81 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
98 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
116 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
129 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
/llvm-project-15.0.7/flang/lib/Optimizer/Support/
H A DKindMapping.cpp25 using MatchResult = fir::KindMapping::MatchResult; typedef
127 static MatchResult parseCode(char &code, const char *&ptr, const char *endPtr) { in parseCode()
137 static MatchResult parseDefCode(char &code, const char *&ptr, in parseDefCode()
149 static MatchResult parseSingleChar(const char *&ptr, const char *endPtr) { in parseSingleChar()
156 static MatchResult parseColon(const char *&ptr, const char *endPtr) { in parseColon()
160 static MatchResult parseComma(const char *&ptr, const char *endPtr) { in parseComma()
165 static MatchResult parseInt(unsigned &result, const char *&ptr, in parseInt()
192 static MatchResult parseTypeID(LLVMTypeID &result, const char *&ptr, in parseTypeID()
241 MatchResult fir::KindMapping::badMapString(const llvm::Twine &ptr) { in badMapString()
247 MatchResult fir::KindMapping::parse(llvm::StringRef kindMap) { in parse()

12345678910>>...27