Skip to content

Commit 919e2e7

Browse files
committed
Make sure to mark "in expansion of macro" notes as child notes
1 parent 921e61b commit 919e2e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/DiagnosticEngine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,7 @@ std::vector<Diagnostic> DiagnosticEngine::getGeneratedSourceBufferNotes(
13131313
expansionNote.setLoc(origRange.Start);
13141314
expansionNote.addRange(
13151315
Lexer::getCharSourceRangeFromSourceRange(SourceMgr, origRange));
1316+
expansionNote.setIsChildNote(true);
13161317
childNotes.push_back(std::move(expansionNote));
13171318
break;
13181319
}

0 commit comments

Comments
 (0)