diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-06-10 15:12:17 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2013-06-11 16:57:07 +0200 |
commit | 271c3f45a47e48dc903a422b3579463967696f7a (patch) | |
tree | 2f283d1c579c74d53d35a5272230f00c7d40fcca /src/plugins/cpptools/cppcodegen_test.cpp | |
parent | d0afdfcc2b28315d75fb8c4a32a0d748ea3f662b (diff) | |
download | qt-creator-271c3f45a47e48dc903a422b3579463967696f7a.tar.gz |
C++: Fix preprocessor blocked macro bug.
By lexing the first token after a macro call (meaning: the token after
the closing parenthesis (which was passed to handleFunctionLikeMacro
which in turn pushed it back into the token buffer)), a token buffer
might be popped, which unblocks the macro that generated the actual
param pack. The effect was that if this happens in the expansion of a
recursive macro (with parameters!), the preprocessor ended up in an
infinite loop.
Task-number: QTCREATORBUG-9015
Task-number: QTCREATORBUG-9447
Change-Id: I0d83c59188ec15c4a948970e9fa944a17d765475
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
0 files changed, 0 insertions, 0 deletions