Lines Matching refs:FilenameTok
990 bool Preprocessor::LexHeaderName(Token &FilenameTok, bool AllowMacroExpansion) { in LexHeaderName() argument
994 CurPPLexer->LexIncludeFilename(FilenameTok); in LexHeaderName()
996 Lex(FilenameTok); in LexHeaderName()
1001 if (FilenameTok.is(tok::less) && AllowMacroExpansion) { in LexHeaderName()
1002 bool StartOfLine = FilenameTok.isAtStartOfLine(); in LexHeaderName()
1003 bool LeadingSpace = FilenameTok.hasLeadingSpace(); in LexHeaderName()
1004 bool LeadingEmptyMacro = FilenameTok.hasLeadingEmptyMacro(); in LexHeaderName()
1006 SourceLocation Start = FilenameTok.getLocation(); in LexHeaderName()
1014 while (FilenameTok.isNot(tok::greater)) { in LexHeaderName()
1015 Lex(FilenameTok); in LexHeaderName()
1016 if (FilenameTok.isOneOf(tok::eod, tok::eof)) { in LexHeaderName()
1017 Diag(FilenameTok.getLocation(), diag::err_expected) << tok::greater; in LexHeaderName()
1022 End = FilenameTok.getLocation(); in LexHeaderName()
1025 if (FilenameTok.is(tok::code_completion)) { in LexHeaderName()
1027 Lex(FilenameTok); in LexHeaderName()
1033 if (FilenameTok.hasLeadingSpace()) in LexHeaderName()
1039 FilenameBuffer.resize(PreAppendSize + FilenameTok.getLength()); in LexHeaderName()
1042 unsigned ActualLen = getSpelling(FilenameTok, BufPtr); in LexHeaderName()
1049 if (FilenameTok.getLength() != ActualLen) in LexHeaderName()
1053 FilenameTok.startToken(); in LexHeaderName()
1054 FilenameTok.setKind(tok::header_name); in LexHeaderName()
1055 FilenameTok.setFlagValue(Token::StartOfLine, StartOfLine); in LexHeaderName()
1056 FilenameTok.setFlagValue(Token::LeadingSpace, LeadingSpace); in LexHeaderName()
1057 FilenameTok.setFlagValue(Token::LeadingEmptyMacro, LeadingEmptyMacro); in LexHeaderName()
1058 CreateString(FilenameBuffer, FilenameTok, Start, End); in LexHeaderName()
1059 } else if (FilenameTok.is(tok::string_literal) && AllowMacroExpansion) { in LexHeaderName()
1070 StringRef Str = getSpelling(FilenameTok, FilenameBuffer); in LexHeaderName()
1072 FilenameTok.setKind(tok::header_name); in LexHeaderName()