[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 185824] New: Code completion tokens concatenate incorrectly
From: Lior Mualem <lior.m.kde () gmail ! com>
Date: 2009-02-28 19:08:44
Message-ID: bug-185824-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=185824
Summary: Code completion tokens concatenate incorrectly
Product: kdevelop
Version: unspecified
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: lior.m.kde@gmail.com
Version: 4 (using KDE 4.2.0)
Compiler: gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
OS: Linux
Installed from: Ubuntu Packages
Consider this code:
--------------
#define DO_CAT(a, b) DO_CAT_I(a, b)
#define DO_CAT_I(a, b) a ## b
#define VAL_KIND A
const int Value_A = 1;
const int Value_VAL_KIND = 2;
const int v1 = DO_CAT(Value_, VAL_KIND);
const int v2 = DO_CAT_I(Value_, VAL_KIND);
--------------
v1 translates to "1"(Value_A) which is good.
v2 also translates to "1"(Value_A), this is not good.
It should translate to "2" which is Value_VAL_KIND.
When concatenating tokens, macro expansion should only occur when we have
another indirection like when DO_CAT calls DO_CAT_I, the VAL_KIND macro is
expanded.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic