1 //===-- LangStandards.def - Language Standard Data --------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #error "LANGSTANDARD must be defined before including this file"
14 /// LANGSTANDARD(IDENT, NAME, DESC, FEATURES)
16 /// \param IDENT - The name of the standard as a C++ identifier.
17 /// \param NAME - The name of the standard.
18 /// \param DESC - A short description of the standard.
19 /// \param FEATURES - The standard features as flags, these are enums from the
20 /// clang::frontend namespace, which is assumed to be be available.
23 LANGSTANDARD(c89, "c89",
26 LANGSTANDARD(c90, "c90",
29 LANGSTANDARD(iso9899_1990, "iso9899:1990",
33 LANGSTANDARD(c94, "iso9899:199409",
34 "ISO C 1990 with amendment 1",
35 C89 | Digraphs | ImplicitInt)
37 LANGSTANDARD(gnu89, "gnu89",
38 "ISO C 1990 with GNU extensions",
39 LineComment | C89 | Digraphs | GNUMode | ImplicitInt)
40 LANGSTANDARD(gnu90, "gnu90",
41 "ISO C 1990 with GNU extensions",
42 LineComment | C89 | Digraphs | GNUMode | ImplicitInt)
45 LANGSTANDARD(c99, "c99",
47 LineComment | C99 | Digraphs | HexFloat)
48 LANGSTANDARD(c9x, "c9x",
50 LineComment | C99 | Digraphs | HexFloat)
51 LANGSTANDARD(iso9899_1999,
52 "iso9899:1999", "ISO C 1999",
53 LineComment | C99 | Digraphs | HexFloat)
54 LANGSTANDARD(iso9899_199x,
55 "iso9899:199x", "ISO C 1999",
56 LineComment | C99 | Digraphs | HexFloat)
58 LANGSTANDARD(gnu99, "gnu99",
59 "ISO C 1999 with GNU extensions",
60 LineComment | C99 | Digraphs | GNUMode | HexFloat)
61 LANGSTANDARD(gnu9x, "gnu9x",
62 "ISO C 1999 with GNU extensions",
63 LineComment | C99 | Digraphs | GNUMode | HexFloat)
66 LANGSTANDARD(c11, "c11",
68 LineComment | C99 | C11 | Digraphs | HexFloat)
69 LANGSTANDARD(c1x, "c1x",
71 LineComment | C99 | C11 | Digraphs | HexFloat)
72 LANGSTANDARD(iso9899_2011,
73 "iso9899:2011", "ISO C 2011",
74 LineComment | C99 | C11 | Digraphs | HexFloat)
75 LANGSTANDARD(iso9899_201x,
76 "iso9899:2011", "ISO C 2011",
77 LineComment | C99 | C11 | Digraphs | HexFloat)
79 LANGSTANDARD(gnu11, "gnu11",
80 "ISO C 2011 with GNU extensions",
81 LineComment | C99 | C11 | Digraphs | GNUMode | HexFloat)
82 LANGSTANDARD(gnu1x, "gnu1x",
83 "ISO C 2011 with GNU extensions",
84 LineComment | C99 | C11 | Digraphs | GNUMode | HexFloat)
87 LANGSTANDARD(cxx98, "c++98",
88 "ISO C++ 1998 with amendments",
89 LineComment | CPlusPlus | Digraphs)
90 LANGSTANDARD(cxx03, "c++03",
91 "ISO C++ 1998 with amendments",
92 LineComment | CPlusPlus | Digraphs)
93 LANGSTANDARD(gnucxx98, "gnu++98",
94 "ISO C++ 1998 with amendments and GNU extensions",
95 LineComment | CPlusPlus | Digraphs | GNUMode)
97 LANGSTANDARD(cxx0x, "c++0x",
98 "ISO C++ 2011 with amendments",
99 LineComment | CPlusPlus | CPlusPlus11 | Digraphs)
100 LANGSTANDARD(cxx11, "c++11",
101 "ISO C++ 2011 with amendments",
102 LineComment | CPlusPlus | CPlusPlus11 | Digraphs)
103 LANGSTANDARD(gnucxx0x, "gnu++0x",
104 "ISO C++ 2011 with amendments and GNU extensions",
105 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode)
106 LANGSTANDARD(gnucxx11, "gnu++11",
107 "ISO C++ 2011 with amendments and GNU extensions",
108 LineComment | CPlusPlus | CPlusPlus11 | Digraphs | GNUMode)
110 LANGSTANDARD(cxx1y, "c++1y",
111 "Working draft for ISO C++ 2014",
112 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus1y | Digraphs)
113 LANGSTANDARD(gnucxx1y, "gnu++1y",
114 "Working draft for ISO C++ 2014 with GNU extensions",
115 LineComment | CPlusPlus | CPlusPlus11 | CPlusPlus1y | Digraphs |
119 LANGSTANDARD(opencl, "cl",
121 LineComment | C99 | Digraphs | HexFloat)
122 LANGSTANDARD(opencl11, "CL1.1",
124 LineComment | C99 | Digraphs | HexFloat)
125 LANGSTANDARD(opencl12, "CL1.2",
127 LineComment | C99 | Digraphs | HexFloat)
130 LANGSTANDARD(cuda, "cuda",
132 LineComment | CPlusPlus | Digraphs)