[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 242887] New: kdevelop4: Wrong default parameters shown.
From: Sascha Peilicke <sasch.pe () gmx ! de>
Date: 2010-06-26 15:58:22
Message-ID: bug-242887-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=242887
Summary: kdevelop4: Wrong default parameters shown.
Product: kdevelop
Version: SVN
Platform: openSUSE RPMs
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: Language Support: CPP
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: sasch.pe@gmx.de
Version: SVN (using Devel)
OS: Linux
When having defined a default parameter value of '0' for pointer types,
KDevelop's editor pretends that the value is the NULL macro. The inspection
popup also insists on it being the NULL macro, but in the source code file it
is not. The file is not marked as changed by KDevelop, so I'd suspect it's a
parser error.
As an example, the real code: void foo(bar *p = 0) {}
KDevelop shows the following: void foo(bar *p = NULL) {}
Reproducible: Always
Steps to Reproduce:
load a project that contains pointers initialized with '0'
Expected Results:
The real default parameter should be shown.
Besides, NULL or `0` is a matter of style, KDevelop should neither assume nor
enforce one or the other.
--
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