[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevelop/languages/cpp
From: Milian Wolff <mail () milianw ! de>
Date: 2010-03-30 11:43:53
Message-ID: 20100330114353.19105AC887 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1109029 by mwolff:
clear strings when looking for identifier under cursor, but only after we checked for \
an #include
this prevents the Macro-Tooltips been shown when one has something like
#define FOO;
const char* s = "FOO";
We might want to clear comments as well, but since we only operate on a single line \
(performance!), it won't work for multiline comments. But imo it's not a big deal \
considering one might document some feature and put the Macro into the comment.
M +3 -0 cpplanguagesupport.cpp
--- trunk/extragear/sdk/kdevelop/languages/cpp/cpplanguagesupport.cpp \
#1109028:1109029 @@ -459,6 +459,9 @@
return qMakePair( qMakePair(line, SimpleRange(lineNumber, start, lineNumber, \
lineLength)), QString() ); }
+ // not an include, if at all a Makro, hence clear strings
+ line = clearStrings(line);
+
int start = position.column;
int end = position.column;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic