-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
llvm/llvm-project-release-prs
#704Closed
Copy link
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Milestone
Description
#define MACRO(var) {var}
char ok(int a) {
return {a}; // static_cast<char>( )
}
char macro(int a) {
return MACRO(a); // static_cast<char>(
// note the lack of end `)`
}
This fixit is issued here
llvm-project/clang/lib/Sema/SemaInit.cpp
Line 10366 in 7175d6a
<< FixItHint::CreateInsertion( |
and uses
FixItHint::CreateInsertion(S.getLocForEndOfToken(PostInit->getEndLoc()), ")");
to emit the insertion for the end paren. It is just missing in the fixit hint.Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Type
Projects
Status
Done