Open
Bug 1809392
Opened 3 years ago
Proposing new clang static analysis rule that disallows singleton to be created multiple times
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
NEW
People
(Reporter: freddy, Unassigned)
References
Details
Inspired by issues like https://bugzilla.mozilla.org/show_bug.cgi?id=1802346, it looks like it would be nice if we could have a check that can ensure our singletons are indeed not Create()d additionally.
As far as I understand, our binding code does know whether an object should be a singleton? I do not know how feasible and how useful that is though.
You need to log in
before you can comment on or make changes to this bug.
Description
•