[all-commits] [llvm/llvm-project] 2db239: [C++20] [Modules] Improve the import-and-include p...
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Aug 19 20:48:46 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2db239acd1e4cb61e8c5c55dcc4b08c7d64919b6
https://github.com/llvm/llvm-project/commit/2db239acd1e4cb61e8c5c55dcc4b08c7d64919b6
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2025-08-20 (Wed, 20 Aug 2025)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/CXX/drs/cwg279.cpp
M clang/test/Modules/redundant-template-default-arg2.cpp
A clang/test/Modules/skip-body-2.cppm
Log Message:
-----------
[C++20] [Modules] Improve the import-and-include pattern
The import and include problem is a long-standing issue with the use of
C++20 modules. This patch tried to improve this by skipping parsing
class and functions if their declaration is already defined in modules.
The scale of the patch itself is small as the patch reuses previous
optimization. Maybe we can skip parsing other declarations in the
future. But the patch itself should be good.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list