qt5base-lts/qmake/generators
Edward Welbourne 213111f0fc Rework scan for keyword in preprocessor directive.
When looking for the keyword in a preprocessor directive, we were
checking for non-word characters to find its end.  If that check
failed (i.e. we had a word character) we would then check for EOL
(which necessarily failed, on a word character).  That made no sense.

However, we genuinely have no interest in a directive with nothing
after the keyword, so do check for EOL after the loop (once we've
skipped spaces after the keyword).

The loop itself was made needlessly complicated by, on finding the end
of the keyword, skipping over later space inside the loop.  Moved this
outside the loop.

Change-Id: Iccc2d445bf44deb75604e7fa60f2464e7397d8ed
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-11-20 15:01:51 +00:00
..
mac Xcode generator: only replace the suffix in the library path 2015-11-09 08:35:04 +00:00
unix support relative paths in QMAKE_RPATHDIR 2015-10-20 17:18:16 +00:00
win32 MakefileGenerator::processSources() doesn't need to be virtual. 2015-11-13 15:10:32 +00:00
makefile.cpp fix bogus complaints about prl targets without extension in bundles 2015-10-14 15:43:26 +00:00
makefile.h MakefileGenerator::processSources() doesn't need to be virtual. 2015-11-13 15:10:32 +00:00
makefiledeps.cpp Rework scan for keyword in preprocessor directive. 2015-11-20 15:01:51 +00:00
makefiledeps.h Update copyright headers 2015-02-11 06:49:51 +00:00
metamakefile.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
metamakefile.h Update copyright headers 2015-02-11 06:49:51 +00:00
projectgenerator.cpp QtCore/qmake: drop some unneeded QChar -> QString conversions 2015-10-11 12:29:28 +00:00
projectgenerator.h Update copyright headers 2015-02-11 06:49:51 +00:00
xmloutput.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
xmloutput.h Update copyright headers 2015-02-11 06:49:51 +00:00