]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix some comments in dwarf2/cooked-index.h
authorTom Tromey <tromey@adacore.com>
Fri, 6 Sep 2024 17:50:27 +0000 (11:50 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 9 Sep 2024 17:42:34 +0000 (11:42 -0600)
commit4f69c1b332603224581346ae3046a8accbe59ee6
treeb3d67bd22f7ac4bf5a285cb40ca4e6c820ebae16
parent052736020af3aae80f8eddbfc8a695916cdcbb9a
Fix some comments in dwarf2/cooked-index.h

This fixes a couple of comments in dwarf2/cooked-index.h.

The comment by cooked_index_entry::canonical mentions C++, but this
field can also be different from 'name' in other situations.  Rather
than enumerate the cases here (which doesn't seem important), make the
text a little less specific.

Also, cooked_index_entry::write_scope doesn't document its "for_main"
parameter -- and it is misnamed in the prototype as well.

Reviewed-By: Tom de Vries <tdevries@suse.de>
gdb/dwarf2/cooked-index.h