Skip to content

Commit c8dea12

Browse files
committed
Simplify name of macro expansion buffers
1 parent 919e2e7 commit c8dea12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckMacros.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Expr *swift::expandMacroExpr(
190190
{
191191
llvm::raw_string_ostream out(bufferName);
192192

193-
out << "Macro expansion of #" << macro->getName();
193+
out << "macro:" << macro->getName().getBaseName();
194194
if (auto bufferID = sourceFile->getBufferID()) {
195195
unsigned startLine, startColumn;
196196
std::tie(startLine, startColumn) =
@@ -202,7 +202,7 @@ Expr *swift::expandMacroExpr(
202202
std::tie(endLine, endColumn) =
203203
sourceMgr.getLineAndColumnInBuffer(endLoc, *bufferID);
204204

205-
out << " in " << sourceMgr.getIdentifierForBuffer(*bufferID) << ":"
205+
out << ":" << sourceMgr.getIdentifierForBuffer(*bufferID) << ":"
206206
<< startLine << ":" << startColumn
207207
<< "-" << endLine << ":" << endColumn;
208208
}

0 commit comments

Comments
 (0)