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