diff options
author | Brad King <brad.king@kitware.com> | 2014-01-07 15:47:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-14 20:48:42 (GMT) |
commit | 16cc24ee9f6a7f66763bea4a3cd4d0cf0e1e884f (patch) | |
tree | 72e6e88b4ddf77e6167fd23060b58d2f3abccd0c /src/Options.h | |
parent | 03eacff41565f7fa51169c784f93b6e67763c620 (diff) | |
download | CastXML-16cc24ee9f6a7f66763bea4a3cd4d0cf0e1e884f.zip CastXML-16cc24ee9f6a7f66763bea4a3cd4d0cf0e1e884f.tar.gz CastXML-16cc24ee9f6a7f66763bea4a3cd4d0cf0e1e884f.tar.bz2 |
Add initial command-line parsing
Use "--castxml-" prefix on all CastXML options to distinguish them from
options to Clang. Create an "Options" struct to hold settings to be
passed to the implementation later. Add a "--castxml-gccxml" option to
enable xml output in a gccxml-compatible format.
Diffstat (limited to 'src/Options.h')
-rw-r--r-- | src/Options.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Options.h b/src/Options.h new file mode 100644 index 0000000..95311d3 --- /dev/null +++ b/src/Options.h @@ -0,0 +1,25 @@ +/* + Copyright Kitware, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +#ifndef CASTXML_OPTIONS_H +#define CASTXML_OPTIONS_H + +struct Options +{ + Options(): GccXml(false) {} + bool GccXml; +}; + +#endif // CASTXML_OPTIONS_H |