Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
4ea8499fdc5afc0deca911b4367cf49b1be719f0
qt-creator/tests/auto/cplusplus/preprocessor/data/reserved.1.cpp

11 lines
192 B
C++
Raw Normal View History

[C++] Rewrite of the preprocessor. 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>
2012-03-26 15:18:01 +02:00
#define Q_FOREACH(variable, container) foobar(variable, container)
#define foreach Q_FOREACH
int f() {
foreach (QString &s, QStringList()) {
doSomething();
}
return 1;
}
Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 65ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API