From: Chuanqi Xu Date: Tue, 15 Nov 2022 14:52:21 +0000 (+0800) Subject: [NFC] Fix the typo and the format in the StandardCPlusPlusModules X-Git-Tag: upstream/17.0.6~27622 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de034cf3136dfe421189d8627654aad0313cf988;p=platform%2Fupstream%2Fllvm.git [NFC] Fix the typo and the format in the StandardCPlusPlusModules document --- diff --git a/clang/docs/StandardCPlusPlusModules.rst b/clang/docs/StandardCPlusPlusModules.rst index c979070..c7c0476 100644 --- a/clang/docs/StandardCPlusPlusModules.rst +++ b/clang/docs/StandardCPlusPlusModules.rst @@ -275,7 +275,9 @@ Module name requirement [module.unit]p1 says: -> All module-names either beginning with an identifier consisting of std followed by zero +:: + + All module-names either beginning with an identifier consisting of std followed by zero or more digits or containing a reserved identifier ([lex.name]) are reserved and shall not be specified in a module-declaration; no diagnostic is required. If any identifier in a reserved module-name is a reserved identifier, the module name is reserved for use by C++ implementations; @@ -297,7 +299,7 @@ in the front of the module declaration like: .. code-block:: c++ # __LINE_NUMBER__ __FILE__ 1 3 - export moudle std; + 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