Tools and libraries to glue C/C++ APIs to high-level languages
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.
 
 
 
 
 

62 lines
1.4 KiB

/************************************************************************
*
* CppSharp
* Licensed under the MIT license.
*
************************************************************************/
#include "CppParser.h"
namespace CppSharp { namespace CppParser {
ParserOptions::ParserOptions()
: ASTContext(0)
, ToolSetToUse(0)
, Abi(CppAbi::Itanium)
, NoStandardIncludes(false)
, NoBuiltinIncludes(false)
, MicrosoftMode(false)
, Verbose(false)
{
}
DEF_VECTOR_STRING(ParserOptions, Arguments)
DEF_STRING(ParserOptions, FileName)
DEF_VECTOR_STRING(ParserOptions, IncludeDirs)
DEF_VECTOR_STRING(ParserOptions, SystemIncludeDirs)
DEF_VECTOR_STRING(ParserOptions, Defines)
DEF_VECTOR_STRING(ParserOptions, LibraryDirs)
DEF_STRING(ParserOptions, TargetTriple)
DEF_STRING(ParserTargetInfo, ABI)
ParserResult::ParserResult()
: ASTContext(0)
, Library(0)
{
}
ParserResult::ParserResult(const ParserResult& rhs)
: Kind(rhs.Kind)
, Diagnostics(rhs.Diagnostics)
, ASTContext(rhs.ASTContext)
, Library(rhs.Library)
{}
ParserDiagnostic::ParserDiagnostic() {}
ParserDiagnostic::ParserDiagnostic(const ParserDiagnostic& rhs)
: FileName(rhs.FileName)
, Message(rhs.Message)
, Level(rhs.Level)
, LineNumber(rhs.LineNumber)
, ColumnNumber(rhs.ColumnNumber)
{}
DEF_STRING(ParserDiagnostic, FileName)
DEF_STRING(ParserDiagnostic, Message)
DEF_VECTOR(ParserResult, ParserDiagnostic, Diagnostics)
} }