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:
Francois Pichet 2011-05-07 19:04:49 +00:00
parent 8ba29d8e7f
commit dcf88932a2
1 changed files with 8 additions and 0 deletions

View File

@ -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))