Skip to content

Commit 0990882

Browse files
committed
review: improve assert messages
1 parent 17694ec commit 0990882

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
@@ -5314,10 +5314,11 @@ void Parser::ParseMicrosoftUuidAttributeArgs(ParsedAttributes &Attrs) {
53145314
}
53155315

53165316
void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
5317-
assert(Tok.is(tok::identifier) && "Not a Microsoft attribute list");
5317+
assert(Tok.is(tok::identifier) &&
5318+
"Expected an identifier to denote which MS attribute to consider");
53185319
IdentifierInfo *RootSignatureIdent = Tok.getIdentifierInfo();
53195320
assert(RootSignatureIdent->getName() == "RootSignature" &&
5320-
"Not a Microsoft attribute list");
5321+
"Expected RootSignature identifier for root signature attribute");
53215322

53225323
SourceLocation RootSignatureLoc = Tok.getLocation();
53235324
ConsumeToken();

0 commit comments

Comments
 (0)