]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Frontend/LangStandards.def
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / tools / clang / include / clang / Frontend / LangStandards.def
1 //===-- LangStandards.def - Language Standard Data --------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LANGSTANDARD
11 #error "LANGSTANDARD must be defined before including this file"
12 #endif
13
14 /// LANGSTANDARD(IDENT, NAME, DESC, FEATURES)
15 ///
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.
21
22 // C89-ish modes.
23 LANGSTANDARD(c89, "c89",
24              "ISO C 1990",
25              C89 | ImplicitInt)
26 LANGSTANDARD(c90, "c90",
27              "ISO C 1990",
28              C89 | ImplicitInt)
29 LANGSTANDARD(iso9899_1990, "iso9899:1990",
30              "ISO C 1990",
31              C89 | ImplicitInt)
32
33 LANGSTANDARD(c94, "iso9899:199409",
34              "ISO C 1990 with amendment 1",
35              C89 | Digraphs | ImplicitInt)
36
37 LANGSTANDARD(gnu89, "gnu89",
38              "ISO C 1990 with GNU extensions",
39              BCPLComment | C89 | Digraphs | GNUMode | ImplicitInt)
40 LANGSTANDARD(gnu90, "gnu90",
41              "ISO C 1990 with GNU extensions",
42              BCPLComment | C89 | Digraphs | GNUMode | ImplicitInt)
43
44 // C99-ish modes
45 LANGSTANDARD(c99, "c99",
46              "ISO C 1999",
47              BCPLComment | C99 | Digraphs | HexFloat)
48 LANGSTANDARD(c9x, "c9x",
49              "ISO C 1999",
50              BCPLComment | C99 | Digraphs | HexFloat)
51 LANGSTANDARD(iso9899_1999,
52              "iso9899:1999", "ISO C 1999",
53              BCPLComment | C99 | Digraphs | HexFloat)
54 LANGSTANDARD(iso9899_199x,
55              "iso9899:199x", "ISO C 1999",
56              BCPLComment | C99 | Digraphs | HexFloat)
57
58 LANGSTANDARD(gnu99, "gnu99",
59              "ISO C 1999 with GNU extensions",
60              BCPLComment | C99 | Digraphs | GNUMode | HexFloat)
61 LANGSTANDARD(gnu9x, "gnu9x",
62              "ISO C 1999 with GNU extensions",
63              BCPLComment | C99 | Digraphs | GNUMode | HexFloat)
64
65 // C1X modes
66 LANGSTANDARD(c1x, "c1x",
67              "ISO C 201X",
68              BCPLComment | C99 | C1X | Digraphs | HexFloat)
69 LANGSTANDARD(iso9899_201x,
70              "iso9899:201x", "ISO C 201X",
71              BCPLComment | C99 | C1X | Digraphs | HexFloat)
72
73 LANGSTANDARD(gnu1x, "gnu1x",
74              "ISO C 201X with GNU extensions",
75              BCPLComment | C99 | C1X | Digraphs | GNUMode | HexFloat)
76
77 // C++ modes
78 LANGSTANDARD(cxx98, "c++98",
79              "ISO C++ 1998 with amendments",
80              BCPLComment | CPlusPlus | Digraphs)
81 LANGSTANDARD(cxx03, "c++03",
82              "ISO C++ 1998 with amendments",
83              BCPLComment | CPlusPlus | Digraphs)
84 LANGSTANDARD(gnucxx98, "gnu++98",
85              "ISO C++ 1998 with amendments and GNU extensions",
86              BCPLComment | CPlusPlus | Digraphs | GNUMode)
87
88 LANGSTANDARD(cxx0x, "c++0x",
89              "ISO C++ 2011 with amendments",
90              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs)
91 LANGSTANDARD(cxx11, "c++11",
92              "ISO C++ 2011 with amendments",
93              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs)
94 LANGSTANDARD(gnucxx0x, "gnu++0x",
95              "ISO C++ 2011 with amendments and GNU extensions",
96              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
97 LANGSTANDARD(gnucxx11, "gnu++11",
98              "ISO C++ 2011 with amendments and GNU extensions",
99              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
100
101 // OpenCL
102 LANGSTANDARD(opencl, "cl",
103              "OpenCL 1.0",
104              BCPLComment | C99 | Digraphs | HexFloat)
105
106 // CUDA
107 LANGSTANDARD(cuda, "cuda",
108              "NVIDIA CUDA(tm)",
109              BCPLComment | CPlusPlus | Digraphs)
110
111 #undef LANGSTANDARD