Skip to content

Commit 88f9ac3

Browse files
committed
[doc] [C++20] [Modules] Add docs and release notes for '-Wdecls-in-multiple-modules'
As the title shows.
1 parent d982882 commit 88f9ac3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ Improvements to Clang's diagnostics
249249
a warning which defaults to being an error, is enabled by default, and is
250250
also controlled by the now-deprecated ``-fheinous-gnu-extensions`` flag.
251251

252+
- Added the ``-Wdecls-in-multiple-modules`` option to assist users to identify
253+
multiple declarations in different modules, which is the major reason of the slow
254+
compilation speed with modules. This warning is disabled by default and it needs
255+
to be explicitly enabled or by ``-Weverything``.
256+
252257
Improvements to Clang's time-trace
253258
----------------------------------
254259

clang/docs/StandardCPlusPlusModules.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ approach:
894894
Reducing the duplication from textual includes is what improves compile-time
895895
performance.
896896

897+
To help users to identify such issues, we add a warning ``-Wdecls-in-multiple-modules``.
898+
This warning is disabled by default and it needs to be explicitly enabled or by ``-Weverything``.
899+
897900
Transitioning to modules
898901
------------------------
899902

0 commit comments

Comments
 (0)