diff --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst index 3aeb55d8f4dad..579431bd9aa32 100644 --- a/clang/docs/StandardCPlusPlusModules.rst +++ b/clang/docs/StandardCPlusPlusModules.rst @@ -313,18 +313,8 @@ So all of the following name is not valid by default: __test // and so on ... -If you still want to use the reserved module names for any reason, currently you can add a special line marker -in the front of the module declaration like: - -.. code-block:: c++ - - # __LINE_NUMBER__ __FILE__ 1 3 - export module std; - -Here the `__LINE_NUMBER__` is the actual line number of the corresponding line. The `__FILE__` means the filename -of the translation unit. The `1` means the following is a new file. And `3` means this is a system header/file so -the certain warnings should be suppressed. You could find more details at: -https://gcc.gnu.org/onlinedocs/gcc-3.0.2/cpp_9.html. +If you still want to use the reserved module names for any reason, use +``-Wno-reserved-module-identifier`` to suppress the warning. How to specify the dependent BMIs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~