mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
564 B
25 lines
564 B
/************************************************************************ |
|
* |
|
* Cxxi |
|
* Licensed under the simplified BSD license. All rights reserved. |
|
* |
|
************************************************************************/ |
|
|
|
#include "Parser.h" |
|
#include "Interop.h" |
|
|
|
public ref class ClangParser |
|
{ |
|
public: |
|
|
|
static bool Parse(ParserOptions^ Opts) |
|
{ |
|
if (!Opts->FileName) return false; |
|
|
|
using namespace clix; |
|
std::string File = marshalString<E_UTF8>(Opts->FileName); |
|
|
|
Parser p(Opts); |
|
return p.Parse(File); |
|
} |
|
}; |