Home
last modified time | relevance | path

Searched refs:FilenameTok (Results 1 – 19 of 19) sorted by relevance

/external/clang/lib/Lex/
DPreprocessorLexer.cpp32 void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) { in LexIncludeFilename() argument
42 IndirectLex(FilenameTok); in LexIncludeFilename()
44 PP->Lex(FilenameTok); in LexIncludeFilename()
50 if (FilenameTok.is(tok::eod)) in LexIncludeFilename()
51 PP->Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in LexIncludeFilename()
DPPDirectives.cpp1684 Token FilenameTok; in HandleIncludeDirective() local
1685 CurPPLexer->LexIncludeFilename(FilenameTok); in HandleIncludeDirective()
1693 switch (FilenameTok.getKind()) { in HandleIncludeDirective()
1700 Filename = getSpelling(FilenameTok, FilenameBuffer); in HandleIncludeDirective()
1701 End = FilenameTok.getLocation(); in HandleIncludeDirective()
1702 CharEnd = End.getLocWithOffset(FilenameTok.getLength()); in HandleIncludeDirective()
1715 Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in HandleIncludeDirective()
1721 = CharSourceRange::getCharRange(FilenameTok.getLocation(), CharEnd); in HandleIncludeDirective()
1724 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandleIncludeDirective()
1740 Diag(FilenameTok, diag::err_pp_include_too_deep); in HandleIncludeDirective()
[all …]
DPragma.cpp455 Token FilenameTok; in HandlePragmaDependency() local
456 CurPPLexer->LexIncludeFilename(FilenameTok); in HandlePragmaDependency()
459 if (FilenameTok.is(tok::eod)) in HandlePragmaDependency()
465 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid); in HandlePragmaDependency()
470 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency()
479 LookupFile(FilenameTok.getLocation(), Filename, isAngled, nullptr, in HandlePragmaDependency()
483 Diag(FilenameTok, diag::err_pp_file_not_found) << Filename; in HandlePragmaDependency()
502 Diag(FilenameTok, diag::pp_out_of_date_dependency) << Message; in HandlePragmaDependency()
/external/llvm-project/clang/lib/Lex/
DPreprocessor.cpp990 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()
[all …]
DPreprocessorLexer.cpp32 void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) { in LexIncludeFilename() argument
40 IndirectLex(FilenameTok); in LexIncludeFilename()
42 PP->Lex(FilenameTok); in LexIncludeFilename()
DPPDirectives.cpp1682 Token FilenameTok; in HandleIncludeDirective() local
1683 if (LexHeaderName(FilenameTok)) in HandleIncludeDirective()
1686 if (FilenameTok.isNot(tok::header_name)) { in HandleIncludeDirective()
1687 Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in HandleIncludeDirective()
1688 if (FilenameTok.isNot(tok::eod)) in HandleIncludeDirective()
1700 auto Action = HandleHeaderIncludeOrImport(HashLoc, IncludeTok, FilenameTok, in HandleIncludeDirective()
1727 const Token &FilenameTok, bool &IsFrameworkFound, bool IsImportDecl, in LookupHeaderIncludeOrImport() argument
1776 Diag(FilenameTok, diag::err_pp_file_not_found_angled_include_not_fatal) in LookupHeaderIncludeOrImport()
1811 Diag(FilenameTok, diag::err_pp_file_not_found_typo_not_fatal) in LookupHeaderIncludeOrImport()
1823 Diag(FilenameTok, diag::err_pp_file_not_found) in LookupHeaderIncludeOrImport()
[all …]
DPragma.cpp496 Token FilenameTok; in HandlePragmaDependency() local
497 if (LexHeaderName(FilenameTok, /*AllowConcatenation*/false)) in HandlePragmaDependency()
501 if (FilenameTok.isNot(tok::header_name)) { in HandlePragmaDependency()
502 Diag(FilenameTok.getLocation(), diag::err_pp_expects_filename); in HandlePragmaDependency()
509 StringRef Filename = getSpelling(FilenameTok, FilenameBuffer, &Invalid); in HandlePragmaDependency()
514 GetIncludeFilenameSpelling(FilenameTok.getLocation(), Filename); in HandlePragmaDependency()
523 LookupFile(FilenameTok.getLocation(), Filename, isAngled, nullptr, in HandlePragmaDependency()
527 Diag(FilenameTok, diag::err_pp_file_not_found) << Filename; in HandlePragmaDependency()
546 Diag(FilenameTok, diag::pp_out_of_date_dependency) << Message; in HandlePragmaDependency()
/external/clang/include/clang/Lex/
DPPCallbacks.h64 const Token &FilenameTok, in FileSkipped() argument
341 const Token &FilenameTok, in FileSkipped() argument
343 First->FileSkipped(SkippedFile, FilenameTok, FileType); in FileSkipped()
344 Second->FileSkipped(SkippedFile, FilenameTok, FileType); in FileSkipped()
/external/llvm-project/clang/include/clang/Lex/
DPPCallbacks.h61 const Token &FilenameTok, in FileSkipped() argument
393 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped() argument
395 First->FileSkipped(SkippedFile, FilenameTok, FileType); in FileSkipped()
396 Second->FileSkipped(SkippedFile, FilenameTok, FileType); in FileSkipped()
DPreprocessorLexer.h132 void LexIncludeFilename(Token &FilenameTok);
DPreprocessor.h2261 const Token &FilenameTok, bool &IsFrameworkFound, bool IsImportDecl,
2273 Token &FilenameTok, SourceLocation EndLoc,
/external/llvm-project/clang-tools-extra/pp-trace/
DPPCallbacksTracker.cpp117 const Token &FilenameTok, in FileSkipped() argument
121 appendArgument("FilenameTok", FilenameTok); in FileSkipped()
DPPCallbacksTracker.h92 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
/external/llvm-project/clang-tools-extra/clangd/unittests/
DParsedASTTests.cpp385 void FileSkipped(const FileEntryRef &, const Token &FilenameTok, in TEST()
387 SkippedFiles.emplace_back(FilenameTok); in TEST()
/external/llvm-project/clang-tools-extra/clangd/index/
DIndexAction.cpp107 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
/external/llvm-project/clang/lib/Frontend/
DDependencyFile.cpp57 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok, in FileSkipped()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp75 void FileSkipped(const FileEntryRef &SkippedFile, const Token &FilenameTok,
/external/clang/lib/Frontend/Rewrite/
DInclusionRewriter.cpp64 void FileSkipped(const FileEntry &SkippedFile, const Token &FilenameTok,
/external/llvm-project/clang-tools-extra/docs/
Dpp-trace.rst192 FilenameTok (token) const Token …
200 FilenameTok: "filename.h"