From 1ba6078ccaf19db72e2c8e58e5a0ea41e027b815 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 12 Mar 2018 13:09:13 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327264 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/UsersManual.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index f19aacc4e9..1e46ebe03f 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -1931,8 +1931,8 @@ Differences between various standard modes ------------------------------------------ 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`` modes: - 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 ---------------------------------- -- 2.50.1