Browse Source

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

pull/72/merge
triton 12 years ago
parent
commit
6297ec532e
  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,6 +9,7 @@ @@ -9,6 +9,7 @@
#include "Interop.h"
#include <clang/AST/ASTContext.h>
using namespace CppSharp::Parser;
//-----------------------------------//

2
src/Parser/Main.cpp

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

6
src/Parser/Options.h

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

2
src/Parser/Parser.cpp

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

4
src/Parser/Parser.h

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