c++: Formatting fixups & some simplifications.
authorNathan Sidwell <nathan@acm.org>
Wed, 13 May 2020 20:03:12 +0000 (13:03 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 13 May 2020 20:03:55 +0000 (13:03 -0700)
commit7e6a72cb2eba764e88fa8df1ae8b75827281c92b
tree4fc01dfe914068f961cae83c14abbfe904da8f15
parentb04445d4a809eaf0460fd4f1f35b1a7d458c8c72
c++: Formatting fixups & some simplifications.

A bunch of minor reformatting, simplifications or change to checking_asserts.

* pt.c (spec_hash_table): New typedef.
(decl_specializations, type_specializations): Use it.
(retrieve_specialization): Likewise.
(register_specialization): Remove unnecessary casts.
(push_template_decl_real): Reformat.
(instantiate_class_template_1): Use more RAII.
(make_argument_pack): Simplify.
(instantiate_template_1): Use gcc_checking_assert for expensive
asserts.
(instantiate_decl): Likewise.
(resolve_typename_type): Reformat comment.
* semantics.c (struct deferred_access): Remove unnecessary GTY on
member.
(begin_class_definition): Fix formatting.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c