/external/clang/unittests/Tooling/ |
ReplacementsYamlTest.cpp | 10 // Tests for serialization of Replacements. 26 Doc.Replacements 28 Doc.Replacements 41 "Replacements: \n" // Extra whitespace here! 58 "Replacements:\n" 72 ASSERT_EQ(2u, DocActual.Replacements.size()); 75 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath()); 76 ASSERT_EQ(232u, DocActual.Replacements[0].getOffset()); 77 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); 78 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()) [all...] |
RewriterTest.cpp | 41 Replacements Replaces;
|
RefactoringTest.cpp | 114 Replacements Replaces; 123 // FIXME: Remove this test case when Replacements is implemented as std::vector 141 Replacements Replaces; 157 Replacements Replaces; 170 Replacements Replaces; 185 // FIXME: Remove this test case when Replacements is implemented as std::vector 205 Replacements Replaces; 214 Replacements Replaces; 274 Replacements Replaces; 504 StringRef Result, const Replacements &First [all...] |
/external/clang/include/clang/Tooling/ |
Refactoring.h | 35 /// passed to run() and runAndSave() should add replacements to 45 /// \brief Returns the set of replacements to which replacements should 47 Replacements &getReplacements(); 49 /// \brief Call run(), apply all generated replacements, and immediately save 55 /// \brief Apply all stored replacements to the given Rewriter. 60 /// \returns true if all replacements apply. false otherwise. 68 Replacements Replace;
|
RefactoringCallbacks.h | 40 /// Collects \c tooling::Replacements while running. 44 Replacements &getReplacements(); 47 Replacements Replace;
|
ReplacementsYaml.h | 1 //===-- ReplacementsYaml.h -- Serialiazation for Replacements ---*- C++ -*-===// 12 /// replacements. 70 Io.mapRequired("Replacements", Doc.Replacements);
|
/external/llvm/lib/Transforms/IPO/ |
ConstantMerge.cpp | 108 // Replacements - This vector contains a list of replacements to perform. 109 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; 158 // the Replacements vector. We cannot do the replacement in this pass 191 Replacements.push_back(std::make_pair(GV, Slot)); 194 if (Replacements.empty()) 198 // Now that we have figured out which replacements must be made, do them all 201 for (unsigned i = 0, e = Replacements.size(); i != e; ++i) { 203 if (Replacements[i].first->getAlignment() || 204 Replacements[i].second->getAlignment()) [all...] |
/external/clang/include/clang/Tooling/Core/ |
Replacement.h | 102 /// Only replacements that are in a valid file can be applied. 133 /// \brief Less-than operator between two Replacements. 136 /// \brief Equal-to operator between two Replacements. 139 /// \brief A set of Replacements. 141 typedef std::set<Replacement> Replacements; 143 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 148 /// \returns true if all replacements apply. false otherwise. 149 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 151 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 156 /// \returns true if all replacements apply. false otherwise [all...] |
/external/clang/lib/Tooling/ |
Refactoring.cpp | 33 Replacements &RefactoringTool::getReplacements() { return Replace; } 50 llvm::errs() << "Skipped some replacements.\n";
|
RefactoringCallbacks.cpp | 19 tooling::Replacements &RefactoringCallback::getReplacements() {
|
/external/clang/lib/Format/ |
WhitespaceManager.h | 12 /// replacements. 27 /// \brief Manages the whitespaces around tokens and their replacements. 81 /// \brief Returns all the \c Replacements created during formatting. 82 const tooling::Replacements &generateReplacements(); 188 /// \brief Fill \c Replaces with the replacements for all effective changes. 202 tooling::Replacements Replaces;
|
Format.cpp | [all...] |
WhitespaceManager.cpp | 95 const tooling::Replacements &WhitespaceManager::generateReplacements() { 458 "Generating two replacements for the same location");
|
/external/clang/lib/Tooling/Core/ |
Replacement.cpp | 92 // Apply longer replacements first, specifically so that deletions are 163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { 167 // FIXME: Remove this function when Replacements is implemented as std::vector 194 // that all replacements refer to the same file (or are symlinks). 226 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { 228 for (Replacements::const_iterator I = Replaces.begin(), 240 // FIXME: Remove this function when Replacements is implemented as std::vector 257 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces) { 270 for (Replacements::const_iterator I = Replaces.begin(), E = Replaces.end(); 286 // overlapping replacements from 'First' and 'Second' in mergeReplacements [all...] |
/external/clang/tools/clang-format/ |
ClangFormat.cpp | 30 using clang::tooling::Replacements; 87 static cl::opt<bool> OutputXML("output-replacements-xml", 88 cl::desc("Output replacements as XML."), 229 static void outputReplacementsXML(const Replacements &Replaces) { 258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges, 266 Replacements FormatChanges = reformat(FormatStyle, ChangedCode, Ranges, 270 outs() << "<?xml version='1.0'?>\n<replacements " 279 outs() << "</replacements>\n";
|
/external/clang/unittests/Format/ |
FormatTestProto.cpp | 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges);
|
FormatTestSelective.cpp | 28 tooling::Replacements Replaces =
|
FormatTestJava.cpp | 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges);
|
FormatTestJS.cpp | 28 tooling::Replacements Replaces = [all...] |
/external/clang/include/clang/Format/ |
Format.h | 718 /// \brief Returns the replacements necessary to sort all #include blocks that 720 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, 731 /// Returns the \c Replacements necessary to make all \p Ranges comply with 737 tooling::Replacements reformat(const FormatStyle &Style, 745 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
|
/external/clang/lib/CodeGen/ |
CGCXX.cpp | 142 if (Replacements.count(MangledName)) 167 Replacements[MangledName] = Aliasee;
|
CodeGenModule.h | 321 ReplacementsTy Replacements; [all...] |
/external/llvm/lib/Target/ARM/ |
A15SDOptimizer.cpp | 131 std::map<MachineInstr*, unsigned> Replacements; 643 if (Replacements.find(MI) != Replacements.end()) 677 Replacements[MI] = NewReg; 697 Replacements.clear();
|
/external/llvm/lib/Transforms/Scalar/ |
RewriteStatepointsForGC.cpp | [all...] |
/external/clang/lib/Sema/ |
SemaInit.cpp | [all...] |