diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-03 16:32:08 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-03-03 16:32:08 +0100 |
commit | 55d0e4f860cf0bddfb176708768c9b592451ec37 (patch) | |
tree | 4765c65ddcb10d553b845786cc6f4a1c44dbae9b /src/libs/cplusplus | |
parent | 656d70fa7492e91e28056c69ee1a141de672313f (diff) | |
download | qt-creator-55d0e4f860cf0bddfb176708768c9b592451ec37.tar.gz |
Improved the way we expand function-like macros when we can't collect all the arguments.
Diffstat (limited to 'src/libs/cplusplus')
-rw-r--r-- | src/libs/cplusplus/pp-engine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index 350e610800..08b286a2bc 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -810,9 +810,8 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour ++_dot; } - if (_dot->isNot(T_RPAREN)) { - // ### warning expected T_RPAREN - } + if (_dot->isNot(T_RPAREN)) + _result->append(spell); else expandFunctionLikeMacro(identifierToken, m); |