Kurtis Rader
47f1a92cc4
fixes for cppcheck lint warnings
...
Refine the linting behavior.
Fix several of the, mostly trivial, lint errors.
2016-04-04 14:34:28 -07:00
ridiculousfish
3633c51ad8
Re-use the parse tree generated during error detection for execution
...
Prior to this fix, read_ni would use parse_util_detect_errors
to lint the script to run, and then parser_t::eval() to execute it.
Both functions would parse the script into a parse tree. This allows
us to re-use the parse tree, improving perfomance.
2016-02-28 00:44:20 -08:00
ridiculousfish
594b460ba2
Allow and/or statements to attach to the if/while header
...
For example:
if false; or true; echo hello; end
will output 'hello' now.
Fixes #1428
2015-12-19 14:49:07 -08:00
ridiculousfish
b59904632d
Rewrite parse_util_unescape_wildcards
...
Make it simpler, and use wcstring instead of wcsdup
2015-08-19 11:35:24 -07:00
ridiculousfish
93d57bd73a
Factor function environment preparation into its own function
2015-08-15 13:37:17 -07:00
David Adam
a6a16808e3
Merge branch 'iwyu'
...
http://include-what-you-use.org/
2015-07-29 09:30:19 +08:00
ridiculousfish
c9349f2ef6
Continue to refine tokenizer interface
...
Migrate some functions into tokenizer instance methods
2015-07-26 00:58:32 -07:00
ridiculousfish
4ebaa7b6bd
Continue migration to the new tokenizer interface
2015-07-26 00:12:36 -07:00
David Adam
3929e9de0e
Merge branch 'master' into iwyu
2015-07-26 10:20:13 +08:00
ridiculousfish
b4f53143b0
Migrate source files into src/ directory
...
This change moves source files into a src/ directory,
and puts object files into an obj/ directory. The Makefile
and xcode project are updated accordingly.
Fixes #1866
2015-07-24 00:59:27 -07:00