-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partylambdaC++11 lambda expressionsC++11 lambda expressions
Description
Consider
struct S {
void g() const [[clang::annotate_type("foo", "bar", 1)]] {}
};
void f() {
auto l = [] () [[clang::annotate_type("foo", "bar", 1)]] {};
}AST dump prints 'void () const [[clang::annotate_type(...)]]':'void () const' for the type of S::g(), but void () const for the type of l, which is problematic if someone actually wants to use this information for something (#84983). We should fix this unless there’s a good reason why we’re desugaring the function type here.
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partylambdaC++11 lambda expressionsC++11 lambda expressions