r304253 - [modules] Minor documentation clarification for behavior of requires-declaration.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 16:05:24 PDT 2017


Author: rsmith
Date: Tue May 30 18:05:23 2017
New Revision: 304253

URL: http://llvm.org/viewvc/llvm-project?rev=304253&view=rev
Log:
[modules] Minor documentation clarification for behavior of requires-declaration.

Modified:
    cfe/trunk/docs/Modules.rst

Modified: cfe/trunk/docs/Modules.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/Modules.rst?rev=304253&r1=304252&r2=304253&view=diff
==============================================================================
--- cfe/trunk/docs/Modules.rst (original)
+++ cfe/trunk/docs/Modules.rst Tue May 30 18:05:23 2017
@@ -403,7 +403,7 @@ A *requires-declaration* specifies the r
   *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:
 




More information about the cfe-commits mailing list