2017-12-01 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / libcc1 / names.hh
blobd358e697c7edf390d01007c89835ad7e4177260d
1 /* String declarations.
2 Copyright (C) 2014-2017 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
9 version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef CC1_PLUGIN_NAMES_HH
21 #define CC1_PLUGIN_NAMES_HH
23 namespace cc1_plugin
25 #define GCC_METHOD0(R, N) \
26 extern const char *N;
27 #define GCC_METHOD1(R, N, A) \
28 extern const char *N;
29 #define GCC_METHOD2(R, N, A, B) \
30 extern const char *N;
31 #define GCC_METHOD3(R, N, A, B, C) \
32 extern const char *N;
33 #define GCC_METHOD4(R, N, A, B, C, D) \
34 extern const char *N;
35 #define GCC_METHOD5(R, N, A, B, C, D, E) \
36 extern const char *N;
37 #define GCC_METHOD7(R, N, A, B, C, D, E, F, G) \
38 extern const char *N;
40 namespace c
42 // This code defines global string constants, one for each method in
43 // gcc-c-fe.def. This is needed so that they can be used as
44 // template arguments elsewhere.
45 #include "gcc-c-fe.def"
48 namespace cp
50 // This code defines global string constants, one for each method in
51 // gcc-cp-fe.def. This is needed so that they can be used as
52 // template arguments elsewhere.
53 #include "gcc-cp-fe.def"
56 #undef GCC_METHOD0
57 #undef GCC_METHOD1
58 #undef GCC_METHOD2
59 #undef GCC_METHOD3
60 #undef GCC_METHOD4
61 #undef GCC_METHOD5
62 #undef GCC_METHOD7
65 #endif // CC1_PLUGIN_NAMES_HH