- Jun 19, 2012
-
-
Leandro Melo authored
This reverts commit 44d8e7be. The original test case was actually right. I guess I was mislead by the recently added preprocessor tests, which are the ones that should be corrected (together with the preprocessor, which seems to have issues with # lineno generation). Conflicts: tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp Change-Id: I47f82ed23a37086d0d81c4b3ea2cac48fb753451 Reviewed-by:
hjk <qthjk@ovi.com> Reviewed-by:
Francois Ferrand <thetypz@gmail.com>
-
Leandro Melo authored
Do not expand function-like macros at all when there's a mismatch in the parameter/argument count. The report below raises the issue but its expected result is not correct. This would be the more appropriate fix. Task-number: QTCREATORBUG-7225 Change-Id: Ide8580faa7b724d3e8b396ec1f899cc5ca7f9e7e Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jun 12, 2012
-
-
Leandro Melo authored
Change-Id: I6d226b4e42f94ebee41d012050c5109895f0c432 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jun 05, 2012
-
-
Leandro Melo authored
It was previously beeing skipped. Change-Id: Iadd9b03acbcf0ee0fb4db537b8597661cb93af3f Reviewed-by:
hjk <qthjk@ovi.com>
-
- Jun 01, 2012
-
-
Leandro Melo authored
Make sure the environment line is consistent during preprocessor directives and identifier handling so clients can rely on consistent information. Particularly important for macro usages. New tests also added. Change-Id: I962a39a86cd17b8d945d2959c2c95e2d258ea3e6 Reviewed-by:
hjk <qthjk@ovi.com>
-
- May 31, 2012
-
-
Leandro Melo authored
I believe those were actually incorrect, since the # mark from the generated tokens `int f` should be relative to <stdin> on the line they are defined, which is 1. Change-Id: I663ef49ad75eb8bb0a4a4b18d4899a952011536c Reviewed-by:
Francois Ferrand <thetypz@gmail.com> Reviewed-by:
hjk <qthjk@ovi.com>
-
- May 30, 2012
-
-
hjk authored
An missing closing parantheses after "defined(..." caused an endless loop. Change-Id: I19b17cebc1a56880216c3bfb67c9d296f80cc064 Reviewed-by:
Leandro Melo <leandro.melo@nokia.com>
-
- May 15, 2012
-
-
hjk authored
Change-Id: I902ebd73e039b8c3f44eca456be87809d1e1d3a4 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 27, 2012
-
-
hjk authored
Change-Id: I9d51798cb4d95141d30b0609d03cd1d199088f0a Reviewed-by:
hjk <qthjk@ovi.com>
-
hjk authored
Change-Id: I67367e501c8f19cee9023e3782c6a9175b49c6c6 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 26, 2012
-
-
hjk authored
Change-Id: I126143daeb572a555b73dc33ad7996b22c1387f8 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 25, 2012
-
-
hjk authored
Task-number: QTCREATORBUG-7256 Change-Id: I6149e56e5f50f75c9e039be9c162036a3890e2d7 Reviewed-by:
David Schulz <david.schulz@nokia.com> Reviewed-by:
hjk <qthjk@ovi.com>
-
hjk authored
Change-Id: I1381ce17098a87dbc3924dc86902d7cc1b1eec76 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 19, 2012
-
-
hjk authored
Easier to follow. Change-Id: I6da1ca862ddb7048a6d16bf5e6ea18d6b2cfc7f8 Reviewed-by:
hjk <qthjk@ovi.com>
-
hjk authored
Change-Id: Ic81e3ebec1b42ae0698a340ee7e1c711225c1162 Reviewed-by:
hjk <qthjk@ovi.com>
-
hjk authored
Change-Id: Idb93d359bd45696a38cb863dcea30c5c377eeabb Reviewed-by:
hjk <qthjk@ovi.com>
-
hjk authored
Change-Id: I7c843a449bb6db348ab374b4bd2c378b797b94cd Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 17, 2012
-
-
hjk authored
Change-Id: Iab9fb8ecbad94e08d39b6fad60caaf98a85d5980 Reviewed-by:
hjk <qthjk@ovi.com>
-
- Apr 02, 2012
-
-
Francois Ferrand authored
The line corresponding to the macro definition is simply the token's line. This caused errors in the macro definitions, since there were multiple macros defined on the same line of the same file. Task-number: QTCREATORBUG-7217 Change-Id: I56d17eeba677ac51f9eed283c0e964019bdfe4b7 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
Francois Ferrand authored
- This enables some tests which had been unexpectedly disabled in earlier test. - Tests to show issue QTCREATORBUG-7225. - Tests which validates somehow behavior of preprocessor for QTCREATORBUG-7217: the test passes, so the problem is likely not in the startExpandingMacro() notification. Change-Id: Ib7c1433e4dcdd8c1d19fa117371f94c1645ec3fb Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
Francois Ferrand authored
- Notify end of macro if function expansion is skipped. - Do not notify client of generated macros expansion. Change-Id: Ic027fc13ee391425a5ebadc8e84b9305912dbcf0 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 30, 2012
-
-
Erik Verbruggen authored
Change-Id: I60d25109ae8fe3628b1899078a21010263787c33 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 29, 2012
-
-
Erik Verbruggen authored
Change-Id: Id1c4046d028ad26d17b28feb53a832f3b48363f1 Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
Erik Verbruggen authored
This rewrite fixes a couple of issues with the pre-processor. It now supports: - macros in macro bodies - stringification of parameters [cpp.stringize] - the concatenation operator [cpp.concat] - #include MACRO_HERE - defined() inside macro bodies used in pp-conditions. Change-Id: Ifdb78041fb6afadf44f939a4bd66ce2832b8601f Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Mar 19, 2012
-
-
Francois Ferrand authored
The macro used to be at the same line as the first token after the closing parenthesis. Change-Id: I4c2d7317632baf612900e84572017aeb247d0585 Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
Francois Ferrand authored
Expanding macro arguments can add or remove argument for a nested macro, so the actual parameters list was not correct. Also, remove unused arguments reference list and reserve space for the expected number of arguments. Change-Id: I4cf369cbb3909927c6bf65750bd715fa6f070fad Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
Francois Ferrand authored
First empty argument used to be dropped: e.g. MACRO(,test) would be expanded with one parameter only, with value 'test'. Change-Id: I693fbb7faf1360f62266fa04c4b39c2de0d159a7 Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
Francois Ferrand authored
Change-Id: I69aa6c5e01ea97a4413f77f20ebbb4d4beb971aa Reviewed-by:
Erik Verbruggen <erik.verbruggen@nokia.com>
-
- Mar 13, 2012
-
-
Erik Verbruggen authored
Change-Id: I3db86fa5df4a2747f4c24e0414279dab59098c54 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com>
-
- Feb 28, 2012
-
-
Erik Verbruggen authored
Change-Id: I884ff9901c95467524e5eba38e91f75992d30e14 Reviewed-by:
Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by:
Flex Ferrum <flexferrum@gmail.com>
-
- Jan 26, 2012
-
-
hjk authored
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by:
Daniel Teske <daniel.teske@nokia.com>
-
- Nov 03, 2011
-
-
hjk authored
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Jul 06, 2011
-
-
Erik Verbruggen authored
Change-Id: I755bdd1788770b7edd34f06372219d27abd0af11 Reviewed-on: http://codereview.qt.nokia.com/1214 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Tobias Hunger <tobias.hunger@nokia.com>
-
hjk authored
Change-Id: I61e7cf189a1c4ea04e2a88a80a4f15e43cd3c018 Reviewed-on: http://codereview.qt.nokia.com/1187 Reviewed-by:
Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by:
Eike Ziller <eike.ziller@nokia.com>
-
- Apr 13, 2011
-
-
hjk authored
-
- Feb 18, 2011
-
-
Bill King authored
-
- Sep 02, 2010
-
-
Bill King authored
-
- Feb 10, 2010
-
-
Erik Verbruggen authored
When a PP line ended with a \ (join line) and the next line was empty (ending th joining), the following token would be incorrectly marked as joined. Done-with: Roberto Raggi
-
- Oct 27, 2009
-
-
Roberto Raggi authored
-
- Jun 19, 2009
-
-
Roberto Raggi authored
-