[NFC] [C++20] [Modules] Refactor Sema::isModuleUnitOfCurrentTU into
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 10 May 2023 03:54:04 +0000 (11:54 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 10 May 2023 08:01:27 +0000 (16:01 +0800)
commitf109b1016801e2b0dbee278f3c517057c0b1d441
tree4be22434048fec4aceb6983b19f99cd4d2667f34
parentfa1f88cdeca245497843c507167b84f5522e88cc
[NFC] [C++20] [Modules] Refactor Sema::isModuleUnitOfCurrentTU into
Decl::isInCurrentModuleUnit

Refactor `Sema::isModuleUnitOfCurrentTU` to `Decl::isInCurrentModuleUnit`
to make code simpler a little bit. Note that although this patch
introduces a FIXME, this is an existing issue and this patch just tries
to describe it explicitly.
12 files changed:
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/DeclBase.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/ASTContext.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/CodeGen/CGDeclCXX.cpp
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/Sema/SemaModule.cpp
clang/lib/Sema/SemaOverload.cpp
clang/lib/Sema/SemaTemplate.cpp