/************************************************************************ * * CppSharp * Licensed under the MIT license. * ************************************************************************/ #include "CppParser.h" #include "Parser.h" namespace CppSharp { namespace CppParser { CppParserOptions::CppParserOptions() : ASTContext(0) , toolSetToUse(0) , abi(CppAbi::Itanium) , noStandardIncludes(false) , noBuiltinIncludes(false) , microsoftMode(false) , verbose(false) , unityBuild(false) , skipPrivateDeclarations(true) , skipLayoutInfo(false) { } CppParserOptions::~CppParserOptions() {} DEF_VECTOR_STRING(CppParserOptions, Arguments) DEF_VECTOR_STRING(CppParserOptions, SourceFiles) DEF_VECTOR_STRING(CppParserOptions, IncludeDirs) DEF_VECTOR_STRING(CppParserOptions, SystemIncludeDirs) DEF_VECTOR_STRING(CppParserOptions, Defines) DEF_VECTOR_STRING(CppParserOptions, Undefines) DEF_VECTOR_STRING(CppParserOptions, LibraryDirs) DEF_VECTOR_STRING(CppParserOptions, SupportedStdTypes) ParserResult::ParserResult() : library(0) , targetInfo(0) , codeParser(0) { } ParserResult::ParserResult(const ParserResult& rhs) : kind(rhs.kind) , Diagnostics(rhs.Diagnostics) , library(rhs.library) , targetInfo(rhs.targetInfo) , codeParser(rhs.codeParser) {} ParserResult::~ParserResult() { if (codeParser) delete codeParser; if (library) delete library; } ParserDiagnostic::ParserDiagnostic() {} ParserDiagnostic::ParserDiagnostic(const ParserDiagnostic& rhs) : fileName(rhs.fileName) , message(rhs.message) , level(rhs.level) , lineNumber(rhs.lineNumber) , columnNumber(rhs.columnNumber) {} DEF_VECTOR(ParserResult, ParserDiagnostic, Diagnostics) } }