]> gcc.gnu.org Git - gcc.git/commit
analyzer: convert note_adding_context to annotating_context
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 22 Aug 2023 01:13:17 +0000 (21:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 22 Aug 2023 01:13:17 +0000 (21:13 -0400)
commite40a935db29cfd8f1c68b1d0b7219d71b9c5abb0
tree64267b41b9351e97ff84c50756bcc42814c0a845
parent5f55721049415d4887681f3c7115d8619ab80ccd
analyzer: convert note_adding_context to annotating_context

This is enabling work towards the context being able to inject
events into diagnostic paths, rather than just notes after the
warning.

gcc/analyzer/ChangeLog:
* region-model.cc
(class check_external_function_for_access_attr::annotating_ctxt):
Convert to an annotating_context.
* region-model.h (class note_adding_context): Rename to...
(class annotating_context): ...this, updating the "warn" method.
(note_adding_context::make_note): Replace with...
(annotating_context::add_annotations): ...this.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/region-model.cc
gcc/analyzer/region-model.h
This page took 0.05894 seconds and 5 git commands to generate.