This patch addresses a FIXME and de-duplicates some #include_next logic
Depends on D119714.
Paths
| Differential D119716
[clang][lex] NFC: De-duplicate some #include_next logic ClosedPublic Authored by jansvoboda11 on Feb 14 2022, 6:57 AM.
Details
Diff Detail
Event Timelinejansvoboda11 created this revision. jansvoboda11 removed a parent revision: D119714: [clang][lex] Remove `Preprocessor::GetCurDirLookup()`.Feb 14 2022, 7:24 AM jansvoboda11 added a child revision: D119714: [clang][lex] Remove `Preprocessor::GetCurDirLookup()`.
jansvoboda11 removed a child revision: D119714: [clang][lex] Remove `Preprocessor::GetCurDirLookup()`.Feb 15 2022, 12:06 AM jansvoboda11 added a parent revision: D119714: [clang][lex] Remove `Preprocessor::GetCurDirLookup()`. Comment ActionsReturn std::pair
This revision is now accepted and ready to land.Feb 15 2022, 12:50 AM Closed by commit rGa081a0654f35: [clang][lex] NFC: De-duplicate some #include_next logic (authored by jansvoboda11). · Explain WhyFeb 15 2022, 1:10 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 408753 clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PPMacroExpansion.cpp
|
I there a reason why this uses an out parameter instead of a returning a std::pair or something similar? If yes, I think it would be good to document which parameters are out parameters. IncludeNextTok looks suspiciously like an out-parameter as well but is not AFAICT.