Don't fail at parsing __declspec(property(get=get_func_name)). Just skip everything inside property() for now while we wait for the BoostPro people to provide a complete patch.
llvm-svn: 131053
This commit is contained in:
parent
8ba29d8e7f
commit
dcf88932a2
|
@ -253,9 +253,17 @@ void Parser::ParseMicrosoftDeclSpec(ParsedAttributes &attrs) {
|
|||
SkipUntil(tok::r_paren, true); // skip until ) or ;
|
||||
return;
|
||||
}
|
||||
|
||||
while (Tok.getIdentifierInfo()) {
|
||||
IdentifierInfo *AttrName = Tok.getIdentifierInfo();
|
||||
SourceLocation AttrNameLoc = ConsumeToken();
|
||||
|
||||
// FIXME: Remove this when we have proper __declspec(property()) support.
|
||||
// Just skip everything inside property().
|
||||
if (AttrName->getName() == "property") {
|
||||
ConsumeParen();
|
||||
SkipUntil(tok::r_paren);
|
||||
}
|
||||
if (Tok.is(tok::l_paren)) {
|
||||
ConsumeParen();
|
||||
// FIXME: This doesn't parse __declspec(property(get=get_func_name))
|
||||
|
|
Loading…
Reference in New Issue