names.cc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* String definitions.
  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. #include <cc1plugin-config.h>
  16. #include "names.hh"
  17. #define GCC_METHOD0(R, N) \
  18. const char *cc1_plugin::LANG::N = # N;
  19. #define GCC_METHOD1(R, N, A) \
  20. const char *cc1_plugin::LANG::N = # N;
  21. #define GCC_METHOD2(R, N, A, B) \
  22. const char *cc1_plugin::LANG::N = # N;
  23. #define GCC_METHOD3(R, N, A, B, C) \
  24. const char *cc1_plugin::LANG::N = # N;
  25. #define GCC_METHOD4(R, N, A, B, C, D) \
  26. const char *cc1_plugin::LANG::N = # N;
  27. #define GCC_METHOD5(R, N, A, B, C, D, E) \
  28. const char *cc1_plugin::LANG::N = # N;
  29. #define GCC_METHOD7(R, N, A, B, C, D, E, F, G) \
  30. const char *cc1_plugin::LANG::N = # N;
  31. #define LANG c
  32. #include "gcc-c-fe.def"
  33. #undef LANG
  34. #define LANG cp
  35. #include "gcc-cp-fe.def"
  36. #undef LANG
  37. #undef GCC_METHOD0
  38. #undef GCC_METHOD1
  39. #undef GCC_METHOD2
  40. #undef GCC_METHOD3
  41. #undef GCC_METHOD4
  42. #undef GCC_METHOD5
  43. #undef GCC_METHOD7