From: Richard Smith Date: Tue, 30 May 2017 23:05:23 +0000 (+0000) Subject: [modules] Minor documentation clarification for behavior of requires-declaration. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=432867c65c539811e0e53cc1021250ce1f5d7853;p=clang [modules] Minor documentation clarification for behavior of requires-declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/Modules.rst b/docs/Modules.rst index b8841c0a5c..7bd2adf8af 100644 --- a/docs/Modules.rst +++ b/docs/Modules.rst @@ -403,7 +403,7 @@ A *requires-declaration* specifies the requirements that an importing translatio *feature*: ``!``:sub:`opt` *identifier* -The requirements clause allows specific modules or submodules to specify that they are only accessible with certain language dialects or on certain platforms. The feature list is a set of identifiers, defined below. If any of the features is not available in a given translation unit, that translation unit shall not import the module. The optional ``!`` indicates that a feature is incompatible with the module. +The requirements clause allows specific modules or submodules to specify that they are only accessible with certain language dialects or on certain platforms. The feature list is a set of identifiers, defined below. If any of the features is not available in a given translation unit, that translation unit shall not import the module. When building a module for use by a compilation, submodules requiring unavailable features are ignored. The optional ``!`` indicates that a feature is incompatible with the module. The following features are defined: