Home | History | Annotate | Line # | Download | only in libcc1
      1 /* String declarations.
      2    Copyright (C) 2014-2024 Free Software Foundation, Inc.
      3 
      4 This file is part of GCC.
      5 
      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.
     10 
     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.
     15 
     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/>.  */
     19 
     20 #ifndef CC1_PLUGIN_NAMES_HH
     21 #define CC1_PLUGIN_NAMES_HH
     22 
     23 namespace cc1_plugin
     24 {
     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;
     39 
     40   namespace c
     41   {
     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"
     46   }
     47 
     48   namespace cp
     49   {
     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"
     54   }
     55 
     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
     63 };
     64 
     65 #endif // CC1_PLUGIN_NAMES_HH
     66