Enable all processing steps by default

This enables completion, simplification, and integer variable detection
by default, because these options are be used more often than not.

The change log is updated according to this change.
This commit is contained in:
Patrick Lühne 2018-05-04 15:59:14 +02:00
parent 1570432ee0
commit c199f609bd
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 12 additions and 8 deletions

View File

@ -2,10 +2,14 @@
## (unreleased) ## (unreleased)
### Changes
* turns on completion and simplification by default, which can now be switched off with `--no-complete` and `--no-simplify`
### Features ### Features
* optional detection of integer variables and integer predicate parameters * detection of integer variables and integer predicate parameters
* command-line option `--detect-integers` to enable integer variable detection * command-line option `--no-detect-integers` to disable integer variable detection
* new simplification rule applying to integer variables * new simplification rule applying to integer variables
* support for declaring functions integer with the `#external` directive * support for declaring functions integer with the `#external` directive

View File

@ -16,9 +16,9 @@ int main(int argc, char **argv)
("h,help", "Display this help message") ("h,help", "Display this help message")
("v,version", "Display version information") ("v,version", "Display version information")
("i,input", "Input files", cxxopts::value<std::vector<std::string>>()) ("i,input", "Input files", cxxopts::value<std::vector<std::string>>())
("s,simplify", "Simplify the output") ("no-simplify", "Do not simplify the output")
("c,complete", "Perform completion") ("no-complete", "Do not perform completion")
("d,detect-integers", "Detect integer variables") ("no-detect-integers", "Do not detect integer variables")
("color", "Colorize output (always, never, auto)", cxxopts::value<std::string>()->default_value("auto")) ("color", "Colorize output (always, never, auto)", cxxopts::value<std::string>()->default_value("auto"))
("parentheses", "Parenthesis style (normal, full)", cxxopts::value<std::string>()->default_value("normal")) ("parentheses", "Parenthesis style (normal, full)", cxxopts::value<std::string>()->default_value("normal"))
("p,log-priority", "Log messages starting from this priority (debug, info, warning, error)", cxxopts::value<std::string>()->default_value("info")); ("p,log-priority", "Log messages starting from this priority (debug, info, warning, error)", cxxopts::value<std::string>()->default_value("info"));
@ -49,9 +49,9 @@ int main(int argc, char **argv)
if (parseResult.count("input") > 0) if (parseResult.count("input") > 0)
inputFiles = parseResult["input"].as<std::vector<std::string>>(); inputFiles = parseResult["input"].as<std::vector<std::string>>();
context.performSimplification = (parseResult.count("simplify") > 0); context.performSimplification = (parseResult.count("no-simplify") == 0);
context.performCompletion = (parseResult.count("complete") > 0); context.performCompletion = (parseResult.count("no-complete") == 0);
context.performIntegerDetection = (parseResult.count("detect-integers") > 0); context.performIntegerDetection = (parseResult.count("no-detect-integers") == 0);
colorPolicyString = parseResult["color"].as<std::string>(); colorPolicyString = parseResult["color"].as<std::string>();
parenthesisStyleString = parseResult["parentheses"].as<std::string>(); parenthesisStyleString = parseResult["parentheses"].as<std::string>();
logPriorityString = parseResult["log-priority"].as<std::string>(); logPriorityString = parseResult["log-priority"].as<std::string>();