Skip to content
GitLab
Menu
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
d7883067
Commit
d7883067
authored
Jul 09, 2009
by
Roberto Raggi
Browse files
Don't expand object-like macro when preprocessing in fast-mode.
parent
e0f55073
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/pp-engine.cpp
View file @
d7883067
...
...
@@ -818,6 +818,17 @@ void Preprocessor::preprocess(const QString &fileName, const QByteArray &source,
const
QByteArray
spell
=
tokenSpell
(
*
identifierToken
);
if
(
!
_expandMacros
)
{
if
(
!
env
->
isBuiltinMacro
(
spell
))
{
Macro
*
m
=
env
->
resolve
(
spell
);
if
(
m
&&
!
m
->
isFunctionLike
())
{
QByteArray
expandedDefinition
;
expandObjectLikeMacro
(
identifierToken
,
spell
,
m
,
&
expandedDefinition
);
if
(
expandedDefinition
.
trimmed
().
isEmpty
())
{
out
(
QByteArray
(
spell
.
length
(),
' '
));
continue
;
}
}
}
out
(
spell
);
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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