Author: Mark de Wever Date: 2023-08-23T18:31:29+02:00 New Revision: c73de296916274e35cb509bc8f612c559e054efc
URL: https://github.com/llvm/llvm-project/commit/c73de296916274e35cb509bc8f612c559e054efc DIFF: https://github.com/llvm/llvm-project/commit/c73de296916274e35cb509bc8f612c559e054efc.diff LOG: [clang][doc] Mentions -Wno-reserved-module-identifiers This is a nicer way to suppress the diagnostic instead of using the pre-processor work-around. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D158523 Added: Modified: clang/docs/StandardCPlusPlusModules.rst Removed: ################################################################################ diff --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst index 3aeb55d8f4dad4..579431bd9aa327 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits