Home
last modified time | relevance | path

Searched refs:ReplacementText (Results 1 – 25 of 30) sorted by relevance

12

/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()
DSimplifyBooleanExprCheck.cpp321 std::string ReplacementText = in containsDiscardedTokens() local
326 ReplacementText.data(), ReplacementText.data(), in containsDiscardedTokens()
327 ReplacementText.data() + ReplacementText.size()); in containsDiscardedTokens()
/external/clang/include/clang/Tooling/Core/
DReplacement.h89 StringRef ReplacementText);
94 unsigned Length, StringRef ReplacementText);
98 StringRef ReplacementText,
104 StringRef ReplacementText,
117 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText()
129 StringRef ReplacementText);
132 StringRef ReplacementText,
137 std::string ReplacementText; variable
244 const Node &NodeToReplace, StringRef ReplacementText, in Replacement() argument
248 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
/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()
DLoopConvertCheck.cpp598 std::string ReplacementText; in doConversion() local
600 ReplacementText = VarName; in doConversion()
605 ReplacementText = ";"; in doConversion()
612 CharSourceRange::getTokenRange(ReplaceRange), ReplacementText)); in doConversion()
/external/llvm-project/clang/include/clang/Tooling/Core/
DReplacement.h95 StringRef ReplacementText);
100 unsigned Length, StringRef ReplacementText);
104 StringRef ReplacementText,
110 StringRef ReplacementText,
123 StringRef getReplacementText() const { return ReplacementText; } in getReplacementText()
134 unsigned Length, StringRef ReplacementText);
137 StringRef ReplacementText,
142 std::string ReplacementText; variable
360 const Node &NodeToReplace, StringRef ReplacementText, in Replacement() argument
364 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
/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/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/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/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecDupCheck.cpp26 std::string ReplacementText = in check() local
32 ReplacementText); in check()
DCloexecPipeCheck.cpp26 std::string ReplacementText = in check() local
32 ReplacementText); in check()
DCloexecCreatCheck.cpp30 const std::string &ReplacementText = in check() local
37 ReplacementText); in check()
DCloexecAcceptCheck.cpp32 std::string ReplacementText = in check() local
41 ReplacementText); in check()
DCloexecCheck.cpp93 std::string ReplacementText = buildFixMsgForStringFlag( in insertStringFlag() local
99 ReplacementText); in insertStringFlag()
/external/llvm-project/clang/unittests/Tooling/
DReplacementTest.h44 llvm::StringRef ReplacementText) { in createReplacement() argument
46 ReplacementText); in createReplacement()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DUpgradeGoogletestCaseCheck.cpp260 llvm::StringRef ReplacementText; in check() local
263 ReplacementText = getNewMethodName(Method->getName()); in check()
297 AddFix = !derivedTypeHasReplacementMethod(Result, ReplacementText); in check()
325 ReplacementText = "TestSuite"; in check()
343 Diag << FixItHint::CreateReplacement(ReplacementRange, ReplacementText); in check()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DInaccurateEraseCheck.cpp58 std::string ReplacementText = std::string(Lexer::getSourceText( in check() local
63 Hint = FixItHint::CreateInsertion(EndLoc, ", " + ReplacementText); in check()
/external/clang/lib/Format/
DWhitespaceManager.cpp483 std::string ReplacementText = C.PreviousLinePostfix; in generateChanges() local
485 appendNewlineText(ReplacementText, C.NewlinesBefore, in generateChanges()
488 appendNewlineText(ReplacementText, C.NewlinesBefore); in generateChanges()
489 appendIndentText(ReplacementText, C.IndentLevel, std::max(0, C.Spaces), in generateChanges()
491 ReplacementText.append(C.CurrentLinePrefix); in generateChanges()
492 storeReplacement(C.OriginalWhitespaceRange, ReplacementText); in generateChanges()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientAlgorithmCheck.cpp144 std::string ReplacementText = in check() local
148 Hint = FixItHint::CreateReplacement(CallRange, ReplacementText); in check()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp156 std::string ReplacementText = "#include " + EscapedHeader; in createReplacementsForHeaders() local
160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders()
260 llvm::StringRef ReplacementText) { in replace() argument
261 return Replaces.add(Replacement(SM, Range, ReplacementText)); in replace()
/external/llvm-project/clang/lib/Format/
DWhitespaceManager.cpp864 std::string ReplacementText = C.PreviousLinePostfix; in generateChanges() local
866 appendEscapedNewlineText(ReplacementText, C.NewlinesBefore, in generateChanges()
870 appendNewlineText(ReplacementText, C.NewlinesBefore); in generateChanges()
872 ReplacementText, C.Tok->IndentLevel, std::max(0, C.Spaces), in generateChanges()
874 ReplacementText.append(C.CurrentLinePrefix); in generateChanges()
875 storeReplacement(C.OriginalWhitespaceRange, ReplacementText); in generateChanges()
/external/llvm-project/lldb/tools/lldb-instr/
DInstrument.cpp151 std::string ReplacementText = in VisitReturnStmt() local
153 MyRewriter.ReplaceText(R, ReplacementText); in VisitReturnStmt()
/external/llvm-project/clang/include/clang/Tooling/Refactoring/
DAtomicChange.h89 llvm::StringRef ReplacementText);

12