names.hh 1.8 KB

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