/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | RangeSelector.cpp | 30 using MatchResult = MatchFinder::MatchResult; typedef 100 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in before() 109 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in after() 135 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in node() 148 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in statement() 158 return [Begin, End](const MatchResult &Result) -> Expected<CharSourceRange> { in enclose() 182 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in member() 194 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in name() 247 template <typename T, CharSourceRange (*Func)(const MatchResult &, const T &)> 254 Expected<CharSourceRange> operator()(const MatchResult &Result) { in operator ()() [all …]
|
H A D | RewriteRule.cpp | 30 using MatchResult = MatchFinder::MatchResult; typedef 35 translateEdits(const MatchResult &Result, ArrayRef<ASTEdit> ASTEdits) { in translateEdits() 79 return [Edits = std::move(Edits)](const MatchResult &Result) { in editList() 85 return [Edit = std::move(Edit)](const MatchResult &Result) { in edit() 91 return [Anchor = std::move(Anchor)](const MatchResult &Result) in noopEdit() 114 const MatchResult &Result) -> llvm::Expected<SmallVector<Edit, 1>> { in flattenVector() 147 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval() argument 279 void run(const MatchFinder::MatchResult &Result) override { in run() 301 const MatchResult &Result) { in rewriteDescendantsImpl() 311 const MatchResult &Result) { in rewriteDescendants() [all …]
|
H A D | Stencil.cpp | 46 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match, in printNode() 76 Error eval(const MatchFinder::MatchResult &Match, in eval() 94 Error eval(const MatchFinder::MatchResult &Match, in eval() 144 Error eval(const MatchFinder::MatchResult &Match, in eval() 221 Error eval(const MatchFinder::MatchResult &Match, in eval() 275 Error eval(const MatchFinder::MatchResult &Match, in eval() 307 Error eval(const MatchFinder::MatchResult &Match, in eval() 333 llvm::Error eval(const MatchFinder::MatchResult &match, in eval() 397 Error eval(const MatchFinder::MatchResult &Match, in eval() 414 Error eval(const MatchFinder::MatchResult &Match, in eval()
|
H A D | Transformer.cpp | 27 const ast_matchers::MatchFinder::MatchResult &Result) { in onMatch() 37 const MatchFinder::MatchResult &Result) { in convertToAtomicChanges() 76 void Transformer::run(const MatchFinder::MatchResult &Result) { in run()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
H A D | UncheckedOptionalAccessModel.cpp | 403 const MatchFinder::MatchResult &, in transferMakeOptionalCall() argument 410 const MatchFinder::MatchResult &, in transferOptionalHasValueCall() argument 421 const clang::Expr *ValueOrPredExpr, const MatchFinder::MatchResult &Result, in transferValueOrImpl() 440 const MatchFinder::MatchResult &Result, in transferValueOrStringEmptyCall() 458 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX() 472 const MatchFinder::MatchResult &Result, in transferCallReturningOptional() 501 const MatchFinder::MatchResult &MatchRes, in valueOrConversionHasValue() 527 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor() 551 const CXXOperatorCallExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionAssignment() 562 const MatchFinder::MatchResult &, in transferNulloptAssignment() argument [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; 108 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 121 const ast_matchers::MatchFinder::MatchResult &Match, 161 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/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 | 1077 Pattern::MatchResult Pattern::match(StringRef Buffer, in match() 1081 return MatchResult(Buffer.size(), 0, Error::success()); in match() 1089 return MatchResult(Pos, /*MatchLen=*/FixedStr.size(), Error::success()); in match() 1185 return MatchResult(TheMatch, Error::success()); in match() 1979 Pattern::MatchResult MatchResult, in printMatch() argument 1983 bool HasError = !ExpectedMatch || MatchResult.TheError; in printMatch() 2001 Buffer, MatchResult.TheMatch->Pos, in printMatch() 2002 MatchResult.TheMatch->Len, Diags); in printMatch() 2031 handleAllErrors(std::move(MatchResult.TheError), in printMatch() 2132 Pattern::MatchResult MatchResult, in reportMatchResult() argument [all …]
|
H A D | FileCheckImpl.h | 689 struct MatchResult { 692 MatchResult(size_t MatchPos, size_t MatchLen, Error E) 694 MatchResult(Match M, Error E) : TheMatch(M), TheError(std::move(E)) {} 695 MatchResult(Error E) : TheError(std::move(E)) {} 708 MatchResult match(StringRef Buffer, const SourceMgr &SM) const; 715 struct MatchResult { global() struct 718 MatchResultMatchResult MatchResult() argument 720 MatchResultMatchResult MatchResult() argument 721 MatchResultMatchResult MatchResult() argument
|
/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/Analysis/ |
H A D | UnsafeBufferUsage.cpp | 566 IncrementGadget(const MatchFinder::MatchResult &Result) in IncrementGadget() 606 DecrementGadget(const MatchFinder::MatchResult &Result) in DecrementGadget() 645 ArraySubscriptGadget(const MatchFinder::MatchResult &Result) in ArraySubscriptGadget() 695 PointerArithmeticGadget(const MatchFinder::MatchResult &Result) in PointerArithmeticGadget() 744 SpanTwoParamConstructorGadget(const MatchFinder::MatchResult &Result) in SpanTwoParamConstructorGadget() 793 PointerInitGadget(const MatchFinder::MatchResult &Result) in PointerInitGadget() 841 PtrToPtrAssignmentGadget(const MatchFinder::MatchResult &Result) in PtrToPtrAssignmentGadget() 890 CArrayToPtrAssignmentGadget(const MatchFinder::MatchResult &Result) in CArrayToPtrAssignmentGadget() 933 UnsafeBufferUsageAttrGadget(const MatchFinder::MatchResult &Result) in UnsafeBufferUsageAttrGadget() 965 UnsafeBufferUsageCtorAttrGadget(const MatchFinder::MatchResult &Result) in UnsafeBufferUsageCtorAttrGadget() [all …]
|
/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 | 975 ParseStatus MatchResult = MatchOperandParserImpl(Operands, Name); in ParseInstruction() local 976 if (MatchResult.isSuccess()) in ParseInstruction() 1033 unsigned MatchResult = in MatchAndEmitInstruction() local 1036 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 | 328 unsigned MatchResult = in MatchAndEmitInstruction() local 331 switch (MatchResult) { in MatchAndEmitInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/ |
H A D | WebAssemblyAsmParser.cpp | 1012 unsigned MatchResult = MatchInstructionImpl( in MatchAndEmitInstruction() local 1014 switch (MatchResult) { in MatchAndEmitInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
H A D | SystemZAsmParser.cpp | 1525 unsigned MatchResult; in MatchAndEmitInstruction() local 1530 MatchResult = MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures, in MatchAndEmitInstruction() 1532 switch (MatchResult) { in MatchAndEmitInstruction()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateInstantiate.cpp | 3835 typedef PartialSpecMatchResult MatchResult; in getPatternForClassTemplateSpecialization() typedef 3836 SmallVector<MatchResult, 4> Matched; in getPatternForClassTemplateSpecialization() 3864 SmallVectorImpl<MatchResult>::iterator Best = Matched.begin(); in getPatternForClassTemplateSpecialization() 3877 for (SmallVectorImpl<MatchResult>::iterator P = Best + 1, in getPatternForClassTemplateSpecialization() 3889 for (SmallVectorImpl<MatchResult>::iterator P = Matched.begin(), in getPatternForClassTemplateSpecialization() 3909 for (SmallVectorImpl<MatchResult>::iterator P = Matched.begin(), in getPatternForClassTemplateSpecialization()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/ |
H A D | AArch64AsmParser.cpp | 6499 unsigned MatchResult = in MatchAndEmitInstruction() local 6505 if (MatchResult != Match_Success) { in MatchAndEmitInstruction() 6509 auto ShortFormNEONMatchResult = MatchResult; in MatchAndEmitInstruction() 6512 MatchResult = in MatchAndEmitInstruction() 6519 if (MatchResult == Match_InvalidOperand && ErrorInfo == 1 && in MatchAndEmitInstruction() 6522 MatchResult = ShortFormNEONMatchResult; in MatchAndEmitInstruction() 6528 switch (MatchResult) { in MatchAndEmitInstruction() 6556 return showMatchError(IDLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction() 6573 MatchResult = Match_InvalidSuffix; in MatchAndEmitInstruction() 6575 return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands); in MatchAndEmitInstruction() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/ |
H A D | VEAsmParser.cpp | 768 unsigned MatchResult = in MatchAndEmitInstruction() local 770 switch (MatchResult) { in MatchAndEmitInstruction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
H A D | SparcAsmParser.cpp | 799 unsigned MatchResult = MatchInstructionImpl(Operands, Inst, ErrorInfo, in MatchAndEmitInstruction() local 801 switch (MatchResult) { in MatchAndEmitInstruction()
|