/external/clang/include/clang/Edit/ |
D | Commit.h | 43 CharSourceRange getFileRange(SourceManager &SM) const; 44 CharSourceRange getInsertFromRange(SourceManager &SM) const; 77 bool insertFromRange(SourceLocation loc, CharSourceRange range, 80 bool insertWrap(StringRef before, CharSourceRange range, StringRef after); 82 bool remove(CharSourceRange range); 84 bool replace(CharSourceRange range, StringRef text); 85 bool replaceWithInner(CharSourceRange range, CharSourceRange innerRange); 92 return insertFromRange(loc, CharSourceRange::getTokenRange(TokenRange), 96 return insertWrap(before, CharSourceRange::getTokenRange(TokenRange), after); in insertWrap() 99 return remove(CharSourceRange::getTokenRange(TokenRange)); in remove() [all …]
|
D | EditsReceiver.h | 17 class CharSourceRange; variable 26 virtual void replace(CharSourceRange range, StringRef text) = 0; 28 virtual void remove(CharSourceRange range);
|
/external/clang/unittests/Lex/ |
D | PPCallbacksTest.cpp | 63 CharSourceRange FilenameRange, in InclusionDirective() 83 CharSourceRange FilenameRange; 152 StringRef GetSourceString(CharSourceRange Range) { in GetSourceString() 161 CharSourceRange InclusionDirectiveFilenameRange(const char* SourceText, in InclusionDirectiveFilenameRange() 247 CharSourceRange Range = in TEST_F() 257 CharSourceRange Range = in TEST_F() 268 CharSourceRange Range = in TEST_F() 279 CharSourceRange Range = in TEST_F() 290 CharSourceRange Range = in TEST_F() 302 CharSourceRange Range = in TEST_F() [all …]
|
D | LexerTest.cpp | 97 Lexer::getSourceText(CharSourceRange::getTokenRange(SourceRange( in getSourceText() 303 CharSourceRange range = Lexer::makeFileCharRange( in TEST_F() 304 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F() 306 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc), in TEST_F() 309 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F() 317 CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F() 329 CharSourceRange::getTokenRange(macroLsqrLoc, macroIdLoc), in TEST_F() 334 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(macroIdLoc, macroRsqrLoc), in TEST_F() 341 CharSourceRange::getTokenRange(macroLsqrLoc, macroRsqrLoc), in TEST_F() 347 CharSourceRange::getTokenRange(SourceRange(macroLsqrLoc, macroIdLoc)), in TEST_F()
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 78 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges, 89 SmallVectorImpl<CharSourceRange>& Ranges, 118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, 122 ArrayRef<CharSourceRange> Ranges, 143 StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
D | TextDiagnostic.h | 81 ArrayRef<CharSourceRange> Ranges, 87 ArrayRef<CharSourceRange> Ranges, 92 SmallVectorImpl<CharSourceRange>& Ranges, in emitCodeContext() 111 SmallVectorImpl<CharSourceRange>& Ranges,
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 26 CharSourceRange Commit::Edit::getFileRange(SourceManager &SM) const { in getFileRange() 28 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getFileRange() 31 CharSourceRange Commit::Edit::getInsertFromRange(SourceManager &SM) const { in getInsertFromRange() 35 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getInsertFromRange() 60 CharSourceRange range, in insertFromRange() 86 bool Commit::remove(CharSourceRange range) { in remove() 98 bool Commit::insertWrap(StringRef before, CharSourceRange range, in insertWrap() 111 bool Commit::replace(CharSourceRange range, StringRef text) { in replace() 127 bool Commit::replaceWithInner(CharSourceRange range, in replaceWithInner() 128 CharSourceRange replacementRange) { in replaceWithInner() [all …]
|
D | RewriteObjCFoundationAPI.cpp | 193 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGetCommon() 195 CharSourceRange::getTokenRange(RecRange)); in rewriteToSubscriptGetCommon() 242 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet() 244 CharSourceRange::getTokenRange(RecRange)); in rewriteToArraySubscriptSet() 245 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 247 CharSourceRange::getTokenRange(Arg0Range)); in rewriteToArraySubscriptSet() 250 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 281 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToDictionarySubscriptSet() 283 CharSourceRange::getTokenRange(RecRange)); in rewriteToDictionarySubscriptSet() 515 CharSourceRange::getTokenRange(KeyRange), in rewriteToDictionaryLiteral() [all …]
|
D | EditedSource.cpp | 22 void EditsReceiver::remove(CharSourceRange range) { in remove() 315 CharSourceRange range = CharSourceRange::getCharRange(Loc, in applyRewrite() 381 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
|
/external/clang/include/clang/Basic/ |
D | Diagnostic.h | 55 CharSourceRange RemoveRange; 59 CharSourceRange InsertFromRange; 82 CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); 91 CharSourceRange FromRange, 95 CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); 103 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval() 109 return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange)); in CreateRemoval() 114 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement() 124 return CreateReplacement(CharSourceRange::getTokenRange(RemoveRange), Code); in CreateReplacement() 765 SmallVector<CharSourceRange, 8> DiagRanges; [all …]
|
D | SourceLocation.h | 225 class CharSourceRange { 229 CharSourceRange() : IsTokenRange(false) {} in CharSourceRange() function 230 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {} in CharSourceRange() function 232 static CharSourceRange getTokenRange(SourceRange R) { in getTokenRange() 233 return CharSourceRange(R, true); in getTokenRange() 236 static CharSourceRange getCharRange(SourceRange R) { in getCharRange() 237 return CharSourceRange(R, false); in getCharRange() 240 static CharSourceRange getTokenRange(SourceLocation B, SourceLocation E) { in getTokenRange() 243 static CharSourceRange getCharRange(SourceLocation B, SourceLocation E) { in getCharRange()
|
D | PartialDiagnostic.h | 69 SmallVector<CharSourceRange, 8> DiagRanges; 160 void AddSourceRange(const CharSourceRange &R) const { in AddSourceRange() 303 for (const CharSourceRange &Range : DiagStorage->DiagRanges) in Emit() 381 PD.AddSourceRange(CharSourceRange::getTokenRange(R)); 386 const CharSourceRange &R) {
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 85 void replace(CharSourceRange range, StringRef text) override { in replace() 126 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() 139 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic() 196 ArrayRef<CharSourceRange>(), nullptr, DiagOrStoredDiag()); in emitBasicNote() 325 ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() 326 SmallVectorImpl<CharSourceRange> &SpellingRanges, in mapDiagnosticRanges() 330 for (ArrayRef<CharSourceRange>::const_iterator I = Ranges.begin(), in mapDiagnosticRanges() 382 SpellingRanges.push_back(CharSourceRange(SourceRange(Begin, End), in mapDiagnosticRanges() 389 ArrayRef<CharSourceRange> Ranges, in emitCaret() 392 SmallVector<CharSourceRange, 4> SpellingRanges; in emitCaret() [all …]
|
D | SerializedDiagnosticPrinter.cpp | 66 ArrayRef<CharSourceRange> Ranges, 72 ArrayRef<CharSourceRange> Ranges, in emitDiagnosticLoc() 80 SmallVectorImpl<CharSourceRange>& Ranges, 142 void EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, 147 void EmitCharSourceRange(CharSourceRange R, const SourceManager &SM); 173 void AddCharSourceRangeToRecord(CharSourceRange R, RecordDataImpl &Record, 302 void SDiagsWriter::AddCharSourceRangeToRecord(CharSourceRange Range, in AddCharSourceRangeToRecord() 337 void SDiagsWriter::EmitCharSourceRange(CharSourceRange R, in EmitCharSourceRange() 619 ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() 647 void SDiagsWriter::EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, in EmitCodeContext() [all …]
|
D | DependencyGraph.cpp | 51 CharSourceRange FilenameRange, const FileEntry *File, 71 CharSourceRange FilenameRange, in InclusionDirective()
|
/external/clang/lib/ARCMigrate/ |
D | TransformActions.cpp | 68 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { in CharRange() 100 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP) in compare() 101 .compareWith(CharRange(CharSourceRange::getTokenRange(RHS), in compare() 167 void addRemoval(CharSourceRange range); 446 addRemoval(CharSourceRange::getTokenRange(range)); in commitRemove() 471 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace() 474 addRemoval(CharSourceRange::getTokenRange( in commitReplace() 487 addRemoval(CharSourceRange::getCharRange(loc, afterText)); in commitReplaceText() 495 std::make_pair(CharRange(CharSourceRange::getTokenRange(range), in commitIncreaseIndentation() 519 void TransformActionsImpl::addRemoval(CharSourceRange range) { in addRemoval() [all …]
|
D | Internals.h | 115 virtual void remove(CharSourceRange range) = 0; 116 virtual void increaseIndentation(CharSourceRange range,
|
/external/clang/include/clang/Tooling/ |
D | Refactoring.h | 90 Replacement(const SourceManager &Sources, const CharSourceRange &Range, 121 const CharSourceRange &Range, 236 const CharSourceRange Range = in Replacement() 237 CharSourceRange::getTokenRange(NodeToReplace->getSourceRange()); in Replacement()
|
/external/clang/lib/Tooling/ |
D | RefactoringCallbacks.cpp | 26 return tooling::Replacement(Sources, CharSourceRange::getTokenRange( in replaceStmtWithText() 33 CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt() 45 CharSourceRange::getTokenRange(FromMatch->getSourceRange()), in run()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 173 int getRangeSize(const CharSourceRange &Range, 220 bool RemoveText(CharSourceRange range, 257 bool IncreaseIndentation(CharSourceRange range, SourceLocation parentIndent); 259 return IncreaseIndentation(CharSourceRange::getTokenRange(range), in IncreaseIndentation()
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.h | 56 const CharSourceRange &R); 63 CharSourceRange::getTokenRange(R)); in translateSourceRange()
|
/external/chromium_org/tools/clang/rewrite_scoped_refptr/ |
D | RewriteScopedRefptr.cpp | 68 clang::CharSourceRange range = clang::CharSourceRange::getTokenRange( in RewriteImplicitToExplicitConversion() 82 clang::CharSourceRange sub_expr_range = in RewriteImplicitToExplicitConversion() 83 clang::CharSourceRange::getTokenRange( in RewriteImplicitToExplicitConversion() 140 clang::CharSourceRange range = clang::CharSourceRange::getTokenRange( in RewriteRawPtrToScopedRefptr()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 126 std::vector<CharSourceRange> &Ranges) { in fillRanges() 147 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges() 180 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges() 222 std::vector<CharSourceRange> Ranges; in format()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 372 static CharSourceRange makeFileCharRange(CharSourceRange Range, 377 static StringRef getSourceText(CharSourceRange Range,
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 835 static CharSourceRange makeRangeFromFileLocs(CharSourceRange Range, in makeRangeFromFileLocs() 844 return CharSourceRange(); in makeRangeFromFileLocs() 852 return CharSourceRange(); in makeRangeFromFileLocs() 857 return CharSourceRange(); in makeRangeFromFileLocs() 859 return CharSourceRange::getCharRange(Begin, End); in makeRangeFromFileLocs() 862 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range, in makeFileCharRange() 868 return CharSourceRange(); in makeFileCharRange() 875 return CharSourceRange(); in makeFileCharRange() 885 return CharSourceRange(); in makeFileCharRange() 906 return CharSourceRange(); in makeFileCharRange() [all …]
|