| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | RangeSelector.cpp | 29 using MatchResult = MatchFinder::MatchResult; typedef 99 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in before() 108 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in after() 134 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in node() 147 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in statement() 157 return [Begin, End](const MatchResult &Result) -> Expected<CharSourceRange> { in enclose() 181 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in member() 193 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in name() 246 template <typename T, CharSourceRange (*Func)(const MatchResult &, const T &)> 253 Expected<CharSourceRange> operator()(const MatchResult &Result) { in operator ()() [all …]
|
| H A D | RewriteRule.cpp | 29 using MatchResult = MatchFinder::MatchResult; typedef 34 translateEdits(const MatchResult &Result, ArrayRef<ASTEdit> ASTEdits) { in translateEdits() 78 return [Edits = std::move(Edits)](const MatchResult &Result) { in editList() 84 return [Edit = std::move(Edit)](const MatchResult &Result) { in edit() 90 return [Anchor = std::move(Anchor)](const MatchResult &Result) in noopEdit() 113 const MatchResult &Result) -> llvm::Expected<SmallVector<Edit, 1>> { in flattenVector() 146 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval() argument 278 void run(const MatchFinder::MatchResult &Result) override { in run() 300 const MatchResult &Result) { in rewriteDescendantsImpl() 310 const MatchResult &Result) { in rewriteDescendants() [all …]
|
| H A D | Transformer.cpp | 26 const ast_matchers::MatchFinder::MatchResult &Result) { in onMatch() 36 const MatchFinder::MatchResult &Result) { in convertToAtomicChanges() 75 void Transformer::run(const MatchFinder::MatchResult &Result) { in run()
|
| H A D | Stencil.cpp | 45 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match, in printNode() 80 Error eval(const MatchFinder::MatchResult &Match, in eval() 98 Error eval(const MatchFinder::MatchResult &Match, in eval() 148 Error eval(const MatchFinder::MatchResult &Match, in eval() 225 Error eval(const MatchFinder::MatchResult &Match, in eval() 279 Error eval(const MatchFinder::MatchResult &Match, in eval() 311 Error eval(const MatchFinder::MatchResult &Match, in eval() 337 llvm::Error eval(const MatchFinder::MatchResult &match, in eval() 401 Error eval(const MatchFinder::MatchResult &Match, in eval() 418 Error eval(const MatchFinder::MatchResult &Match, in eval()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 454 const MatchFinder::MatchResult &, in transferMakeOptionalCall() argument 461 const MatchFinder::MatchResult &, in transferOptionalHasValueCall() argument 470 const MatchFinder::MatchResult &, in transferOptionalIsNullCall() argument 481 const clang::Expr *ValueOrPredExpr, const MatchFinder::MatchResult &Result, in transferValueOrImpl() 500 const MatchFinder::MatchResult &Result, in transferValueOrStringEmptyCall() 518 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX() 532 const MatchFinder::MatchResult &Result, in transferCallReturningOptional() 556 const MatchFinder::MatchResult &Result, in handleConstMemberCall() 615 const MatchFinder::MatchResult &Result, LatticeTransferState &State) { in handleConstMemberCallWithFallbacks() 625 const MatchFinder::MatchResult &Result, in transferConstMemberCall() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/ |
| H A D | MatchConsumer.h | 35 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 D | Transformer.h | 29 void onMatch(const ast_matchers::MatchFinder::MatchResult &Result); 39 const ast_matchers::MatchFinder::MatchResult &Result); 43 onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) = 0; 103 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 116 const ast_matchers::MatchFinder::MatchResult &Match, 156 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
|
| H A D | RewriteRule.h | 114 AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &) 247 const ast_matchers::MatchFinder::MatchResult &R) -> llvm::Any { in withMetadata() 494 const ast_matchers::MatchFinder::MatchResult &Result); 498 const ast_matchers::MatchFinder::MatchResult &Result); 502 const ast_matchers::MatchFinder::MatchResult &Result); 506 const ast_matchers::MatchFinder::MatchResult &Result); 530 getRuleMatchLoc(const ast_matchers::MatchFinder::MatchResult &Result); 534 size_t findSelectedCase(const ast_matchers::MatchFinder::MatchResult &Result,
|
| H A D | RangeSelector.h | 30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/ |
| H A D | RefactoringCallbacks.h | 81 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;
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UnsafeBufferUsage.cpp | 100 class MatchResult { class 1051 MatchResult &Result, llvm::StringRef Tag) { in hasUnsafePrintfStringArg() 1268 IncrementGadget(const MatchResult &Result) in IncrementGadget() 1277 MatchResult &Result) { in matches() 1316 DecrementGadget(const MatchResult &Result) in DecrementGadget() 1325 MatchResult &Result) { in matches() 1363 ArraySubscriptGadget(const MatchResult &Result) in ArraySubscriptGadget() 1372 MatchResult &Result) { in matches() 1420 PointerArithmeticGadget(const MatchResult &Result) in PointerArithmeticGadget() 1430 MatchResult &Result) { in matches() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 75 struct MatchResult { struct 76 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context); 97 virtual void run(const MatchResult &Result) = 0; argument 289 void run(const MatchFinder::MatchResult &Result) override { in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 1116 Pattern::MatchResult Pattern::match(StringRef Buffer, in match() 1120 return MatchResult(Buffer.size(), 0, Error::success()); in match() 1128 return MatchResult(Pos, /*MatchLen=*/FixedStr.size(), Error::success()); in match() 1224 return MatchResult(TheMatch, Error::success()); in match() 2016 Pattern::MatchResult MatchResult, in printMatch() argument 2020 bool HasError = !ExpectedMatch || MatchResult.TheError; in printMatch() 2038 Buffer, MatchResult.TheMatch->Pos, in printMatch() 2039 MatchResult.TheMatch->Len, Diags); in printMatch() 2068 handleAllErrors(std::move(MatchResult.TheError), in printMatch() 2169 Pattern::MatchResult MatchResult, in reportMatchResult() argument [all …]
|
| H A D | FileCheckImpl.h | 713 struct MatchResult { struct 716 MatchResult(size_t MatchPos, size_t MatchLen, Error E) in MatchResult() argument 718 MatchResult(Match M, Error E) : TheMatch(M), TheError(std::move(E)) {} in MatchResult() argument 719 MatchResult(Error E) : TheError(std::move(E)) {} in MatchResult() argument 732 LLVM_ABI_FOR_TEST MatchResult match(StringRef Buffer,
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | RefactoringCallbacks.cpp | 89 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 107 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 127 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 199 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NumberObjectConversionChecker.cpp | 60 void run(const MatchFinder::MatchResult &Result) override; 64 void Callback::run(const MatchFinder::MatchResult &Result) { in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/ |
| H A D | M68kAsmParser.cpp | 980 ParseStatus MatchResult = MatchOperandParserImpl(Operands, Name); in parseInstruction() local 981 if (MatchResult.isSuccess()) in parseInstruction() 1038 unsigned MatchResult = in matchAndEmitInstruction() local 1041 switch (MatchResult) { in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 261 unsigned MatchResult = in matchAndEmitInstruction() local 264 switch (MatchResult) { in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/ |
| H A D | AVRAsmParser.cpp | 331 unsigned MatchResult = in matchAndEmitInstruction() local 334 switch (MatchResult) { in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 1273 Callback->run(MatchFinder::MatchResult(BoundNodesView, Context)); in visitMatch() 1595 MatchFinder::MatchResult::MatchResult(const BoundNodes &Nodes, in MatchResult() function in clang::ast_matchers::MatchFinder::MatchResult
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 1594 unsigned MatchResult; in matchAndEmitInstruction() local 1599 MatchResult = MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures, in matchAndEmitInstruction() 1601 switch (MatchResult) { in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmParser.cpp | 1157 unsigned MatchResult = MatchInstructionImpl( in matchAndEmitInstruction() local 1159 switch (MatchResult) { in matchAndEmitInstruction()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiate.cpp | 4032 typedef PartialSpecMatchResult MatchResult; in getPatternForClassTemplateSpecialization() typedef 4033 SmallVector<MatchResult, 4> Matched, ExtraMatched; in getPatternForClassTemplateSpecialization() 4064 List.push_back(MatchResult{Partial, Info.takeCanonical()}); in getPatternForClassTemplateSpecialization() 4075 SmallVectorImpl<MatchResult>::iterator Best = Matched.begin(); in getPatternForClassTemplateSpecialization() 4088 for (SmallVectorImpl<MatchResult>::iterator P = Best + 1, in getPatternForClassTemplateSpecialization() 4100 for (SmallVectorImpl<MatchResult>::iterator P = Matched.begin(), in getPatternForClassTemplateSpecialization() 4119 for (SmallVectorImpl<MatchResult>::iterator P = Matched.begin(), in getPatternForClassTemplateSpecialization()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 6688 unsigned MatchResult = in matchAndEmitInstruction() local 6694 if (MatchResult != Match_Success) { in matchAndEmitInstruction() 6698 auto ShortFormNEONMatchResult = MatchResult; in matchAndEmitInstruction() 6701 MatchResult = in matchAndEmitInstruction() 6708 if (MatchResult == Match_InvalidOperand && ErrorInfo == 1 && in matchAndEmitInstruction() 6711 MatchResult = ShortFormNEONMatchResult; in matchAndEmitInstruction() 6717 switch (MatchResult) { in matchAndEmitInstruction() 6745 return showMatchError(IDLoc, MatchResult, ErrorInfo, Operands); in matchAndEmitInstruction() 6762 MatchResult = Match_InvalidSuffix; in matchAndEmitInstruction() 6764 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in matchAndEmitInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 778 unsigned MatchResult = in matchAndEmitInstruction() local 780 switch (MatchResult) { in matchAndEmitInstruction()
|