Skip to content
Snippets Groups Projects
Commit 373197b9 authored by Francois Pichet's avatar Francois Pichet
Browse files

Don't fail at parsing __declspec(property(get=get_func_name)). Just skip...

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131053 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4d375831
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment