diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2023-05-06 00:55:57 +0300 |
---|---|---|
committer | Alexander Monakov <amonakov@ispras.ru> | 2023-05-09 12:57:14 +0300 |
commit | 2ed6dd975d1da862a9bec991c9a60d8537169e3b (patch) | |
tree | d7f6c74c17dcbef59e470f20a170d5b1dcb9b725 /gcc/cp/constraint.cc | |
parent | af84cb1f3e16965b0a18e2165cc1626b9d588c70 (diff) | |
download | gcc-2ed6dd975d1da862a9bec991c9a60d8537169e3b.zip gcc-2ed6dd975d1da862a9bec991c9a60d8537169e3b.tar.gz gcc-2ed6dd975d1da862a9bec991c9a60d8537169e3b.tar.bz2 |
genmatch: clean up emit_func
Eliminate boolean parameters of emit_func. The first ('open') just
prints 'extern' to generated header, which is unnecessary. Introduce a
separate function to use when finishing a declaration in place of the
second ('close').
Rename emit_func to 'fp_decl' (matching 'fprintf' in length) to unbreak
indentation in several places.
Reshuffle emitted line breaks in a few places to make generated
declarations less ugly.
gcc/ChangeLog:
* genmatch.cc (header_file): Make static.
(emit_func): Rename to...
(fp_decl): ... this. Adjust all uses.
(fp_decl_done): New function. Use it...
(decision_tree::gen): ... here and...
(write_predicate): ... here.
(main): Adjust.
Diffstat (limited to 'gcc/cp/constraint.cc')
0 files changed, 0 insertions, 0 deletions