Browse Source

Revert "Move all the code in the old parser to the CppSharp::Parser namespace."

This reverts commit 6297ec532e.
pull/72/merge
triton 12 years ago
parent
commit
ca5d1ed280
  1. 1
      src/Parser/Comments.cpp
  2. 2
      src/Parser/Main.cpp
  3. 6
      src/Parser/Options.h
  4. 2
      src/Parser/Parser.cpp
  5. 4
      src/Parser/Parser.h

1
src/Parser/Comments.cpp

@ -9,7 +9,6 @@
#include "Interop.h" #include "Interop.h"
#include <clang/AST/ASTContext.h> #include <clang/AST/ASTContext.h>
using namespace CppSharp::Parser;
//-----------------------------------// //-----------------------------------//

2
src/Parser/Main.cpp

@ -8,8 +8,6 @@
#include "Parser.h" #include "Parser.h"
#include "Interop.h" #include "Interop.h"
using namespace CppSharp::Parser;
public ref class ClangParser public ref class ClangParser
{ {
public: public:

6
src/Parser/Options.h

@ -9,8 +9,6 @@
#include <vcclr.h> #include <vcclr.h>
using namespace System::Collections::Generic; using namespace System::Collections::Generic;
namespace CppSharp { namespace Parser {
public ref struct ParserOptions public ref struct ParserOptions
{ {
ParserOptions() ParserOptions()
@ -90,6 +88,4 @@ enum class SourceLocationKind
CommandLine, CommandLine,
System, System,
User User
}; };
} }

2
src/Parser/Parser.cpp

@ -31,8 +31,6 @@
#include <CodeGen/TargetInfo.h> #include <CodeGen/TargetInfo.h>
#include <CodeGen/CGCall.h> #include <CodeGen/CGCall.h>
using namespace CppSharp::Parser;
//-----------------------------------// //-----------------------------------//
Parser::Parser(ParserOptions^ Opts) : Lib(Opts->Library), Opts(Opts), Index(0) Parser::Parser(ParserOptions^ Opts) : Lib(Opts->Library), Opts(Opts), Index(0)

4
src/Parser/Parser.h

@ -38,8 +38,6 @@ namespace clang {
#define Debug printf #define Debug printf
namespace CppSharp { namespace Parser {
struct Parser struct Parser
{ {
Parser(ParserOptions^ Opts); Parser(ParserOptions^ Opts);
@ -108,5 +106,3 @@ protected:
clang::TargetCodeGenInfo* CodeGenInfo; clang::TargetCodeGenInfo* CodeGenInfo;
clang::CodeGen::CodeGenTypes* CodeGenTypes; clang::CodeGen::CodeGenTypes* CodeGenTypes;
}; };
} }
Loading…
Cancel
Save