diff options
| author | Manna, Soumi <soumi.manna@intel.com> | 2023-04-17 22:21:03 -0400 |
|---|---|---|
| committer | Manna, Soumi <soumi.manna@intel.com> | 2023-04-17 22:21:30 -0400 |
| commit | 7e1b62bd9ca8ab34444c3307e19abecdd482210f (patch) | |
| tree | 60653f666836046a16fc01171f2e5cf2df0881d9 /llvm/lib/Support/VirtualFileSystem.cpp | |
| parent | cf8d6844de3327ce2e1ff2e7f718b1e62f213fea (diff) | |
| download | llvm-7e1b62bd9ca8ab34444c3307e19abecdd482210f.zip llvm-7e1b62bd9ca8ab34444c3307e19abecdd482210f.tar.gz llvm-7e1b62bd9ca8ab34444c3307e19abecdd482210f.tar.bz2 | |
[NFC][Clang] Fix static analyzer tool remark about missing user-defined assignment operator
Reported by Coverity:
Copy without assign
This class has a user-defined copy constructor but no user-defined assignment operator. If the copy constructor is necessary to manage owned resources then a corresponding assignment operator is usually required. If an object of this type is assigned memory leaks and/or use-after-free errors may occur. Note that a compiler-generated assignment operator will perform only a bit-wise copy for any fields that do not have their own assignment operators defined.
Class has user-written copy constructor but no user-written assignment operator
copy_without_assign: Class <unnamed>::DeclUseTracker has a user-written copy constructor <unnamed>::DeclUseTracker::DeclUseTracker(<unnamed>::DeclUseTracker const &) =delete but no corresponding user-written assignment operator.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D148189
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions
