Browse Source

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

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

1
src/Parser/Comments.cpp

@ -9,6 +9,7 @@
#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,6 +8,8 @@
#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:

4
src/Parser/Options.h

@ -9,6 +9,8 @@
#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()
@ -89,3 +91,5 @@ enum class SourceLocationKind
System, System,
User User
}; };
} }

2
src/Parser/Parser.cpp

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