Dan Rubel
55ef6e193c
support --options flag and other analysis options flags in DDC
...
This updates DDC options processing to support:
* --options /path/to/analysis/options/file.yaml
* --enable-strict-call-checks
* --supermixin
* --no-implicit-casts
* --no-implicit-dynamic
As well as general refactoring and cleanup of DDC options processing
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2598593003 .
2017-01-04 18:15:21 -05:00
Dan Rubel
0863ac0b2c
cmdline flags override analysis options in file
...
Update command line arguments processing so that any analysis options
flags specified on the command line (e.g. --supermixin) take precedence
over corresponding flags in the analysis_options.yaml file.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2598523003 .
2016-12-22 20:36:01 -05:00
Dan Rubel
13bd1ad0bf
DDC/AnalyzerCLI common cmdline option processing
...
Refactor DDC and Analyzer CLI command line option processing
to use common createContextBuilderOptions method
and ContextBuilderOptions to hold common options.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2584293003 .
2016-12-19 16:24:20 -05:00
danrubel
a105d89e2b
refactor DDC and Analyzer CLI parser option declaration
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2580933002 .
2016-12-15 14:10:09 -05:00
danrubel
e321439470
cleanup Analyzer CLI and DDC arg parsing
...
This removes the need to split arguments on '='
before calling the extractDefinedVariables method.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2581723002 .
2016-12-15 12:16:20 -05:00
danrubel
5b84611856
refactor DDC to support --ignore-unrecognized-flags
...
* add --ignore-unrecognized-flags to DDC
* refactor Analyzer CLI to use same filterUnknownArguments functionality
* remove now unused CommandLineParser and associated tests
R=brianwilkerson@google.com , vsm@google.com
Review-Url: https://codereview.chromium.org/2578113002 .
2016-12-15 10:46:09 -05:00
danrubel
2c62510f5f
move CommandLineParser into analyzer for reuse by DDC
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2578733002 .
2016-12-14 16:31:45 -05:00
danrubel
1417eec66e
move extractDefinedVariables from analyzer cli to analyzer
...
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2571583007 .
2016-12-14 13:22:41 -05:00
Dan Rubel
5aa30397d7
update DDC and analyzer cli preprocessArgs
...
* refactor Analyzer CLI and DDC to use common preprocessArgs method
* throw clear exception if trailing @file not found or cannot be read
* update preprocessArgs method to always return new list
R=brianwilkerson@google.com , vsm@google.com
Review-Url: https://codereview.chromium.org/2572813002 .
2016-12-13 14:37:22 -05:00
Brian Wilkerson
7e067a6fc8
Enable read-only access to initializing formals (issue 27895)
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2532953004 .
2016-11-29 07:46:28 -08:00
Brian Wilkerson
b719474fd9
Intial support for unifying command-line handling
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org/2441053003 .
2016-10-21 13:16:25 -07:00