Lines Matching refs:Range

831 static CharSourceRange makeRangeFromFileLocs(CharSourceRange Range,
834 SourceLocation Begin = Range.getBegin();
835 SourceLocation End = Range.getEnd();
837 if (Range.isTokenRange()) {
858 CharSourceRange Lexer::makeFileCharRange(CharSourceRange Range,
861 SourceLocation Begin = Range.getBegin();
862 SourceLocation End = Range.getEnd();
867 return makeRangeFromFileLocs(Range, SM, LangOpts);
872 Range.setBegin(Begin);
873 return makeRangeFromFileLocs(Range, SM, LangOpts);
877 if ((Range.isTokenRange() && !isAtEndOfMacroExpansion(End, SM, LangOpts,
879 (Range.isCharRange() && !isAtStartOfMacroExpansion(End, SM, LangOpts,
882 Range.setEnd(End);
883 return makeRangeFromFileLocs(Range, SM, LangOpts);
889 ((Range.isTokenRange() && isAtEndOfMacroExpansion(End, SM, LangOpts,
891 (Range.isCharRange() && isAtStartOfMacroExpansion(End, SM, LangOpts,
893 Range.setBegin(MacroBegin);
894 Range.setEnd(MacroEnd);
895 return makeRangeFromFileLocs(Range, SM, LangOpts);
913 Range.setBegin(SM.getImmediateSpellingLoc(Begin));
914 Range.setEnd(SM.getImmediateSpellingLoc(End));
915 return makeFileCharRange(Range, SM, LangOpts);
922 StringRef Lexer::getSourceText(CharSourceRange Range,
926 Range = makeFileCharRange(Range, SM, LangOpts);
927 if (Range.isInvalid()) {
933 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(Range.getBegin());
940 if (!SM.isInFileID(Range.getEnd(), beginInfo.first, &EndOffs) ||
1425 CharSourceRange Range, bool IsFirst) {
1427 if (!Diags.isIgnored(diag::warn_c99_compat_unicode_id, Range.getBegin())) {
1438 Diags.Report(Range.getBegin(), diag::warn_c99_compat_unicode_id)
1439 << Range
1442 Diags.Report(Range.getBegin(), diag::warn_c99_compat_unicode_id)
1443 << Range
1449 if (!Diags.isIgnored(diag::warn_cxx98_compat_unicode_id, Range.getBegin())) {
1453 Diags.Report(Range.getBegin(), diag::warn_cxx98_compat_unicode_id)
1454 << Range;