diff options
author | David Malcolm <dmalcolm@redhat.com> | 2021-03-19 09:01:57 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2021-03-19 09:01:57 -0400 |
commit | 21d09cb732dac5d980ac628eb3aca75c821028a2 (patch) | |
tree | a2d55cdd6ab1680e698e33f6dc4479104e0717ec /gcc | |
parent | 009528d61c796608affd1eaa18ae31a3679eb46d (diff) | |
download | gcc-21d09cb732dac5d980ac628eb3aca75c821028a2.zip gcc-21d09cb732dac5d980ac628eb3aca75c821028a2.tar.gz gcc-21d09cb732dac5d980ac628eb3aca75c821028a2.tar.bz2 |
analyzer: mark epath_finder with DISABLE_COPY_AND_ASSIGN [PR99614]
cppcheck warns that class epath_finder does dynamic memory allocation, but
is missing a copy constructor and operator=.
This class isn't meant to be copied or assigned, so mark it with
DISABLE_COPY_AND_ASSIGN.
gcc/analyzer/ChangeLog:
PR analyzer/99614
* diagnostic-manager.cc (class epath_finder): Add
DISABLE_COPY_AND_ASSIGN.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/analyzer/diagnostic-manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/analyzer/diagnostic-manager.cc b/gcc/analyzer/diagnostic-manager.cc index 1a3535c..a376755 100644 --- a/gcc/analyzer/diagnostic-manager.cc +++ b/gcc/analyzer/diagnostic-manager.cc @@ -95,6 +95,8 @@ public: feasibility_problem **out_problem); private: + DISABLE_COPY_AND_ASSIGN(epath_finder); + exploded_path *explore_feasible_paths (const exploded_node *target_enode, const char *desc, unsigned diag_idx); bool process_worklist_item (feasible_worklist *worklist, |