Need info

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Need info

David Chisnall via cfe-dev
Hello Team,
Does anyone know? what is the meaning of ExplicitExpr.isUsable() at ParseDecl.cpp:3583 ( https://clang.llvm.org/doxygen/ParseDecl_8cpp_source.html )

Regards,
Nadaf.

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Need info

David Chisnall via cfe-dev
On Tue, Jul 14, 2020 at 11:27 PM Gousemoodhin Nadaf via cfe-dev
<[hidden email]> wrote:
>
> Hello Team,
> Does anyone know? what is the meaning of ExplicitExpr.isUsable() at ParseDecl.cpp:3583 ( https://clang.llvm.org/doxygen/ParseDecl_8cpp_source.html )

That bit of code is ensuring that the expression in an explicit
specifier (a new C++20 feature) is valid before semantic analysis of
the specifier's expression. e.g.,:

struct S {
  explicit(a) S();
};

~Aaron

>
> Regards,
> Nadaf.
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Need info

David Chisnall via cfe-dev
Thank you for the clarification. 

On Wed, Jul 15, 2020 at 7:10 AM Aaron Ballman <[hidden email]> wrote:
On Tue, Jul 14, 2020 at 11:27 PM Gousemoodhin Nadaf via cfe-dev
<[hidden email]> wrote:
>
> Hello Team,
> Does anyone know? what is the meaning of ExplicitExpr.isUsable() at ParseDecl.cpp:3583 ( https://clang.llvm.org/doxygen/ParseDecl_8cpp_source.html )

That bit of code is ensuring that the expression in an explicit
specifier (a new C++20 feature) is valid before semantic analysis of
the specifier's expression. e.g.,:

struct S {
  explicit(a) S();
};

~Aaron

>
> Regards,
> Nadaf.
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev