File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2848,6 +2848,15 @@ class ValueDecl : public Decl {
2848
2848
return Bits.ValueDecl .IsUserAccessible ;
2849
2849
}
2850
2850
2851
+ // / Whether this decl has been synthesized by the compiler for use by the
2852
+ // / user.
2853
+ // /
2854
+ // / This is a refinement of isImplicit; all synthesized decls are implicit,
2855
+ // / but not all implicit decls are synthesized. The difference comes down to
2856
+ // / whether or not the decl is user-facing, e.g the implicit memberwise
2857
+ // / initializer is considered synthesized. Decls that are only meant for the
2858
+ // / compiler, e.g the implicit FuncDecl for a DeferStmt, are not considered
2859
+ // / synthesized.
2851
2860
bool isSynthesized () const {
2852
2861
return Bits.ValueDecl .Synthesized ;
2853
2862
}
You can’t perform that action at this time.
0 commit comments