Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/refactor/tweaks/SpecialMembers.cpp | ||
---|---|---|
72 | nit: add trigger points. | |
120 | I think we need this because these members are created lazily in clang, e.g. if the empty struct s is not used, there is no constructor decl being created. The ForceDeclarationOfImplicitMembers is a member function which can mutate the parameter Class, I was wondering whether it would lead some bad side-effect, but I didn't come out one (and the mutation is mostly creating a new ctor-decl and adding it to the Class). | |
146 | nit: add default value |
clang-tools-extra/clangd/refactor/tweaks/SpecialMembers.cpp | ||
---|---|---|
120 | That's right. Rewrote the comment to make it clearer that these are lazily created (which is why I think it's safe to create them) |
nit: add trigger points.