diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-27 23:02:57 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-27 23:02:57 +0000 |
commit | 26fa0edd63c0f34953ba22f519d0fa68ee572341 (patch) | |
tree | 979a7d5a0b99dab54900912f7374083846f82f13 /docs | |
parent | 2073fd555f714e9632d70e9c5a88d140930aeadb (diff) |
A few tweaks to the "Differences between various standard modes"
section.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/UsersManual.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/UsersManual.html b/docs/UsersManual.html index f2658e9816..5d8b0fd43f 100644 --- a/docs/UsersManual.html +++ b/docs/UsersManual.html @@ -504,8 +504,8 @@ for those modes. If no -std option is specified, clang defaults to gnu99 mode. <p>Differences between all c* and gnu* modes:</p> <ul> <li>c* modes define "__STRICT_ANSI__".</li> -<li>Target-specific defines not prefixed by underscores, like "linux", are defined -in gnu* modes.</li> +<li>Target-specific defines not prefixed by underscores, like "linux", are +defined in gnu* modes.</li> <li>Trigraphs default to being off in gnu* modes; they can be enabled by the -trigraphs option.</li> <li>The parser recognizes "asm" and "typeof" as keywords in gnu* modes; the @@ -521,11 +521,12 @@ option.</li> <li>The *99 modes default to implementing "inline" as specified in C99, while the *89 modes implement the GNU version. This can be overridden for individual functions with the __gnu_inline__ attribute.</li> -<li>Digraphs are enabled in the *99 modes.</li> +<li>Digraphs are not recognized in c89 mode.</li> <li>The scope of names defined inside a "for", "if", "switch", "while", or "do" statement is different. (example: "if ((struct x {int x;}*)0) {}".)</li> <li>__STDC_VERSION__ is not defined in *89 modes.</li> -<li>"inline" and "restrict" are not recognized as keywords in c89 mode.</li> +<li>"inline" is not recognized as a keyword in c89 mode.</li> +<li>"restrict" is not recognized as a keyword in *89 modes.</li> <li>Commas are allowed in integer constant expressions in *99 modes.</li> <li>Arrays which are not lvalues are not implicitly promoted to pointers in *89 modes.</li> |