]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: cleanups to checker_path
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 3 Jan 2020 14:26:16 +0000 (09:26 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 15 Jan 2020 01:53:05 +0000 (20:53 -0500)
commite2a538b1c31a13fc3d2f6d8ac3f341437775e984
tree42d3259504b5264ee52cb8d51f8936a1cba91c86
parent94946989e82cfa996873bcf6273242f5606cd7f5
analyzer: cleanups to checker_path

This patch adds DISABLE_COPY_AND_ASSIGN to checker_path, and makes its
fields private.

gcc/analyzer/ChangeLog:
* checker-path.h (checker_path::get_checker_event): New function.
(checker_path): Add DISABLE_COPY_AND_ASSIGN; make fields private.
* diagnostic-manager.cc
(diagnostic_manager::prune_for_sm_diagnostic): Replace direct
access to checker_path::m_events with accessor functions.  Fix
overlong line.
(diagnostic_manager::prune_interproc_events): Replace direct
access to checker_path::m_events with accessor functions.
(diagnostic_manager::finish_pruning): Likewise.
gcc/analyzer/ChangeLog
gcc/analyzer/checker-path.h
gcc/analyzer/diagnostic-manager.cc