From aeb66e2405094c4e004ea786935b9408015b46bc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 May 2010 11:23:50 +0200 Subject: Use forward declarations of GCC AST where possible --- odb/gcc.hxx | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'odb/gcc.hxx') diff --git a/odb/gcc.hxx b/odb/gcc.hxx index 9d1e3bc..feca3ee 100644 --- a/odb/gcc.hxx +++ b/odb/gcc.hxx @@ -3,11 +3,13 @@ // copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file -#ifndef ODB_GCC_TREE_HXX -#define ODB_GCC_TREE_HXX +#ifndef ODB_GCC_HXX +#define ODB_GCC_HXX -// GCC header includes to get the parse tree declarations. The order -// is important and doesn't follow any kind of logic. +#include + +// GCC header includes to get the plugin and parse tree declarations. +// The order is important and doesn't follow any kind of logic. // #include @@ -17,20 +19,20 @@ extern "C" { -#include "gcc-plugin.h" +#include -#include "config.h" -#include "system.h" -#include "coretypes.h" -#include "tree.h" -#include "intl.h" +#include +#include +#include +#include +#include -#include "tm.h" +#include -#include "diagnostic.h" -#include "c-common.h" -#include "c-pragma.h" -#include "cp/cp-tree.h" +#include +#include +#include +#include } #ifndef LOCATION_COLUMN @@ -41,4 +43,4 @@ extern "C" #define DECL_SOURCE_COLUMN(NODE) LOCATION_COLUMN (DECL_SOURCE_LOCATION (NODE)) #endif -#endif // ODB_GCC_TREE_HXX +#endif // ODB_GCC_HXX -- cgit v1.1