Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
64a08d15
Commit
64a08d15
authored
Nov 04, 2009
by
Roberto Raggi
Browse files
Parse ASM specifiers after declarators.
Again, a gcc extension used in the OSX system headers.
parent
4a87d875
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
64a08d15
...
...
@@ -1200,6 +1200,14 @@ bool Parser::parseDeclarator(DeclaratorAST *&node, bool stopAtCppInitializer)
break
;
}
if
(
LA
()
==
T___ASM__
&&
LA
(
2
)
==
T_LPAREN
)
{
// ### store the asm specifier in the AST
consumeToken
();
// skip __asm__
consumeToken
();
// skip T_LPAREN
if
(
skipUntil
(
T_RPAREN
))
consumeToken
();
// skip T_RPAREN
}
SpecifierAST
**
spec_ptr
=
&
node
->
post_attributes
;
while
(
LA
()
==
T___ATTRIBUTE__
)
{
parseAttributeSpecifier
(
*
spec_ptr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment