]> granicus.if.org Git - re2c/commit
Fixed '#include's (appied most of 'include-what-you-use' suggestions).
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 1 Dec 2015 16:14:49 +0000 (16:14 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 1 Dec 2015 16:14:49 +0000 (16:14 +0000)
commitd51b2592f8025aebc6ed52cf4f67586b5c1c298b
tree81946a958b3866121c88f6ec2a12335fad63b47e
parent776c9bf51616be174f783312fe91537658e43152
Fixed '#include's (appied most of 'include-what-you-use' suggestions).

The worst dependency which 'include-what-you-use' fails to see
(and rightly so) is 'src/parse/lex.re' -> 'src/parse/parser.h'.
This dependency is caused by '#include "y.tab.h"' in 'src/parse/lex.re'.

Another ubiquitos issue is 'src/util/c99_stdint.h' ('include-what-you-use'
suggests to substitute it with '<stdint.h>').

And a couple of other dependencies that 'include-what-you-use' fails to see.
69 files changed:
re2c/bootstrap/src/conf/parse_opts.cc
re2c/bootstrap/src/parse/lex.cc
re2c/bootstrap/src/parse/lex_conf.cc
re2c/bootstrap/src/parse/parser.cc
re2c/src/codegen/bitmap.cc
re2c/src/codegen/bitmap.h
re2c/src/codegen/emit_action.cc
re2c/src/codegen/emit_dfa.cc
re2c/src/codegen/go_construct.cc
re2c/src/codegen/go_destruct.cc
re2c/src/codegen/go_emit.cc
re2c/src/codegen/go_used_labels.cc
re2c/src/codegen/input_api.cc
re2c/src/codegen/input_api.h
re2c/src/codegen/label.h
re2c/src/codegen/output.cc
re2c/src/codegen/output.h
re2c/src/codegen/prepare_dfa.cc
re2c/src/codegen/print.cc
re2c/src/codegen/print.h
re2c/src/codegen/scc.cc
re2c/src/codegen/skeleton/control_flow.cc
re2c/src/codegen/skeleton/generate_code.cc
re2c/src/codegen/skeleton/generate_data.cc
re2c/src/codegen/skeleton/match_empty.cc
re2c/src/codegen/skeleton/maxlen.cc
re2c/src/codegen/skeleton/skeleton.cc
re2c/src/codegen/skeleton/skeleton.h
re2c/src/codegen/skeleton/unreachable.cc
re2c/src/codegen/skeleton/way.cc
re2c/src/codegen/skeleton/way.h
re2c/src/conf/opt.h
re2c/src/conf/parse_opts.re
re2c/src/conf/warn.cc
re2c/src/conf/warn.h
re2c/src/ir/bytecode/bytecode.cc
re2c/src/ir/bytecode/bytecode.h
re2c/src/ir/bytecode/calc_size.cc
re2c/src/ir/bytecode/compile.cc
re2c/src/ir/bytecode/ins.cc
re2c/src/ir/bytecode/ins.h
re2c/src/ir/bytecode/split.cc
re2c/src/ir/dfa/dfa.cc
re2c/src/ir/dfa/dfa.h
re2c/src/ir/regexp/encoding/enc.cc
re2c/src/ir/regexp/encoding/enc.h
re2c/src/ir/regexp/encoding/range_suffix.cc
re2c/src/ir/regexp/encoding/range_suffix.h
re2c/src/ir/regexp/encoding/utf16/utf16_range.cc
re2c/src/ir/regexp/encoding/utf16/utf16_range.h
re2c/src/ir/regexp/encoding/utf16/utf16_regexp.cc
re2c/src/ir/regexp/encoding/utf16/utf16_regexp.h
re2c/src/ir/regexp/encoding/utf8/utf8_range.cc
re2c/src/ir/regexp/encoding/utf8/utf8_range.h
re2c/src/ir/regexp/encoding/utf8/utf8_regexp.cc
re2c/src/ir/regexp/encoding/utf8/utf8_regexp.h
re2c/src/ir/regexp/fixed_length.cc
re2c/src/ir/regexp/regexp.cc
re2c/src/ir/regexp/regexp.h
re2c/src/ir/rule_rank.h
re2c/src/main.cc
re2c/src/parse/code.h
re2c/src/parse/lex.re
re2c/src/parse/lex_conf.re
re2c/src/parse/parser.ypp
re2c/src/parse/scanner.cc
re2c/src/parse/scanner.h
re2c/src/parse/unescape.cc
re2c/src/util/range.h