/openbsd/gnu/llvm/clang/include/clang/Tooling/Core/ |
H A D | Replacement.h | 212 class Replacements { 220 Replacements() = default; 265 [[nodiscard]] Replacements merge(const Replacements &Replaces) const; 289 bool operator==(const Replacements &RHS) const { 294 Replacements(const_iterator Begin, const_iterator End) in Replacements() function 305 Replacements getCanonicalReplacements() const; 310 llvm::Expected<Replacements> 339 std::vector<Replacement> Replacements; member 351 calculateRangesAfterReplacements(const Replacements &Replaces, 357 std::map<std::string, Replacements> groupReplacementsByFile( [all …]
|
H A D | Diagnostic.h | 59 llvm::StringMap<Replacements> Fix; 115 const llvm::StringMap<Replacements> *selectFirstFix(const Diagnostic& D);
|
/openbsd/gnu/llvm/clang/lib/Tooling/Core/ |
H A D | Replacement.cpp | 191 Replacements Replacements::getCanonicalReplacements() const { in getCanonicalReplacements() 219 llvm::Expected<Replacements> 221 Replacements Rs(R); in mergeIfOrderIndependent() 227 Replacements ReplacesShiftedByRs; in mergeIfOrderIndependent() 245 llvm::Error Replacements::add(const Replacement &R) { in add() 333 Replacements OverlapReplaces(MergeBegin, MergeEnd); in add() 334 llvm::Expected<Replacements> Merged = in add() 443 Replacements Replacements::merge(const Replacements &ReplacesToMerge) const { in merge() 478 return Replacements(Result.begin(), Result.end()); in merge() 520 tooling::Replacements FakeReplaces; in calculateRangesAfterReplacements() [all …]
|
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/ |
H A D | AtomicChange.cpp | 143 llvm::Expected<Replacements> 149 Replacements HeaderReplacements; in createReplacementsForHeaders() 182 llvm::Expected<Replacements> 185 Replacements Replaces; in combineReplacementsInChanges() 247 NE.RemovedHeaders, tooling::Replacements()); in convertFromYAML() 285 Replaces = Replaces.merge(Replacements(NewR)); in insert() 304 llvm::Expected<Replacements> HeaderReplacements = in applyAtomicChanges() 311 llvm::Expected<Replacements> Replaces = in applyAtomicChanges() 317 Replacements AllReplaces = std::move(*Replaces); in applyAtomicChanges() 327 llvm::Expected<Replacements> CleanReplaces = in applyAtomicChanges() [all …]
|
/openbsd/gnu/llvm/clang/lib/Format/ |
H A D | QualifierAlignmentFixer.h | 24 typedef std::function<std::pair<tooling::Replacements, unsigned>( 44 std::pair<tooling::Replacements, unsigned> 68 std::pair<tooling::Replacements, unsigned> 77 tooling::Replacements &Fixes, 84 tooling::Replacements &Fixes,
|
H A D | QualifierAlignmentFixer.cpp | 71 tooling::Replacements Fixes; in analyze() 73 std::pair<tooling::Replacements, unsigned> PassFixes = Passes[I](*Env); in analyze() 91 tooling::Replacements NonNoOpFixes; in analyze() 108 tooling::Replacements &Fixes, in replaceToken() 120 tooling::Replacements &Fixes, in removeToken() 128 tooling::Replacements &Fixes, in insertQualifierAfter() 143 tooling::Replacements &Fixes, in insertQualifierBefore() 209 tooling::Replacements &Fixes, const FormatToken *Tok, in analyzeRight() 314 tooling::Replacements &Fixes, const FormatToken *Tok, in analyzeLeft() 431 std::pair<tooling::Replacements, unsigned> [all …]
|
H A D | Format.cpp | 1981 tooling::Replacements Result; in analyze() 2034 tooling::Replacements Result; in analyze() 2085 tooling::Replacements Result; in analyze() 2136 tooling::Replacements Result; in analyze() 2224 tooling::Replacements Result; in analyze() 2366 tooling::Replacements Result; in analyze() 2594 tooling::Replacements Fixes; in generateFixes() 2652 tooling::Replacements Result; in analyze() 3314 tooling::Replacements 3322 tooling::Replacements Result; in fixCppIncludeInsertions() [all …]
|
H A D | TokenAnalyzer.cpp | 100 std::pair<tooling::Replacements, unsigned> 102 tooling::Replacements Result; in process() 129 std::pair<tooling::Replacements, unsigned> RunResult = in process() 147 return {tooling::Replacements(), 0}; in process()
|
H A D | DefinitionBlockSeparator.h | 29 std::pair<tooling::Replacements, unsigned> 36 tooling::Replacements &Result, FormatTokenLexer &Tokens);
|
H A D | TokenAnalyzer.h | 92 std::pair<tooling::Replacements, unsigned> 96 virtual std::pair<tooling::Replacements, unsigned>
|
H A D | DefinitionBlockSeparator.cpp | 22 std::pair<tooling::Replacements, unsigned> DefinitionBlockSeparator::analyze( in analyze() 27 tooling::Replacements Result; in analyze() 33 SmallVectorImpl<AnnotatedLine *> &Lines, tooling::Replacements &Result, in separateBlocks()
|
H A D | UsingDeclarationsSorter.cpp | 139 const SourceManager &SourceMgr, tooling::Replacements *Fixes, in endUsingDeclarationBlock() 212 std::pair<tooling::Replacements, unsigned> UsingDeclarationsSorter::analyze( in analyze() 217 tooling::Replacements Fixes; in analyze()
|
/openbsd/gnu/llvm/clang/include/clang/Tooling/ |
H A D | Refactoring.h | 47 std::map<std::string, Replacements> &getReplacements(); 71 std::map<std::string, Replacements> FileToReplaces; 93 const std::map<std::string, Replacements> &FileToReplaces,
|
H A D | RefactoringCallbacks.h | 43 Replacements &getReplacements(); 46 Replacements Replace; 56 std::map<std::string, Replacements> &FileToReplaces); 73 std::map<std::string, Replacements> &FileToReplaces;
|
/openbsd/gnu/llvm/clang/lib/Tooling/Syntax/ |
H A D | ComputeReplacements.cpp | 92 tooling::Replacements 98 tooling::Replacements Replacements; in computeReplacements() local 104 llvm::cantFail(Replacements.add(tooling::Replacement( in computeReplacements() 133 return Replacements; in computeReplacements()
|
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyAddMissingPrototypes.cpp | 64 std::vector<std::pair<Function *, Function *>> Replacements; in runOnModule() local 139 Replacements.emplace_back(&F, NewF); in runOnModule() 142 for (auto &Pair : Replacements) { in runOnModule() 153 return !Replacements.empty(); in runOnModule()
|
/openbsd/gnu/llvm/clang/include/clang/Tooling/Refactoring/Rename/ |
H A D | RenamingAction.h | 34 std::map<std::string, tooling::Replacements> &FileToReplaces, 44 std::map<std::string, tooling::Replacements> &FileToReplaces; 103 std::map<std::string, tooling::Replacements> &FileToReplaces) in QualifiedRenamingAction() 116 std::map<std::string, tooling::Replacements> &FileToReplaces;
|
/openbsd/gnu/llvm/clang/include/clang/Tooling/Refactoring/ |
H A D | AtomicChange.h | 117 const Replacements &getReplacements() const { return Replaces; } in getReplacements() 119 Replacements &getReplacements() { return Replaces; } in getReplacements() 137 clang::tooling::Replacements Replaces); 145 tooling::Replacements Replaces;
|
/openbsd/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/ |
H A D | RenamingAction.cpp | 170 std::map<std::string, tooling::Replacements> *FileToReplaces) { in convertChangesToFileReplacements() 189 std::map<std::string, tooling::Replacements> &FileToReplaces, in RenamingASTConsumer() 236 std::map<std::string, tooling::Replacements> &FileToReplaces; 248 std::map<std::string, tooling::Replacements> &FileToReplaces) in USRSymbolRenamer() 266 std::map<std::string, tooling::Replacements> &FileToReplaces;
|
/openbsd/gnu/llvm/clang/include/clang/Format/ |
H A D | Format.h | 4445 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, 4453 llvm::Expected<tooling::Replacements> 4454 formatReplacements(StringRef Code, const tooling::Replacements &Replaces, 4470 llvm::Expected<tooling::Replacements> 4471 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces, 4497 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 4505 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 4513 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code, 4521 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, 4532 tooling::Replacements separateDefinitionBlocks(const FormatStyle &Style, [all …]
|
/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | FormatVariadic.cpp | 146 SmallVector<ReplacementItem, 2> Replacements; in parseFormatString() local 151 Replacements.push_back(I); in parseFormatString() 153 return Replacements; in parseFormatString()
|
/openbsd/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
H A D | ReduceOperandsSkip.cpp | 194 SmallVector<std::pair<Use *, Value *>> Replacements; in extractOperandsFromModule() local 211 Replacements.push_back({&Op, C}); in extractOperandsFromModule() 217 for (std::pair<Use *, Value *> P : Replacements) { in extractOperandsFromModule()
|
/openbsd/gnu/llvm/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 30 using clang::tooling::Replacements; 330 static void outputReplacementsXML(const Replacements &Replaces) { in outputReplacementsXML() 341 emitReplacementWarnings(const Replacements &Replaces, StringRef AssumedFileName, in emitReplacementWarnings() 368 static void outputXML(const Replacements &Replaces, in outputXML() 369 const Replacements &FormatChanges, in outputXML() 477 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format() 497 Replacements FormatChanges = in format()
|
/openbsd/gnu/llvm/clang/lib/Tooling/ |
H A D | Refactoring.cpp | 32 std::map<std::string, Replacements> &RefactoringTool::getReplacements() { in getReplacements() 70 const std::map<std::string, Replacements> &FileToReplaces, in formatAndApplyAllReplacements()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPURewriteOutArguments.cpp | 213 DenseMap<ReturnInst *, ReplacementVec> Replacements; in runOnFunction() local 278 auto &ValVec = Replacements[Store.first]; in runOnFunction() 304 if (Replacements.empty()) in runOnFunction() 337 for (std::pair<ReturnInst *, ReplacementVec> &Replacement : Replacements) { in runOnFunction()
|