parent
2004780ea6
commit
61a2a22542
4 changed files with 35 additions and 4 deletions
|
|
@ -210,7 +210,8 @@ int main(int argc, char* argv[]) try
|
|||
("gnu_extensions", "enable GNU extensions (equivalent to -std=gnu++XX)")
|
||||
("msvc_extensions", "enable MSVC extensions (equivalent to -fms-extensions)")
|
||||
("msvc_compatibility", "enable MSVC compatibility (equivalent to -fms-compatibility)")
|
||||
("fast_preprocessing", "enable fast preprocessing, be careful, this breaks if you e.g. redefine macros in the same file!");
|
||||
("fast_preprocessing", "enable fast preprocessing, be careful, this breaks if you e.g. redefine macros in the same file!")
|
||||
("remove_comments_in_macro", "whether or not comments generated by macro are kept, enable if you run into errors");
|
||||
// clang-format on
|
||||
options.parse_positional("file");
|
||||
options.parse(argc, argv);
|
||||
|
|
@ -252,6 +253,9 @@ int main(int argc, char* argv[]) try
|
|||
if (options.count("fast_preprocessing"))
|
||||
config.fast_preprocessing(true);
|
||||
|
||||
if (options.count("remove_comments_in_macro"))
|
||||
config.remove_comments_in_macro(true);
|
||||
|
||||
if (options.count("include_directory"))
|
||||
for (auto& include : options["include_directory"].as<std::vector<std::string>>())
|
||||
config.add_include_dir(include);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue