This patch adds missing assignment operator to the class which has user-defined copy constructor.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Can only comment on ThreadSafetyTIL.h. Thanks for addressing this, I agree that these expressions should not be assignable.
clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h | ||
---|---|---|
324–325 | We can probably even drop the comment. Types in an inheritance hierarchy tend to be not assignable, and I don't see why it would ever be needed for what amounts to be AST nodes. | |
384–386 | My understanding is that deleting copy assignment on the base class automatically deletes it for the derived classes, so I'd appreciate if we could drop this and the following additions. That's just noise in my view. Also, most of these classes don't seem to have a user-declared copy constructor, or am I missing something? |
clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h | ||
---|---|---|
324–325 | Thank you @aaronpuchert for reviews and feedbacks. I have dropped the comment. | |
384–386 | Yup, Sounds reasonable to me. Removed |
We can probably even drop the comment. Types in an inheritance hierarchy tend to be not assignable, and I don't see why it would ever be needed for what amounts to be AST nodes.