[PATCH] C++ preprocessor fixes

Dmitry Risenberg dmitry.risenberg at gmail.com
Tue Nov 23 23:05:21 UTC 2010


Hi all!

Attached is a patch that fixes C++ preprocessor implementation to work
according to the standard. This fixes
https://bugs.kde.org/show_bug.cgi?id=256433. Also some other macros
from Boost library are now expanded correctly.
An incorrect position in source is reported for a declaration in a
corner-case when the identifier is a result of concatenation by "##"
token - see lines 1782-1791 in test_cppcodecompletion.cpp. Fixing this
case doesn't look possible with current implementation, because the
concatenated string is treated as a whole after all '##" are applied.

-- 
Dmitry Risenberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop-cpp-preprocessor.patch
Type: text/x-patch
Size: 46402 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101124/269bcce7/attachment.patch>


More information about the KDevelop-devel mailing list