aboutsummaryrefslogtreecommitdiff
path: root/libcc1/names.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libcc1/names.hh')
-rw-r--r--libcc1/names.hh18
1 files changed, 14 insertions, 4 deletions
diff --git a/libcc1/names.hh b/libcc1/names.hh
index 79069c3..d358e69 100644
--- a/libcc1/names.hh
+++ b/libcc1/names.hh
@@ -22,10 +22,6 @@ along with GCC; see the file COPYING3. If not see
namespace cc1_plugin
{
- // This code defines global string constants, one for each method in
- // gcc-c-fe.def. This is needed so that they can be used as
- // template arguments elsewhere.
-
#define GCC_METHOD0(R, N) \
extern const char *N;
#define GCC_METHOD1(R, N, A) \
@@ -41,7 +37,21 @@ namespace cc1_plugin
#define GCC_METHOD7(R, N, A, B, C, D, E, F, G) \
extern const char *N;
+ namespace c
+ {
+ // This code defines global string constants, one for each method in
+ // gcc-c-fe.def. This is needed so that they can be used as
+ // template arguments elsewhere.
#include "gcc-c-fe.def"
+ }
+
+ namespace cp
+ {
+ // This code defines global string constants, one for each method in
+ // gcc-cp-fe.def. This is needed so that they can be used as
+ // template arguments elsewhere.
+#include "gcc-cp-fe.def"
+ }
#undef GCC_METHOD0
#undef GCC_METHOD1