Skip to content

Commit 9fe54ea

Browse files
committed
review: improve assert messages
1 parent a54098e commit 9fe54ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5212,10 +5212,11 @@ void Parser::ParseMicrosoftUuidAttributeArgs(ParsedAttributes &Attrs) {
52125212
}
52135213

52145214
void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5215-
assert(Tok.is(tok::identifier) && "Not a Microsoft attribute list");
5215+
assert(Tok.is(tok::identifier) &&
5216+
"Expected an identifier to denote which MS attribute to consider");
52165217
IdentifierInfo *RootSignatureIdent = Tok.getIdentifierInfo();
52175218
assert(RootSignatureIdent->getName() == "RootSignature" &&
5218-
"Not a Microsoft attribute list");
5219+
"Expected RootSignature identifier for root signature attribute");
52195220

52205221
SourceLocation RootSignatureLoc = Tok.getLocation();
52215222
ConsumeToken();

0 commit comments

Comments
 (0)