[WIP] Disallow macro default argument with argument

Need to use variable from caller side context
This commit is contained in:
Apollo Zhu
2023-12-04 13:11:15 -08:00
parent 249a369bd0
commit f003c49fdf
12 changed files with 40 additions and 95 deletions

View File

@@ -920,6 +920,8 @@ ModuleDecl::getOriginalLocation(SourceLoc loc) const {
bufferID = SM.findBufferContainingLoc(loc);
break;
}
case GeneratedSourceInfo::DefaultArgument:
// TODO: ApolloZhu
case GeneratedSourceInfo::ReplacedFunctionBody:
// There's not really any "original" location for locations within
// replaced function bodies. The body is actually different code to the