/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 | 53 CharSourceRange FilenameRange, in InclusionDirective() 73 CharSourceRange FilenameRange; 119 StringRef GetSourceString(CharSourceRange Range) { in GetSourceString() 128 CharSourceRange InclusionDirectiveFilenameRange(const char* SourceText, in InclusionDirectiveFilenameRange() 168 CharSourceRange Range = in TEST_F() 178 CharSourceRange Range = in TEST_F() 189 CharSourceRange Range = in TEST_F() 200 CharSourceRange Range = in TEST_F() 211 CharSourceRange Range = in TEST_F() 223 CharSourceRange Range = in TEST_F() [all …]
|
D | LexerTest.cpp | 93 Lexer::getSourceText(CharSourceRange::getTokenRange(SourceRange( in getSourceText() 299 CharSourceRange range = Lexer::makeFileCharRange( in TEST_F() 300 CharSourceRange::getTokenRange(lsqrLoc, idLoc), SourceMgr, LangOpts); in TEST_F() 302 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(idLoc, rsqrLoc), in TEST_F() 305 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F() 313 CharSourceRange::getTokenRange(lsqrLoc, rsqrLoc), in TEST_F() 325 CharSourceRange::getTokenRange(macroLsqrLoc, macroIdLoc), in TEST_F() 330 range = Lexer::makeFileCharRange(CharSourceRange::getTokenRange(macroIdLoc, macroRsqrLoc), in TEST_F() 337 CharSourceRange::getTokenRange(macroLsqrLoc, macroRsqrLoc), in TEST_F() 343 CharSourceRange::getTokenRange(SourceRange(macroLsqrLoc, macroIdLoc)), in TEST_F()
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 78 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges, 91 SmallVectorImpl<CharSourceRange>& Ranges, 119 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, 123 ArrayRef<CharSourceRange> Ranges, 144 StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
D | TextDiagnostic.h | 82 ArrayRef<CharSourceRange> Ranges, 88 ArrayRef<CharSourceRange> Ranges, 93 SmallVectorImpl<CharSourceRange>& Ranges, in emitCodeContext() 114 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() 317 CharSourceRange range = CharSourceRange::getCharRange(Loc, in applyRewrite() 383 return Lexer::getSourceText(CharSourceRange::getCharRange(BLoc, ELoc), in getSourceText()
|
/external/clang/include/clang/Basic/ |
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 | Diagnostic.h | 53 CharSourceRange RemoveRange; 57 CharSourceRange InsertFromRange; 80 CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); 89 CharSourceRange FromRange, 93 CharSourceRange::getCharRange(InsertionLoc, InsertionLoc); 101 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval() 107 return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange)); in CreateRemoval() 112 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement() 122 return CreateReplacement(CharSourceRange::getTokenRange(RemoveRange), Code); in CreateReplacement() 751 CharSourceRange DiagRanges[MaxRanges]; [all …]
|
D | PartialDiagnostic.h | 74 CharSourceRange DiagRanges[10]; 165 void AddSourceRange(const CharSourceRange &R) const { in AddSourceRange() 372 PD.AddSourceRange(CharSourceRange::getTokenRange(R)); 377 const CharSourceRange &R) {
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 85 virtual void replace(CharSourceRange range, StringRef text) { in replace() 126 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() 139 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic() 319 ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() 320 SmallVectorImpl<CharSourceRange> &SpellingRanges, in mapDiagnosticRanges() 324 for (ArrayRef<CharSourceRange>::const_iterator I = Ranges.begin(), in mapDiagnosticRanges() 376 SpellingRanges.push_back(CharSourceRange(SourceRange(Begin, End), in mapDiagnosticRanges() 383 ArrayRef<CharSourceRange> Ranges, in emitCaret() 386 SmallVector<CharSourceRange, 4> SpellingRanges; in emitCaret() 405 ArrayRef<CharSourceRange> Ranges, in emitMacroExpansions() [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() 605 ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() 633 void SDiagsWriter::EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, in EmitCodeContext() [all …]
|
D | DependencyGraph.cpp | 53 CharSourceRange FilenameRange, 75 CharSourceRange FilenameRange, in InclusionDirective()
|
/external/clang/include/clang/Tooling/ |
D | Refactoring.h | 92 Replacement(SourceManager &Sources, const CharSourceRange &Range, 128 void setFromSourceRange(SourceManager &Sources, const CharSourceRange &Range, 198 const CharSourceRange Range = in Replacement() 199 CharSourceRange::getTokenRange(NodeToReplace->getSourceRange()); in Replacement()
|
/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 …]
|
/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()
|
D | Refactoring.cpp | 41 Replacement::Replacement(SourceManager &Sources, const CharSourceRange &Range, in Replacement() 107 static int getRangeSize(SourceManager &Sources, const CharSourceRange &Range) { in getRangeSize() 120 const CharSourceRange &Range, in setFromSourceRange()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 174 int getRangeSize(const CharSourceRange &Range, 221 bool RemoveText(CharSourceRange range, 258 bool IncreaseIndentation(CharSourceRange range, SourceLocation parentIndent); 260 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_ptr_ctor_null/ |
D | RewriteScopedPtrCtorNull.cpp | 130 clang::CharSourceRange range = in run() 131 clang::CharSourceRange::getTokenRange(call->getParenRange()); in run() 161 clang::CharSourceRange::getTokenRange(expansion_range), in run()
|
/external/chromium_org/tools/clang/rewrite_scoped_array/ |
D | RewriteScopedArray.cpp | 46 clang::CharSourceRange range = clang::CharSourceRange::getTokenRange( in run()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 172 std::vector<CharSourceRange> &Ranges) { in fillRanges() 193 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges() 226 Ranges.push_back(CharSourceRange::getCharRange(Start, End)); in fillRanges() 246 std::vector<CharSourceRange> Ranges; in format()
|
/external/clang/include/clang/Lex/ |
D | Lexer.h | 373 static CharSourceRange makeFileCharRange(CharSourceRange Range, 378 static StringRef getSourceText(CharSourceRange Range,
|