mirror of https://github.com/mono/CppSharp.git
2 changed files with 95 additions and 97 deletions
@ -0,0 +1,91 @@ |
|||||||
|
/************************************************************************
|
||||||
|
* |
||||||
|
* CppSharp |
||||||
|
* Licensed under the simplified BSD license. All rights reserved. |
||||||
|
* |
||||||
|
************************************************************************/ |
||||||
|
|
||||||
|
#using <CppSharp.AST.dll> |
||||||
|
#include <vcclr.h> |
||||||
|
using namespace System::Collections::Generic; |
||||||
|
|
||||||
|
public ref struct ParserOptions |
||||||
|
{ |
||||||
|
ParserOptions() |
||||||
|
{ |
||||||
|
IncludeDirs = gcnew List<System::String^>(); |
||||||
|
SystemIncludeDirs = gcnew List<System::String^>(); |
||||||
|
Defines = gcnew List<System::String^>(); |
||||||
|
LibraryDirs = gcnew List<System::String^>(); |
||||||
|
MicrosoftMode = false; |
||||||
|
NoStandardIncludes = false; |
||||||
|
NoBuiltinIncludes = false; |
||||||
|
} |
||||||
|
|
||||||
|
// Include directories
|
||||||
|
List<System::String^>^ IncludeDirs; |
||||||
|
List<System::String^>^ SystemIncludeDirs; |
||||||
|
List<System::String^>^ Defines; |
||||||
|
List<System::String^>^ LibraryDirs; |
||||||
|
|
||||||
|
// C/C++ header file name.
|
||||||
|
System::String^ FileName; |
||||||
|
|
||||||
|
CppSharp::AST::Library^ Library; |
||||||
|
|
||||||
|
int ToolSetToUse; |
||||||
|
System::String^ TargetTriple; |
||||||
|
|
||||||
|
bool NoStandardIncludes; |
||||||
|
bool NoBuiltinIncludes; |
||||||
|
bool MicrosoftMode; |
||||||
|
CppSharp::AST::CppAbi Abi; |
||||||
|
|
||||||
|
bool Verbose; |
||||||
|
}; |
||||||
|
|
||||||
|
public enum struct ParserDiagnosticLevel |
||||||
|
{ |
||||||
|
Ignored, |
||||||
|
Note, |
||||||
|
Warning, |
||||||
|
Error, |
||||||
|
Fatal |
||||||
|
}; |
||||||
|
|
||||||
|
public value struct ParserDiagnostic |
||||||
|
{ |
||||||
|
System::String^ FileName; |
||||||
|
System::String^ Message; |
||||||
|
ParserDiagnosticLevel Level; |
||||||
|
int LineNumber; |
||||||
|
int ColumnNumber; |
||||||
|
}; |
||||||
|
|
||||||
|
public enum struct ParserResultKind |
||||||
|
{ |
||||||
|
Success, |
||||||
|
Error, |
||||||
|
FileNotFound |
||||||
|
}; |
||||||
|
|
||||||
|
public ref struct ParserResult |
||||||
|
{ |
||||||
|
ParserResult() |
||||||
|
{ |
||||||
|
Diagnostics = gcnew List<ParserDiagnostic>(); |
||||||
|
} |
||||||
|
|
||||||
|
ParserResultKind Kind; |
||||||
|
CppSharp::AST::Library^ Library; |
||||||
|
List<ParserDiagnostic>^ Diagnostics; |
||||||
|
}; |
||||||
|
|
||||||
|
enum class SourceLocationKind |
||||||
|
{ |
||||||
|
Invalid, |
||||||
|
Builtin, |
||||||
|
CommandLine, |
||||||
|
System, |
||||||
|
User |
||||||
|
}; |
Loading…
Reference in new issue