Home
last modified time | relevance | path

Searched refs:AtomicChange (Results 1 – 19 of 19) sorted by relevance

/external/llvm-project/clang/include/clang/Tooling/Refactoring/
DAtomicChange.h37 class AtomicChange {
43 AtomicChange(const SourceManager &SM, SourceLocation KeyPosition);
45 AtomicChange(const SourceManager &SM, SourceLocation KeyPosition,
49 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) in AtomicChange() function
52 AtomicChange(AtomicChange &&) = default;
53 AtomicChange(const AtomicChange &) = default;
55 AtomicChange &operator=(AtomicChange &&) = default;
56 AtomicChange &operator=(const AtomicChange &) = default;
58 bool operator==(const AtomicChange &Other) const;
64 static AtomicChange convertFromYAML(llvm::StringRef YAMLContent);
[all …]
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp14 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::AtomicChange)
29 const clang::tooling::AtomicChange &E) in NormalizedAtomicChange()
36 clang::tooling::AtomicChange denormalize(const llvm::yaml::IO &) { in denormalize()
67 template <> struct MappingTraits<clang::tooling::AtomicChange> {
68 static void mapping(IO &Io, clang::tooling::AtomicChange &Doc) { in mapping()
69 MappingNormalization<NormalizedAtomicChange, clang::tooling::AtomicChange> in mapping()
145 llvm::ArrayRef<AtomicChange> Changes, in createReplacementsForHeaders()
184 llvm::ArrayRef<AtomicChange> Changes) { in combineReplacementsInChanges()
196 AtomicChange::AtomicChange(const SourceManager &SM, in AtomicChange() function in clang::tooling::AtomicChange
207 AtomicChange::AtomicChange(const SourceManager &SM, SourceLocation KeyPosition, in AtomicChange() function in clang::tooling::AtomicChange
[all …]
DCMakeLists.txt6 AtomicChange.cpp
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DRenamingAction.cpp144 Expected<std::vector<AtomicChange>>
148 std::vector<AtomicChange> Changes; in createRenameReplacements()
153 AtomicChange Change(SM, Ranges[0].getBegin()); in createRenameReplacements()
169 ArrayRef<AtomicChange> AtomicChanges, in convertChangesToFileReplacements()
171 for (const auto &AtomicChange : AtomicChanges) { in convertChangesToFileReplacements() local
172 for (const auto &Replace : AtomicChange.getReplacements()) { in convertChangesToFileReplacements()
223 Expected<std::vector<AtomicChange>> Change = in HandleOneRename()
DUSRLocFinder.cpp509 std::vector<tooling::AtomicChange>
518 std::vector<tooling::AtomicChange> AtomicChanges; in createRenameAtomicChanges()
521 tooling::AtomicChange ReplaceChange = tooling::AtomicChange(SM, Start); in createRenameAtomicChanges()
/external/llvm-project/clang-tools-extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/
DApplyReplacements.h45 std::vector<tooling::AtomicChange>>
103 applyChanges(StringRef File, const std::vector<tooling::AtomicChange> &Changes,
/external/llvm-project/clang/lib/Tooling/Transformer/
DTransformer.cpp46 std::map<FileID, AtomicChange> ChangesByFileID; in run()
50 .emplace(ID, AtomicChange(*Result.SourceManager, in run()
/external/llvm-project/clang-tools-extra/clang-apply-replacements/lib/Tooling/
DApplyReplacements.cpp209 tooling::AtomicChange FileChange(Entry->getName(), Entry->getName()); in mergeAndDeduplicate()
232 std::vector<tooling::AtomicChange>{FileChange}); in mergeAndDeduplicate()
239 applyChanges(StringRef File, const std::vector<tooling::AtomicChange> &Changes, in applyChanges()
/external/llvm-project/clang/unittests/Tooling/
DRefactoringTest.cpp1111 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1163 AtomicChange ExpectedChange(Context.Sources, DefaultLoc); in TEST_F()
1175 AtomicChange ActualChange = AtomicChange::convertFromYAML(YamlContent); in TEST_F()
1193 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1199 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1214 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1225 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1239 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1253 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
1269 AtomicChange Change(Context.Sources, DefaultLoc); in TEST_F()
[all …]
DRefactoringActionRulesTest.cpp77 AtomicChange Change(SM, Loc); in TEST_F()
113 const_cast<AtomicChange &>(Result[0]).toYAMLString(); in TEST_F()
DTransformerTest.cpp124 return [this](Expected<AtomicChange> C) { in consumer()
1590 [](const AtomicChange &L, const AtomicChange &R) { in TEST_F()
/external/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
DUSRLocFinder.h37 std::vector<tooling::AtomicChange>
DRenamingAction.h94 llvm::Expected<std::vector<AtomicChange>>
/external/llvm-project/clang/include/clang/Tooling/Transformer/
DTransformer.h26 std::function<void(Expected<clang::tooling::AtomicChange> Change)>;
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/Tooling/Refactoring/
DBUILD.gn19 "AtomicChange.cpp",
/external/llvm-project/clang-tools-extra/tool-template/
DToolTemplate.cpp69 AtomicChange Change(*Result.SourceManager, D->getBeginLoc()); in run()
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DExtract.cpp150 AtomicChange Change(SM, ExtractedDeclLocation); in createSourceReplacements()
/external/llvm-project/clang/tools/clang-refactor/
DTestSupport.cpp71 OS << const_cast<tooling::AtomicChange &>(Change).toYAMLString() << "\n"; in dumpChanges()
/external/llvm-project/clang/docs/
DRefactoringEngine.rst126 AtomicChange Replacement(Context.getSources(), Selection.getBegin());