[PATCH] D45406: Document -std= values for different languages

Dimitry Andric via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 8 04:08:48 PDT 2018


dim updated this revision to Diff 141529.
dim added a comment.

Attempt to put the standard values in to definition lists.  In the HTML
output, this looks fairly nice, but as a man page, it seems a bit
strange, for example:

  -std=<standard>
         Specify the language standard to compile for.
  
         Supported values for the C language are:
            c89
            c90
            iso9899:1990
  
               ISO C 1990
            iso9899:199409
  
               ISO C 1990 with amendment 1
            gnu89
            gnu90
  
               ISO C 1990 with GNU extensions
            c99
            iso9899:1999
  
               ISO C 1999
            gnu99
  
               ISO C 1999 with GNU extensions
            c11
            iso9899:2011
  
               ISO C 2011
            gnu11
  
               ISO C 2011 with GNU extensions
            c17
            iso9899:2017
  
               ISO C 2017
            gnu17
  
               ISO C 2017 with GNU extensions
  
         The default C language standard is gnu11, except on PS4, where
         it is gnu99.


Repository:
  rC Clang

https://reviews.llvm.org/D45406

Files:
  docs/CommandGuide/clang.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45406.141529.patch
Type: text/x-patch
Size: 2136 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180408/ec9b8f8a/attachment.bin>


More information about the cfe-commits mailing list