Skip to content

Commit 09d7caa

Browse files
committed
Remove commented-out docs
- Also add a note for build system authors to use `clang++` options
1 parent 8404e4f commit 09d7caa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

clang/docs/StandardCPlusPlusModules.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ clang-cl
403403

404404
``clang-cl`` supports the same options as ``clang++`` for modules as detailed above;
405405
there is no need to prefix these options with ``/clang:``. Note that ``cl.exe``
406-
options to emit `IFC files <https://devblogs.microsoft.com/cppblog/using-cpp-modules-in-msvc-from-the-command-line-part-1/>` are *not* supported. The precompiled modules are also not compatible for use with ``cl.exe``.
406+
`options to emit/consume IFC files <https://devblogs.microsoft.com/cppblog/using-cpp-modules-in-msvc-from-the-command-line-part-1/>` are *not* supported.
407+
The resultant precompiled modules are also not compatible for use with ``cl.exe``.
408+
409+
We recommend that build system authors use the above-mentioned ``clang++`` options with ``clang-cl`` to build modules.
407410

408411
Consistency Requirements
409412
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1183,13 +1186,6 @@ have ``.cppm`` (or ``.ccm``, ``.cxxm``, ``.c++m``) as the file extension.
11831186
However, the behavior is inconsistent with other compilers. This is tracked by
11841187
`#57416 <https://github.com/llvm/llvm-project/issues/57416>`_.
11851188

1186-
.. clang-cl is not compatible with standard C++ modules
1187-
.. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1188-
1189-
.. ``/clang:-fmodule-file`` and ``/clang:-fprebuilt-module-path`` cannot be used
1190-
.. to specify the BMI with ``clang-cl.exe``. This is tracked by
1191-
.. `#64118 <https://github.com/llvm/llvm-project/issues/64118>`_.
1192-
11931189
Incorrect ODR violation diagnostics
11941190
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11951191

0 commit comments

Comments
 (0)