[NFC] Set C++20 Named Modules for CodeGen in ASTContext in the early place
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 13 Feb 2023 09:12:20 +0000 (17:12 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 13 Feb 2023 09:14:58 +0000 (17:14 +0800)
commit24ecd99842352ed1e6d7877e76e93c2f83ebf3f3
treee047fabd245c876e1c7ea5c867c9503b5c4865e7
parent19659b5f0dd1a1dcf745cf058d042ada2d4ff061
[NFC] Set C++20 Named Modules for CodeGen in ASTContext in the early place

Previously we'll set the named modules for ASTContext in ParseAST. But
this is not intuitive and we need comments to tell the intuition. This
patch moves the code the right the place, where the corrresponding
module is first created/loaded. Now it is more intuitive and we can use
the value in the earlier places.
clang/include/clang/AST/ASTContext.h
clang/lib/CodeGen/CGDeclCXX.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Parse/ParseAST.cpp
clang/lib/Sema/SemaModule.cpp