Skip to content

Commit c55dbda

Browse files
committed
Reduce diff
1 parent cfa0443 commit c55dbda

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7523,16 +7523,15 @@ ERROR(extension_macro_invalid_conformance,none,
75237523
ERROR(macro_attached_to_invalid_decl,none,
75247524
"'%0' macro cannot be attached to %1 (%base2)",
75257525
(StringRef, DescriptiveDeclKind, const Decl *))
7526-
ERROR(conformance_macro,none,
7527-
"conformance macros are replaced by extension macros",
7528-
())
7529-
75307526
ERROR(macro_as_default_argument, none,
75317527
"non-built-in macro cannot be used as default argument",
75327528
())
75337529
ERROR(macro_as_default_argument_arguments_must_be_literal, none,
75347530
"argument to macro used as default argument must be literal",
75357531
())
7532+
ERROR(conformance_macro,none,
7533+
"conformance macros are replaced by extension macros",
7534+
())
75367535

75377536
ERROR(macro_resolve_circular_reference, none,
75387537
"circular reference resolving %select{freestanding|attached}0 macro %1",

lib/AST/Module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ ModuleDecl::getOriginalLocation(SourceLoc loc) const {
921921
break;
922922
}
923923
case GeneratedSourceInfo::DefaultArgument:
924-
// TODO: ApolloZhu
924+
// No original location as it's not actually in any source file
925925
case GeneratedSourceInfo::ReplacedFunctionBody:
926926
// There's not really any "original" location for locations within
927927
// replaced function bodies. The body is actually different code to the

lib/Sema/TypeCheckExpr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,7 @@ static SourceFile *createDefaultArgumentSourceFile(StringRef macroExpression,
719719

720720
llvm::SmallString<256> builder;
721721
unsigned line, column;
722-
// TODO: ApolloZhu check getPresumedLineAndColumnForLoc
723722
std::tie(line, column) = sourceMgr.getLineAndColumnInBuffer(insertionPoint);
724-
// TODO: ApolloZhu check getVirtualFile/getOutermostParentSourceFile
725723
auto file = dc->getParentSourceFile()->getFilename();
726724

727725
// find a way to pass the file:line:column to macro expansion

0 commit comments

Comments
 (0)