[kdevelop] [Bug 359948] Feature to rename preprocessor definitions

2016-09-10 Thread Alexander Potashev via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359948

Alexander Potashev  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---
 Ever confirmed|0   |1

--- Comment #2 from Alexander Potashev  ---
It depends on the order of #define and #ifndef.

1. I confirms it works in your scenario:
#define FOO
#ifndef FOO

2. When I first do #ifndef FOO and try to right-click on "#define FOO" to
rename and perform the renaming, KDevelop renames only the identifier in the
"#define FOO" line.

3. When I write the same code (#ifndef FOO, then #define FOO) and right-click
on the #ifndef FOO line, there is not "Rename [...]" item in the context menu
at all.

-- 
You are receiving this mail because:
You are watching all bug changes.


[kdevelop] [Bug 359948] Feature to rename preprocessor definitions

2016-09-08 Thread Kevin Funk via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=359948

Kevin Funk  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Kevin Funk  ---
Actually this works for me. Can you try again?

Code:
#define FOO
#ifndef FOO

#endif

I then renamed the first occurence of 'FOO' to 'FOO1' => both uses got renamed.

-- 
You are receiving this mail because:
You are watching all bug changes.