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
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
Type
Projects
Status
Done