summaryrefslogtreecommitdiffstats
path: root/src/Options.h
diff options
context:
space:
mode:
authorMichka Popoff <michkapopoff@gmail.com>2016-11-18 23:00:41 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-09 16:35:51 (GMT)
commit5e13767fcccee40991f7a31af71a877cc5163957 (patch)
treeb7d557175631a3718dc85cb8b43b5947dc08383c /src/Options.h
parent242cc739acd637bd713e05557fd6dadb7eefc5d5 (diff)
downloadCastXML-5e13767fcccee40991f7a31af71a877cc5163957.zip
CastXML-5e13767fcccee40991f7a31af71a877cc5163957.tar.gz
CastXML-5e13767fcccee40991f7a31af71a877cc5163957.tar.bz2
castxml: Add flag --castxml-output=<v> to activate a new output format
This will allow us to move the format forward away from gccxml compatibility in order to add information about new C++ structures. The new format will work with all C and C++ language modes but still not for Objective C/C++. Retain the `--castxml-gccxml` flag to produce XML files as similar as possible as the ones produced by gccxml, but do not allow both formats to be specified at the same time. For now use the same output for both formats except for the name of the root element. Later the new format can be adapted to add new features.
Diffstat (limited to 'src/Options.h')
-rw-r--r--src/Options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Options.h b/src/Options.h
index ab7f7ef..0c7ffd9 100644
--- a/src/Options.h
+++ b/src/Options.h
@@ -25,16 +25,20 @@ struct Options
Options()
: PPOnly(false)
, GccXml(false)
+ , CastXml(false)
, HaveCC(false)
, HaveStd(false)
, HaveTarget(false)
+ , CastXmlEpicFormatVersion(1)
{
}
bool PPOnly;
bool GccXml;
+ bool CastXml;
bool HaveCC;
bool HaveStd;
bool HaveTarget;
+ unsigned int CastXmlEpicFormatVersion;
struct Include
{
Include(std::string const& d, bool f = false)