Home
last modified time | relevance | path

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

12

/freebsd-14-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
HDRangeSelector.cpp30 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 …]
HDRewriteRule.cpp30 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 …]
HDTransformer.cpp27 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()
HDStencil.cpp46 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()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
HDUncheckedOptionalAccessModel.cpp403 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-14-stable/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
HDMatchConsumer.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()
HDTransformer.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;
121 const ast_matchers::MatchFinder::MatchResult &Match,
161 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
HDRewriteRule.h114 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,
HDRangeSelector.h30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Tooling/
HDRefactoringCallbacks.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;
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
HDMatchSwitch.h69 const T *, const ast_matchers::MatchFinder::MatchResult &, State &)>;
112 const ast_matchers::MatchFinder::MatchResult &R, in CaseOf()
133 ast_matchers::MatchFinder::MatchResult(Results[0], &Context), S); in Build()
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
HDASTMatchFinder.h75 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-14-stable/contrib/llvm-project/llvm/lib/FileCheck/
HDFileCheck.cpp1077 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 …]
HDFileCheckImpl.h689 struct MatchResult { struct
692 MatchResult(size_t MatchPos, size_t MatchLen, Error E) in MatchResult() argument
694 MatchResult(Match M, Error E) : TheMatch(M), TheError(std::move(E)) {} in MatchResult() argument
695 MatchResult(Error E) : TheError(std::move(E)) {} in MatchResult() argument
708 MatchResult match(StringRef Buffer, const SourceMgr &SM) const;
/freebsd-14-stable/contrib/llvm-project/clang/lib/Tooling/
HDRefactoringCallbacks.cpp89 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-14-stable/contrib/llvm-project/clang/lib/Analysis/
HDUnsafeBufferUsage.cpp566 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-14-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDNumberObjectConversionChecker.cpp60 void run(const MatchFinder::MatchResult &Result) override;
64 void Callback::run(const MatchFinder::MatchResult &Result) { in run()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/M68k/AsmParser/
HDM68kAsmParser.cpp975 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-14-stable/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
HDMSP430AsmParser.cpp261 unsigned MatchResult = in MatchAndEmitInstruction() local
264 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
HDAVRAsmParser.cpp328 unsigned MatchResult = in MatchAndEmitInstruction() local
331 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd-14-stable/contrib/llvm-project/clang/lib/ASTMatchers/
HDASTMatchFinder.cpp1271 Callback->run(MatchFinder::MatchResult(BoundNodesView, Context)); in visitMatch()
1572 MatchFinder::MatchResult::MatchResult(const BoundNodes &Nodes, in MatchResult() function in clang::ast_matchers::MatchFinder::MatchResult
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
HDWebAssemblyAsmParser.cpp1012 unsigned MatchResult = MatchInstructionImpl( in MatchAndEmitInstruction() local
1014 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd-14-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
HDSystemZAsmParser.cpp1525 unsigned MatchResult; in MatchAndEmitInstruction() local
1530 MatchResult = MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures, in MatchAndEmitInstruction()
1532 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd-14-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaTemplateInstantiate.cpp3835 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-14-stable/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
HDAArch64AsmParser.cpp6499 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 …]

12