Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Patch: function arguments added to autocomplete tooltip
MortenMacFly:
--- Quote from: p2rkw on January 17, 2013, 01:14:09 am ---It will be nice.
Actually I added auto hide to documentation window. It's only few lines of code, but makes this window much less annoying.
--- End quote ---
Update the patch, I can integrate. I'll provide a refined one after that. Otherwise we move in circles.. ;-)
p2rkw:
--- Quote from: MortenMacFly on January 17, 2013, 04:17:37 pm ---Update the patch
--- End quote ---
Done.
ollydbg:
--- Quote from: Alpha on December 08, 2012, 12:20:00 am ---Slightly unrelated, but I thought I would mention that if one can get the Scintilla lexers to run invisibly (for files not currently open), a relatively simple language independent comment parser can be created with cbStyledTextCtrl::IsComment().
--- End quote ---
@Alpha, in plugins\codecompletion\coderefactoring.cpp, function
size_t CodeRefactoring::SearchInFiles(const wxArrayString& files, const wxString& targetText)
There is some usage of an invisible cbStyledTextCtrl, and fill it with the text, and I think later use cbStyledTextCtrl::IsXXXX() to check styles. EDIT: I'm not look deep into p2rkw's patch, but I think using a invisible cbStyledTextCtrl is an alternative way to catch document strings on the fly.
@All:
I'm looking forward to see the updated patch against SVN HEAD :).
Also:
"return wxString();"should use wxEmptyString, right?
MortenMacFly:
--- Quote from: ollydbg on March 01, 2013, 07:57:07 am ---Also:
"return wxString();"should use wxEmptyString, right?
--- End quote ---
Yes, I've done all such adjustments already in my local copy. I still need to merge and sort out from/with trunk as there have been many CC related changes recently. If I find the time for that I can provide a cleaned-up patch. The patch in the patch-tracker if of no use anymore. Hence it also doesn't make sense for p2rkw to work on that - I've done it already, just not to public. I am still on it - its not lost... don't worry.
Alpha:
@p2rkw: How difficult would it be to extend the parser to accept comments on more complicated declarations, ex. the following from stl:
--- Code: --- /**
* @brief This does what you think it does.
* @ingroup sorting_algorithms
* @param a A thing of arbitrary type.
* @param b Another thing of arbitrary type.
* @return The lesser of the parameters.
*
* This is the simple classic generic implementation. It will work on
* temporary expressions, since they are only evaluated once, unlike a
* preprocessor macro.
*/
template<typename _Tp>
inline const _Tp&
min(const _Tp& __a, const _Tp& __b)
{
// concept requirements
__glibcxx_function_requires(_LessThanComparableConcept<_Tp>)
//return __b < __a ? __b : __a;
if (__b < __a)
return __b;
return __a;
}
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version