Home
last modified time | relevance | path

Searched full:replacementtext (Results 1 – 25 of 76) sorted by relevance

1234

/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/line/
DSingleConversionRule.java40 final private String replacementText; field in SingleConversionRule
43 public SingleConversionRule(Pattern pattern, String replacementText) { in SingleConversionRule() argument
44 this(pattern, replacementText, null); in SingleConversionRule()
47 public SingleConversionRule(Pattern pattern, String replacementText, String additionalLine) { in SingleConversionRule() argument
49 this.replacementText = replacementText; in SingleConversionRule()
68 return replacementText; in replace()
DMultiGroupConversionRule.java82 String replacementText; in replace() local
85 replacementText = getReplacement(group); in replace()
86 if (replacementText != null) { in replace()
88 // + matcher.group(group) + " with " + replacementText); in replace()
89 replacementBuffer.append(replacementText); in replace()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DContainerSizeEmptyCheck.cpp110 std::string ReplacementText = std::string( in check() local
115 ReplacementText = "(" + ReplacementText + ")"; in check()
118 ReplacementText += "->empty()"; in check()
120 ReplacementText += ".empty()"; in check()
124 ReplacementText = "!" + ReplacementText; in check()
127 FixItHint::CreateReplacement(BinCmp->getSourceRange(), ReplacementText); in check()
182 ReplacementText = "!" + ReplacementText; in check()
184 ReplacementText); in check()
192 ReplacementText); in check()
195 "!" + ReplacementText); in check()
/external/clang/include/clang/Tooling/Core/
DReplacement.h83 /// FilePath with ReplacementText.
89 StringRef ReplacementText);
92 /// ReplacementText.
94 unsigned Length, StringRef ReplacementText);
96 /// \brief Creates a Replacement of the given range with ReplacementText.
98 StringRef ReplacementText,
101 /// \brief Creates a Replacement of the node with ReplacementText.
104 StringRef ReplacementText,
117 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText()
129 StringRef ReplacementText);
[all …]
/external/llvm-project/clang/include/clang/Tooling/
DReplacementsYaml.h34 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
38 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
42 ReplacementText); in LLVM_YAML_IS_SEQUENCE_VECTOR()
48 std::string ReplacementText; in LLVM_YAML_IS_SEQUENCE_VECTOR()
57 Io.mapRequired("ReplacementText", Keys->ReplacementText); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/clang/include/clang/Tooling/
DReplacementsYaml.h36 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
40 Length(R.getLength()), ReplacementText(R.getReplacementText()) {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
44 ReplacementText); in LLVM_YAML_IS_SEQUENCE_VECTOR()
50 std::string ReplacementText; in LLVM_YAML_IS_SEQUENCE_VECTOR()
59 Io.mapRequired("ReplacementText", Keys->ReplacementText); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/llvm-project/clang/include/clang/Tooling/Core/
DReplacement.h89 /// FilePath with ReplacementText.
95 StringRef ReplacementText);
98 /// ReplacementText.
100 unsigned Length, StringRef ReplacementText);
102 /// Creates a Replacement of the given range with ReplacementText.
104 StringRef ReplacementText,
107 /// Creates a Replacement of the node with ReplacementText.
110 StringRef ReplacementText,
123 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText()
134 unsigned Length, StringRef ReplacementText);
[all …]
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/basic/
Dfile1.yaml13 ReplacementText: 'auto & elem : ints'
17 ReplacementText: ''
21 ReplacementText: elem
25 ReplacementText: 'override '
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/format/
Dyes.yaml15 ReplacementText: nullptr
19 ReplacementText: nullptr
23 ReplacementText: nullptr
27 ReplacementText: 'auto '
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DShrinkToFitCheck.cpp61 std::string ReplacementText; in check() local
63 ReplacementText = std::string( in check()
67 ReplacementText += "->shrink_to_fit()"; in check()
69 ReplacementText = std::string(Lexer::getSourceText( in check()
72 ReplacementText += ".shrink_to_fit()"; in check()
76 ReplacementText); in check()
DUseOverrideCheck.cpp144 std::string ReplacementText = OverrideSpelling + " "; in check() local
174 ReplacementText = " " + OverrideSpelling; in check()
195 ReplacementText = " " + OverrideSpelling + " "; in check()
202 ReplacementText = " " + OverrideSpelling; in check()
211 Diag << FixItHint::CreateInsertion(InsertLoc, ReplacementText); in check()
/external/llvm-project/clang/unittests/Tooling/
DReplacementsYamlTest.cpp40 " ReplacementText: 'replacement #1'\n" in TEST()
44 " ReplacementText: 'replacement #2'\n" in TEST()
68 " ReplacementText: \"#include <utility>\\n\"\n" in TEST()
80 " ReplacementText: 'replacement #1'\n" in TEST()
84 " ReplacementText: 'replacement #2'\n" in TEST()
110 " ReplacementText: replacement\n" in TEST()
/external/clang/lib/Tooling/Core/
DReplacement.cpp36 StringRef ReplacementText) in Replacement() argument
38 ReplacementText(ReplacementText) {} in Replacement()
41 unsigned Length, StringRef ReplacementText) { in Replacement() argument
42 setFromSourceLocation(Sources, Start, Length, ReplacementText); in Replacement()
47 StringRef ReplacementText, in Replacement() argument
49 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
70 Start, ReplacementRange.getLength(), ReplacementText); in apply()
79 << ReplacementRange.getLength() << ":\"" << ReplacementText << "\""; in toString()
107 StringRef ReplacementText) { in setFromSourceLocation() argument
113 this->ReplacementText = ReplacementText; in setFromSourceLocation()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/conflict/
Dfile2.yaml13 ReplacementText: 'int & elem : ints'
17 ReplacementText: elem
21 ReplacementText: nullptr
Dfile1.yaml13 ReplacementText: 'auto & i : ints'
17 ReplacementText: i
21 ReplacementText: ''
/external/clang/unittests/Tooling/
DReplacementsYamlTest.cpp45 " ReplacementText: 'replacement #1'\n" in TEST()
49 " ReplacementText: 'replacement #2'\n" in TEST()
62 " ReplacementText: 'replacement #1'\n" in TEST()
66 " ReplacementText: 'replacement #2'\n" in TEST()
93 " ReplacementText: replacement\n" in TEST()
/external/llvm-project/clang/lib/Tooling/Core/
DReplacement.cpp48 StringRef ReplacementText) in Replacement() argument
50 ReplacementText(std::string(ReplacementText)) {} in Replacement()
53 unsigned Length, StringRef ReplacementText) { in Replacement() argument
54 setFromSourceLocation(Sources, Start, Length, ReplacementText); in Replacement()
59 StringRef ReplacementText, in Replacement() argument
61 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
82 Start, ReplacementRange.getLength(), ReplacementText); in apply()
91 << ReplacementRange.getLength() << ":\"" << ReplacementText << "\""; in toString()
122 StringRef ReplacementText) { in setFromSourceLocation() argument
128 this->ReplacementText = std::string(ReplacementText); in setFromSourceLocation()
[all …]
/external/clang/lib/ARCMigrate/
DTransformActions.cpp142 StringRef replacementText);
163 StringRef replacementText);
339 StringRef replacementText) { in replaceText() argument
341 replacementText = getUniqueText(replacementText); in replaceText()
346 data.Text2 = replacementText; in replaceText()
481 StringRef replacementText) { in commitReplaceText() argument
488 commitInsert(loc, replacementText); in commitReplaceText()
654 StringRef replacementText) { in replaceText() argument
656 replacementText); in replaceText()
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/invalid-files/
Dinvalid-files.yaml7 ReplacementText: ' override'
11 ReplacementText: ' override'
/external/llvm-project/clang/lib/ARCMigrate/
DTransformActions.cpp141 StringRef replacementText);
162 StringRef replacementText);
340 StringRef replacementText) { in replaceText() argument
342 replacementText = getUniqueText(replacementText); in replaceText()
347 data.Text2 = replacementText; in replaceText()
482 StringRef replacementText) { in commitReplaceText() argument
489 commitInsert(loc, replacementText); in commitReplaceText()
660 StringRef replacementText) { in replaceText() argument
662 replacementText); in replaceText()
/external/llvm-project/clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/
Dfile1.yaml13 ReplacementText: '0'
17 ReplacementText: '0'
Dfile2.yaml13 ReplacementText: '0'
17 ReplacementText: '0'
/external/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/
Dfix.cpp12 // CHECK-YAML: ReplacementText: ' // namespace i'
18 // CHECK-YAML: ReplacementText: 'explicit '
Dexport-relpath.cpp16 // CHECK-YAML: ReplacementText: ' // namespace i'
19 // CHECK-YAML: ReplacementText: 'explicit '
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecPipeCheck.cpp26 std::string ReplacementText = in check() local
32 ReplacementText); in check()

1234