Home
last modified time | relevance | path

Searched refs:CharSourceRange (Results 1 – 18 of 18) sorted by relevance

/external/clang/include/clang/Basic/
DSourceLocation.h216 class CharSourceRange {
220 CharSourceRange() : IsTokenRange(false) {} in CharSourceRange() function
221 CharSourceRange(SourceRange R, bool ITR) : Range(R),IsTokenRange(ITR){} in CharSourceRange() function
223 static CharSourceRange getTokenRange(SourceRange R) { in getTokenRange()
224 CharSourceRange Result; in getTokenRange()
230 static CharSourceRange getCharRange(SourceRange R) { in getCharRange()
231 CharSourceRange Result; in getCharRange()
237 static CharSourceRange getTokenRange(SourceLocation B, SourceLocation E) { in getTokenRange()
240 static CharSourceRange getCharRange(SourceLocation B, SourceLocation E) { in getCharRange()
DDiagnostic.h51 CharSourceRange RemoveRange;
71 CharSourceRange(SourceRange(InsertionLoc, InsertionLoc), false); in CreateInsertion()
78 static FixItHint CreateRemoval(CharSourceRange RemoveRange) { in CreateRemoval()
84 return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange)); in CreateRemoval()
89 static FixItHint CreateReplacement(CharSourceRange RemoveRange, in CreateReplacement()
99 return CreateReplacement(CharSourceRange::getTokenRange(RemoveRange), Code); in CreateReplacement()
616 CharSourceRange DiagRanges[10];
765 void AddSourceRange(const CharSourceRange &R) const { in AddSourceRange()
833 DB.AddSourceRange(CharSourceRange::getTokenRange(R));
838 const CharSourceRange &R) {
[all …]
DPartialDiagnostic.h66 CharSourceRange DiagRanges[10];
149 void AddSourceRange(const CharSourceRange &R) const { in AddSourceRange()
313 PD.AddSourceRange(CharSourceRange::getTokenRange(R));
318 const CharSourceRange &R) {
/external/clang/lib/ARCMigrate/
DTransformActions.cpp69 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { in CharRange()
101 return CharRange(CharSourceRange::getTokenRange(LHS), SrcMgr, PP) in compare()
102 .compareWith(CharRange(CharSourceRange::getTokenRange(RHS), in compare()
166 void addRemoval(CharSourceRange range);
445 addRemoval(CharSourceRange::getTokenRange(range)); in commitRemove()
470 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace()
473 addRemoval(CharSourceRange::getTokenRange( in commitReplace()
486 addRemoval(CharSourceRange::getCharRange(loc, afterText)); in commitReplaceText()
494 std::make_pair(CharRange(CharSourceRange::getTokenRange(range), in commitIncreaseIndentation()
518 void TransformActionsImpl::addRemoval(CharSourceRange range) { in addRemoval()
[all …]
DInternals.h107 virtual void remove(CharSourceRange range) = 0;
108 virtual void increaseIndentation(CharSourceRange range,
DPlistReporter.cpp70 CharSourceRange R, const FIDMap &FM, in EmitRange()
DARCMT.cpp448 virtual void remove(CharSourceRange range) { in remove()
459 virtual void increaseIndentation(CharSourceRange range, in increaseIndentation()
/external/clang/include/clang/Rewrite/
DRewriter.h172 int getRangeSize(const CharSourceRange &Range,
219 bool RemoveText(CharSourceRange range,
256 bool IncreaseIndentation(CharSourceRange range, SourceLocation parentIndent);
258 return IncreaseIndentation(CharSourceRange::getTokenRange(range), in IncreaseIndentation()
/external/clang/tools/libclang/
DCXSourceLocation.h56 const CharSourceRange &R);
63 CharSourceRange::getTokenRange(R)); in translateSourceRange()
DCIndex.cpp115 const CharSourceRange &R) { in translateSourceRange()
/external/clang/include/clang/Frontend/
DTextDiagnosticPrinter.h59 void HighlightRange(const CharSourceRange &R,
69 void EmitCaretDiagnostic(SourceLocation Loc, CharSourceRange *Ranges,
/external/clang/tools/arcmt-test/
Darcmt-test.cpp73 static void printSourceRange(CharSourceRange range, ASTContext &Ctx,
96 virtual void remove(CharSourceRange range) { in remove()
315 static void printSourceRange(CharSourceRange range, ASTContext &Ctx, in printSourceRange()
/external/clang/lib/Rewrite/
DRewriter.cpp119 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize()
153 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize()
350 bool Rewriter::IncreaseIndentation(CharSourceRange range, in IncreaseIndentation()
/external/clang/include/clang/ARCMigrate/
DARCMT.h100 virtual void remove(CharSourceRange range) { } in remove()
/external/clang/lib/Frontend/
DTextDiagnosticPrinter.cpp79 void TextDiagnosticPrinter::HighlightRange(const CharSourceRange &R, in HighlightRange()
346 CharSourceRange *Ranges, in EmitCaretDiagnostic()
382 CharSourceRange &R = Ranges[i]; in EmitCaretDiagnostic()
1099 CharSourceRange Ranges[20]; in HandleDiagnostic()
DASTUnit.cpp2379 llvm::SmallVector<CharSourceRange, 4> Ranges; in TranslateStoredDiagnostics()
2388 Ranges.push_back(CharSourceRange(SourceRange(BL, EL), I->isTokenRange())); in TranslateStoredDiagnostics()
2403 FH.RemoveRange = CharSourceRange(SourceRange(BL, EL), in TranslateStoredDiagnostics()
/external/clang/lib/Basic/
DDiagnostic.cpp731 llvm::ArrayRef<CharSourceRange> Ranges, in StoredDiagnostic()
/external/clang/lib/Sema/
DSemaChecking.cpp1218 CharSourceRange getSpecifierRange(const char *startSpecifier,
1235 CharSourceRange CheckFormatHandler::
1243 return CharSourceRange::getCharRange(Start, End); in getSpecifierRange()
1755 const CharSourceRange &R = getSpecifierRange(Amt.getStart(), in HandleScanfSpecifier()