[all-commits] [llvm/llvm-project] 197576: [clang][lex] Refactor check for the first file inc...
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Thu Nov 18 04:02:22 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 197576c40986085cbd5250283e1e80a2679c9cf0
https://github.com/llvm/llvm-project/commit/197576c40986085cbd5250283e1e80a2679c9cf0
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2021-11-18 (Thu, 18 Nov 2021)
Changed paths:
M clang/include/clang/Lex/HeaderSearch.h
M clang/include/clang/Lex/Lexer.h
M clang/include/clang/Lex/Preprocessor.h
M clang/lib/Lex/HeaderSearch.cpp
M clang/lib/Lex/Lexer.cpp
M clang/lib/Lex/PPDirectives.cpp
M clang/lib/Lex/PPLexerChange.cpp
Log Message:
-----------
[clang][lex] Refactor check for the first file include
This patch refactors the code that checks whether a file has just been included for the first time.
The `HeaderSearch::FirstTimeLexingFile` function is removed and the information is threaded to the original call site from `HeaderSearch::ShouldEnterIncludeFile`. This will make it possible to avoid tracking the number of includes in a follow up patch.
Depends on D114092.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D114093
More information about the All-commits
mailing list