Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.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 …]
H A DRewriteRule.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 …]
H A DStencil.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()
H A DTransformer.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()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.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/contrib/llvm-project/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;
121 const ast_matchers::MatchFinder::MatchResult &Match,
161 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
H A DRewriteRule.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,
H A DRangeSelector.h30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
/freebsd/contrib/llvm-project/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;
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.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/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.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 …]
H A DFileCheckImpl.h689 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 DRefactoringCallbacks.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/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp60 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 DM68kAsmParser.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/contrib/llvm-project/llvm/lib/Target/MSP430/AsmParser/
H A DMSP430AsmParser.cpp261 unsigned MatchResult = in MatchAndEmitInstruction() local
264 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp328 unsigned MatchResult = in MatchAndEmitInstruction() local
331 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp1012 unsigned MatchResult = MatchInstructionImpl( in MatchAndEmitInstruction() local
1014 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp1525 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 DSemaTemplateInstantiate.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/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.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 …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/AsmParser/
H A DVEAsmParser.cpp768 unsigned MatchResult = in MatchAndEmitInstruction() local
770 switch (MatchResult) { in MatchAndEmitInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/AsmParser/
H A DSparcAsmParser.cpp799 unsigned MatchResult = MatchInstructionImpl(Operands, Inst, ErrorInfo, in MatchAndEmitInstruction() local
801 switch (MatchResult) { in MatchAndEmitInstruction()

12