public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7734] analyzer: mark epath_finder with DISABLE_COPY_AND_ASSIGN [PR99614]
@ 2021-03-19 13:04 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2021-03-19 13:04 UTC (permalink / raw)
To: gcc-cvs
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-19 13:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19 13:04 [gcc r11-7734] analyzer: mark epath_finder with DISABLE_COPY_AND_ASSIGN [PR99614] David Malcolm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).