]> granicus.if.org Git - clang/commitdiff
Document __has_feature(modules) in LanguageExtensions
authorBen Langmuir <blangmuir@apple.com>
Tue, 10 Mar 2015 14:39:26 +0000 (14:39 +0000)
committerBen Langmuir <blangmuir@apple.com>
Tue, 10 Mar 2015 14:39:26 +0000 (14:39 +0000)
Fixes PR18985

Patch by Vassil Vassilev!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231789 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.rst

index 035b50d10824742f94f0794b5b93eff8160ca9a0..bd5992e3d6e505effa652bb7f047d20bd878649c 100644 (file)
@@ -935,6 +935,14 @@ C11 ``_Thread_local``
 Use ``__has_feature(c_thread_local)`` or ``__has_extension(c_thread_local)``
 to determine if support for ``_Thread_local`` variables is enabled.
 
+Modules
+-------
+
+Use ``__has_feature(modules)`` to determine if Modules have been enabled.
+For example, compiling code with ``-fmodules`` enables the use of Modules.
+
+More information could be found `here <http://clang.llvm.org/docs/Modules.html>`_.
+
 Checks for Type Trait Primitives
 ================================