/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...] |
/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; 72 /// Replacements on the related file in \p Rewriter. In addition to applying 73 /// given Replacements, this function also formats the changed code [all...] |
RefactoringCallbacks.h | 40 /// Collects \c tooling::Replacements while running. 44 Replacements &getReplacements(); 47 Replacements Replace;
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/ |
Refactoring.h | 36 /// passed to run() and runAndSave() should add replacements to 46 /// \brief Returns the file path to replacements map to which replacements 48 std::map<std::string, Replacements> &getReplacements(); 50 /// \brief Call run(), apply all generated replacements, and immediately save 56 /// \brief Apply all stored replacements to the given Rewriter. 64 /// \returns true if all replacements apply. false otherwise. 72 std::map<std::string, Replacements> FileToReplaces; 76 /// Replacements on the related file in \p Rewriter. In addition to applying 77 /// given Replacements, this function also formats the changed code [all...] |
/external/clang/lib/Format/ |
SortJavaScriptImports.h | 26 // Sort JavaScript ES6 imports/exports in ``Code``. The generated replacements 28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
/external/llvm/lib/Transforms/IPO/ |
ConstantMerge.cpp | 79 // Replacements - This vector contains a list of replacements to perform. 80 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; 129 // the Replacements vector. We cannot do the replacement in this pass 162 Replacements.push_back(std::make_pair(GV, Slot)); 165 if (Replacements.empty()) 169 // Now that we have figured out which replacements must be made, do them all 172 for (unsigned i = 0, e = Replacements.size(); i != e; ++i) { 174 if (Replacements[i].first->getAlignment() || 175 Replacements[i].second->getAlignment()) [all...] |
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
ConstantMerge.cpp | 113 // Replacements - This vector contains a list of replacements to perform. 114 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; 158 // the Replacements vector. We cannot do the replacement in this pass 192 Replacements.push_back(std::make_pair(GV, Slot)); 195 if (Replacements.empty()) 199 // Now that we have figured out which replacements must be made, do them all 202 for (unsigned i = 0, e = Replacements.size(); i != e; ++i) { 204 if (Replacements[i].first->getAlignment() || 205 Replacements[i].second->getAlignment()) [all...] |
/external/clang/include/clang/Tooling/Core/ |
Replacement.h | 109 /// Only replacements that are in a valid file can be applied. 140 /// \brief Less-than operator between two Replacements. 143 /// \brief Equal-to operator between two Replacements. 146 /// \brief A set of Replacements. 148 typedef std::set<Replacement> Replacements; 150 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 155 /// \returns true if all replacements apply. false otherwise. 156 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 158 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 163 /// \returns true if all replacements apply. false otherwise [all...] |
/external/swiftshader/src/OpenGL/compiler/preprocessor/ |
Macro.h | 35 typedef std::vector<Token> Replacements; 46 Replacements replacements; member in struct:pp::Macro
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Core/ |
Replacement.h | 113 /// Only replacements that are in a valid file can be applied. 151 /// e.g. fail applying replacements and replacements conflict. 161 /// replacement in a set of replacements. 190 // replacements, that is causing problem. 192 // An existing replacement in a replacements set that is causing problem. 196 /// \brief Less-than operator between two Replacements. 199 /// \brief Equal-to operator between two Replacements. 202 /// \brief Maintains a set of replacements that are conflict-free. 203 /// Two replacements are considered conflicts if they overlap or have the sam [all...] |
/external/v8/tools/clang/empty_string/ |
EmptyStringConverter.cpp | 23 using clang::tooling::Replacements; 27 // Handles replacements for stack and heap-allocated instances, e.g.: 32 ConstructorCallback(Replacements* replacements) 33 : replacements_(replacements) {} 38 Replacements* const replacements_; 41 // Handles replacements for invocations of std::string("") in an initializer 45 InitializerCallback(Replacements* replacements) 46 : replacements_(replacements) {} 171 Replacements replacements; local [all...] |