Home | History | Annotate | Download | only in Lex

Lines Matching defs:File

5 // This file is distributed under the University of Illinois Open Source
10 // This file implements the Lexer and Token interfaces.
82 // Start of the file is a start of line.
107 /// assumes that the associated file buffer and Preprocessor objects will
170 // Create the lexer as if we were going to lex the file normally.
176 // just lex the subsection of the file that we want. This is lexing from a
281 /// token are the characters used to represent the token in the source file
293 // Try to the load the file buffer.
295 StringRef file = SM.getBufferData(locInfo.first, &invalidTemp);
301 const char *tokenBegin = file.data() + locInfo.second;
305 file.begin(), tokenBegin, file.end());
322 /// token are the characters used to represent the token in the source file
403 /// its length in bytes in the input file. If the token needs cleaning (e.g.
540 // Create a lexer starting at the beginning of the file. Note that we use a
541 // "fake" file source location at offset 1 so that the lexer will track our
542 // position within the file.
578 // If we've hit the end of the file, we're done.
679 // "preprocessing only" part of the file, so we're no longer in
946 // Try to the load the file buffer.
948 StringRef file = SM.getBufferData(beginInfo.first, &invalidTemp);
955 return file.substr(beginInfo.second, EndOffs - beginInfo.second);
1069 /// offset in the current file.
1075 // In the normal case, we're just lexing from a simple file buffer, return
1076 // the file id from FileLoc with the offset specified.
1197 // Try to load the file buffer.
1199 StringRef File = SM.getBufferData(LocInfo.first, &InvalidTemp);
1203 const char *TokenBegin = File.data() + LocInfo.second;
1206 Lexer lexer(SM.getLocForStartOfFile(LocInfo.first), LangOpts, File.begin(),
1207 TokenBegin, File.end());
1371 /// \brief Routine that indiscriminately skips bytes in the source file.
1765 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file.
1860 } else if (C == 0 && CurPtr-1 == BufferEnd) { // End of file.
1893 (C == 0 && (CurPtr-1 == BufferEnd || // End of file.
1947 (C == 0 && CurPtr-1 == BufferEnd)) { // End of file.
2467 // Found end of file?
2502 /// LexEndOfFile - CurPtr points to the end of this file. Handle this
2507 // If we hit the end of the file while parsing a preprocessor directive,
2509 // then be the end of file.
2541 // C99 5.1.1.2p2: If the file is non-empty and didn't end in a newline, issue
2928 /// has a null character at the end of the file. This returns a preprocessing
2967 // Found end of file?
2990 // If we're in Microsoft extensions mode, treat this as end of file.