Home | History | Annotate | Download | only in Lex

Lines Matching defs:FileLoc

111     FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)),
131 Lexer::Lexer(SourceLocation fileloc, const LangOptions &langOpts,
133 : FileLoc(fileloc), LangOpts(langOpts) {
186 L->FileLoc = SM.createExpansionLoc(SM.getLocForStartOfFile(SpellingFID),
518 SourceLocation FileLoc = SM.getSpellingLoc(Loc);
519 SourceLocation BeginFileLoc = getBeginningOfFileToken(FileLoc, SM, LangOpts);
520 std::pair<FileID, unsigned> FileLocInfo = SM.getDecomposedLoc(FileLoc);
544 SourceLocation FileLoc = SourceLocation::getFromRawEncoding(StartOffset);
545 Lexer TheLexer(FileLoc, LangOpts, Buffer.begin(), Buffer.begin(),
549 // StartLoc will differ from FileLoc if there is a BOM that was skipped.
1017 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1019 SourceLocation FileLoc,
1021 assert(FileLoc.isMacroID() && "Must be a macro expansion");
1024 // _Pragma handling. Combine the expansion location of FileLoc with the
1028 // Create a new SLoc which is expanded from Expansion(FileLoc) but whose
1029 // characters come from spelling(FileLoc)+Offset.
1030 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc);
1036 SM.getImmediateExpansionRange(FileLoc);
1049 // the file id from FileLoc with the offset specified.
1051 if (FileLoc.isFileID())
1052 return FileLoc.getLocWithOffset(CharNo);
1057 return GetMappedTokenLoc(*PP, FileLoc, CharNo, TokLen);
2296 !(PP && PP->getCodeCompletionFileLoc() == FileLoc)) {
2507 if (PP->getCodeCompletionFileLoc() != FileLoc)
2688 SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart);