/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | ContainerSizeEmptyCheck.cpp | 110 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()
|
D | SimplifyBooleanExprCheck.cpp | 321 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/ |
D | Replacement.h | 89 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/ |
D | ShrinkToFitCheck.cpp | 61 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()
|
D | UseOverrideCheck.cpp | 144 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()
|
D | LoopConvertCheck.cpp | 598 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/ |
D | Replacement.h | 95 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/ |
D | ReplacementsYaml.h | 34 : 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/ |
D | ReplacementsYaml.h | 36 : 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/ |
D | Replacement.cpp | 36 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/ |
D | Replacement.cpp | 48 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/ |
D | CloexecDupCheck.cpp | 26 std::string ReplacementText = in check() local 32 ReplacementText); in check()
|
D | CloexecPipeCheck.cpp | 26 std::string ReplacementText = in check() local 32 ReplacementText); in check()
|
D | CloexecCreatCheck.cpp | 30 const std::string &ReplacementText = in check() local 37 ReplacementText); in check()
|
D | CloexecAcceptCheck.cpp | 32 std::string ReplacementText = in check() local 41 ReplacementText); in check()
|
D | CloexecCheck.cpp | 93 std::string ReplacementText = buildFixMsgForStringFlag( in insertStringFlag() local 99 ReplacementText); in insertStringFlag()
|
/external/llvm-project/clang/unittests/Tooling/ |
D | ReplacementTest.h | 44 llvm::StringRef ReplacementText) { in createReplacement() argument 46 ReplacementText); in createReplacement()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | UpgradeGoogletestCaseCheck.cpp | 260 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/ |
D | InaccurateEraseCheck.cpp | 58 std::string ReplacementText = std::string(Lexer::getSourceText( in check() local 63 Hint = FixItHint::CreateInsertion(EndLoc, ", " + ReplacementText); in check()
|
/external/clang/lib/Format/ |
D | WhitespaceManager.cpp | 483 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/ |
D | InefficientAlgorithmCheck.cpp | 144 std::string ReplacementText = in check() local 148 Hint = FixItHint::CreateReplacement(CallRange, ReplacementText); in check()
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | AtomicChange.cpp | 156 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/ |
D | WhitespaceManager.cpp | 864 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/ |
D | Instrument.cpp | 151 std::string ReplacementText = in VisitReturnStmt() local 153 MyRewriter.ReplaceText(R, ReplacementText); in VisitReturnStmt()
|
/external/llvm-project/clang/include/clang/Tooling/Refactoring/ |
D | AtomicChange.h | 89 llvm::StringRef ReplacementText);
|