Home
last modified time | relevance | path

Searched refs:Replacement (Results 1 – 25 of 90) sorted by relevance

1234

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h83 class Replacement {
86 Replacement();
164 ReplacementError(replacement_error Err, Replacement New, Replacement Existing) in ReplacementError()
194 llvm::Optional<Replacement> NewReplacement;
201 bool operator<(const Replacement &LHS, const Replacement &RHS);
204 bool operator==(const Replacement &LHS, const Replacement &RHS);
211 using ReplacementsImpl = std::set<Replacement>;
258 llvm::Error add(const Replacement &R);
296 Replacement getReplacementInChangedCode(const Replacement &R) const;
336 std::vector<Replacement> Replacements;
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Core/
H A DReplacement.cpp45 Replacement::Replacement() : FilePath(InvalidLocation) {} in Replacement() function in Replacement
47 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() function in Replacement
52 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start, in Replacement() function in Replacement
57 Replacement::Replacement(const SourceManager &Sources, in Replacement() function in Replacement
98 bool operator<(const Replacement &LHS, const Replacement &RHS) { in operator <()
110 bool operator==(const Replacement &LHS, const Replacement &RHS) { in operator ==()
156 Replacement
206 Replacement NewR( in getCanonicalReplacements()
280 Replacement NewR( in add()
305 auto Overlap = [](const Replacement &R1, const Replacement &R2) -> bool { in add()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h22 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
29 template <> struct MappingTraits<clang::tooling::Replacement> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
36 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) in LLVM_YAML_IS_SEQUENCE_VECTOR()
40 clang::tooling::Replacement denormalize(const IO &) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
41 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR()
51 static void mapping(IO &Io, clang::tooling::Replacement &R) { in LLVM_YAML_IS_SEQUENCE_VECTOR()
52 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DDiagnosticsYaml.h43 std::vector<clang::tooling::Replacement> Fixes; in LLVM_YAML_IS_SEQUENCE_VECTOR()
45 for (auto &Replacement : Replacements.second) in LLVM_YAML_IS_SEQUENCE_VECTOR()
46 Fixes.push_back(Replacement); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h48 std::string Replacement; member
107 TextGenerator Replacement; member
175 ASTEdit changeTo(RangeSelector Target, TextGenerator Replacement);
177 inline ASTEdit change(RangeSelector Target, TextGenerator Replacement) { in change() argument
178 return changeTo(std::move(Target), std::move(Replacement)); in change()
187 inline ASTEdit changeTo(TextGenerator Replacement) { in changeTo() argument
188 return changeTo(node(RootID), std::move(Replacement)); in changeTo()
191 inline ASTEdit change(TextGenerator Replacement) { in change() argument
192 return changeTo(std::move(Replacement)); in change()
198 return changeTo(before(std::move(S)), std::move(Replacement)); in insertBefore()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp51 for (const auto &Replacement : Callback->getReplacements()) { in HandleTranslationUnit() local
53 Refactoring.FileToReplaces[std::string(Replacement.getFilePath())] in HandleTranslationUnit()
54 .add(Replacement); in HandleTranslationUnit()
56 llvm::errs() << "Skipping replacement " << Replacement.toString() in HandleTranslationUnit()
72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From, in replaceStmtWithText()
74 return tooling::Replacement( in replaceStmtWithText()
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From, in replaceStmtWithStmt()
91 auto Err = Replace.add(tooling::Replacement( in run()
228 auto Replacement = in run() local
229 tooling::Replacement(*Result.SourceManager, &NodeMap.at(FromId), ToText, in run()
[all …]
/freebsd-13.1/sys/contrib/dev/acpica/compiler/
H A Dprmacros.c184 0, DefineInfo->Identifier, DefineInfo->Replacement); in PrDumpPredefinedNames()
208 char *Replacement, in PrAddDefine() argument
216 if (!Replacement) in PrAddDefine()
218 Replacement = ""; in PrAddDefine()
234 if (strcmp (Replacement, DefineInfo->Replacement)) in PrAddDefine()
250 ReplacementString = UtLocalCalloc (strlen (Replacement) + 1); in PrAddDefine()
251 strcpy (ReplacementString, Replacement); in PrAddDefine()
256 DefineInfo->Replacement = ReplacementString; in PrAddDefine()
H A Dprexpress.c242 DefineInfo->Replacement); in PrExpandMacros()
249 ReplaceString = DefineInfo->Replacement; in PrExpandMacros()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DComputeReplacements.cpp93 std::string Replacement; in computeReplacements() local
95 if (ReplacedRange.empty() && Replacement.empty()) in computeReplacements()
97 llvm::cantFail(Replacements.add(tooling::Replacement( in computeReplacements()
98 SM, rangeOfExpanded(A, ReplacedRange).toCharRange(SM), Replacement))); in computeReplacements()
99 Replacement = ""; in computeReplacements()
106 Replacement += in computeReplacements()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600OpenCLImageTypeLoweringPass.cpp164 Value *Replacement = nullptr; in replaceImageUses() local
167 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceImageUses()
169 Replacement = &ImageSizeArg; in replaceImageUses()
171 Replacement = &ImageFormatArg; in replaceImageUses()
176 Inst->replaceAllUsesWith(Replacement); in replaceImageUses()
197 Value *Replacement = nullptr; in replaceSamplerUses() local
200 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceSamplerUses()
205 Inst->replaceAllUsesWith(Replacement); in replaceSamplerUses()
H A DAMDGPURewriteOutArguments.cpp367 for (std::pair<ReturnInst *, ReplacementVec> &Replacement : Replacements) { in runOnFunction()
368 ReturnInst *RI = Replacement.first; in runOnFunction()
379 for (std::pair<Argument *, Value *> ReturnPoint : Replacement.second) { in runOnFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp45 std::vector<clang::tooling::Replacement> Replaces;
118 for (const clang::tooling::Replacement &R : Replaces) { in getRangesForFormating()
160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders()
168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header)); in createReplacementsForHeaders()
188 if (auto Err = Replaces.add(Replacement( in combineReplacementsInChanges()
261 return Replaces.add(Replacement(SM, Range, ReplacementText)); in replace()
266 return Replaces.add(Replacement(SM, Loc, Length, Text)); in replace()
273 Replacement R(SM, Loc, 0, Text); in insert()
284 Replacement NewR(R.getFilePath(), NewOffset, 0, Text); in insert()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp53 auto Replacement = E.Replacement->eval(Result); in translateEdits() local
54 if (!Replacement) in translateEdits()
55 return Replacement.takeError(); in translateEdits()
62 T.Replacement = std::move(*Replacement); in translateEdits()
117 ASTEdit transformer::changeTo(RangeSelector Target, TextGenerator Replacement) { in changeTo() argument
120 E.Replacement = std::move(Replacement); in changeTo()
165 E.Replacement = makeText(formatHeaderPath(Header, Format)); in addInclude()
H A DTransformer.cpp57 AC.replace(*Result.SourceManager, T.Range, T.Replacement)) { in run()
63 AC.addHeader(T.Replacement); in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp611 Instruction *Replacement = Inst; in run() local
617 if (Replacement->getType() != UseTy) { in run()
628 Replacement = in run()
629 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in run()
642 PHI->setIncomingValue(i, Replacement); in run()
645 if (Replacement->getType() != UseTy) in run()
646 Replacement = new BitCastInst(Replacement, UseTy, "", in run()
648 U.set(Replacement); in run()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DReplaceWithVeclib.cpp77 CallInst *Replacement = IRBuilder.CreateCall(TLIFunc, Args, OpBundles); in replaceWithTLIFunction() local
80 CI.replaceAllUsesWith(Replacement); in replaceWithTLIFunction()
81 if (isa<FPMathOperator>(Replacement)) { in replaceWithTLIFunction()
83 Replacement->copyFastMathFlags(&CI); in replaceWithTLIFunction()
H A DInterleavedAccessPass.cpp479 for (auto &Replacement : ReplacementMap) { in tryReplaceExtracts() local
480 auto *Extract = Replacement.first; in tryReplaceExtracts()
481 auto *Vector = Replacement.second.first; in tryReplaceExtracts()
482 auto Index = Replacement.second.second; in tryReplaceExtracts()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp319 auto Replacement = RenamedComdats.find(C); in processGlobalsForThinLTO() local
320 if (Replacement != RenamedComdats.end()) in processGlobalsForThinLTO()
321 GO.setComdat(Replacement->second); in processGlobalsForThinLTO()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h232 SMFixIt(SMRange R, const Twine &Replacement);
234 SMFixIt(SMLoc Loc, const Twine &Replacement) in SMFixIt() argument
235 : SMFixIt(SMRange(Loc, Loc), Replacement) {} in SMFixIt()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateName.h355 TemplateName Replacement; variable
360 Parameter(parameter), Replacement(replacement) {} in SubstTemplateTemplateParmStorage()
364 TemplateName getReplacement() const { return Replacement; } in getReplacement()
/freebsd-13.1/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp71 const Value *Replacement) { in isCompatibleReplacement() argument
72 if (Operand->getType() != Replacement->getType()) in isCompatibleReplacement()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp488 StringRef Replacement; in DoEmitAvailabilityWarning() local
490 Replacement = AL->getReplacement(); in DoEmitAvailabilityWarning()
492 Replacement = AL->getReplacement(); in DoEmitAvailabilityWarning()
495 if (!Replacement.empty()) in DoEmitAvailabilityWarning()
503 Replacement, SelectorSlotNames, S.getLangOpts()); in DoEmitAvailabilityWarning()
517 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
519 FixIts.push_back(FixItHint::CreateReplacement(UseRange, Replacement)); in DoEmitAvailabilityWarning()
/freebsd-13.1/contrib/llvm-project/clang/include/clang-c/
H A DRewrite.h38 const char *Replacement);
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.h64 llvm::Error addReplacement(const tooling::Replacement &Replacement);
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h937 NodeTy *replaceTemporary(TempMDNode &&N, NodeTy *Replacement) { in replaceTemporary() argument
938 if (N.get() == Replacement) in replaceTemporary()
941 N->replaceAllUsesWith(Replacement); in replaceTemporary()
942 return Replacement; in replaceTemporary()

1234