]> granicus.if.org Git - clang/commit
Add new language mode flags for C17.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 7 Dec 2017 21:46:26 +0000 (21:46 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 7 Dec 2017 21:46:26 +0000 (21:46 +0000)
commitaca1787e1a0439a2b3512befd6c95fd11cd01f03
tree8c74b6a6a2d53f9e3aad0d98a4d7d5e30c5d0767
parent950a2da1586c9cc467a47db9bfe6e7d7dbe8bc1c
Add new language mode flags for C17.

This adds -std=c17, -std=gnu17, and -std=iso9899:2017 as language mode flags for C17 and updates the value of __STDC_VERSION__ to the value based on the C17 FDIS. Given that this ballot cannot succeed until 2018, it is expected that we (and GCC) will add c18 flags as aliases once the ballot passes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320089 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
include/clang/Basic/LangOptions.def
include/clang/Frontend/LangStandard.h
include/clang/Frontend/LangStandards.def
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
test/Driver/unknown-std.c