[gcc r11-7734] analyzer: mark epath_finder with DISABLE_COPY_AND_ASSIGN [PR99614]
David Malcolm
dmalcolm@gcc.gnu.org
Fri Mar 19 13:04:35 GMT 2021
https://gcc.gnu.org/g:21d09cb732dac5d980ac628eb3aca75c821028a2
commit r11-7734-g21d09cb732dac5d980ac628eb3aca75c821028a2
Author: David Malcolm <dmalcolm@redhat.com>
Date: Fri Mar 19 09:01:57 2021 -0400
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.
Diff:
---
gcc/analyzer/diagnostic-manager.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/analyzer/diagnostic-manager.cc b/gcc/analyzer/diagnostic-manager.cc
index 1a3535cfeb1..a376755b7ee 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,
More information about the Gcc-cvs
mailing list