[cfe-dev] Need info

Aaron Ballman via cfe-dev cfe-dev at lists.llvm.org
Wed Jul 15 04:10:40 PDT 2020


On Tue, Jul 14, 2020 at 11:27 PM Gousemoodhin Nadaf via cfe-dev
<cfe-dev at lists.llvm.org> 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
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the cfe-dev mailing list