Author: aaronballman Date: Mon Mar 12 06:09:13 2018 New Revision: 327264 URL: http://llvm.org/viewvc/llvm-project?rev=327264&view=rev Log: Update the supported C language standards in the user manual.
Remove mention of -std=c94 (it is spelled iso9899:1994, not c94) and add mention of -std=c17 and -std=gnu17. Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.rst?rev=327264&r1=327263&r2=327264&view=diff ============================================================================== --- cfe/trunk/docs/UsersManual.rst (original) +++ cfe/trunk/docs/UsersManual.rst Mon Mar 12 06:09:13 2018 @@ -1931,8 +1931,8 @@ Differences between various standard mod ------------------------------------------ clang supports the -std option, which changes what language mode clang -uses. The supported modes for C are c89, gnu89, c94, c99, gnu99, c11, -gnu11, and various aliases for those modes. If no -std option is +uses. The supported modes for C are c89, gnu89, c99, gnu99, c11, gnu11, +c17, gnu17, and various aliases for those modes. If no -std option is specified, clang defaults to gnu11 mode. Many C99 and C11 features are supported in earlier modes as a conforming extension, with a warning. Use ``-pedantic-errors`` to request an error if a feature from a later standard @@ -1979,8 +1979,9 @@ Differences between ``*99`` and ``*11`` - Warnings for use of C11 features are disabled. - ``__STDC_VERSION__`` is defined to ``201112L`` rather than ``199901L``. -c94 mode is identical to c89 mode except that digraphs are enabled in -c94 mode (FIXME: And ``__STDC_VERSION__`` should be defined!). +Differences between ``*11`` and ``*17`` modes: + +- ``__STDC_VERSION__`` is defined to ``201710L`` rather than ``201112L``. GCC extensions not implemented yet ---------------------------------- _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits