Patch #2702 2009-02-23 14:53

ollydbg

Solved parsing Opencv pre-function macros
Download
2702-Solved_parsing.patch (769 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2009-08-24 07:33
Assigned to
mortenmacfly
Index: src/plugins/codecompletion/parser/parserthread.cpp
===================================================================
--- src/plugins/codecompletion/parser/parserthread.cpp    (revision 5469)
+++ src/plugins/codecompletion/parser/parserthread.cpp    (working copy)
@@ -593,7 +593,8 @@
                     (!m_pLastParent || m_pLastParent->m_Name != token)) // if func has same name as current scope (class)
                 {
                     m_Str.Clear();
-                    m_Tokenizer.GetToken(); // eat args ()
+                    wxString arg = m_Tokenizer.GetToken(); // eat args ()
+                    m_Str= arg.Mid(1,arg.Len()-2);
                 }
                 else if (peek.GetChar(0) == '(' && m_Options.handleFunctions)
                 {
ollydbg 2009-02-23 14:56

This patch can let codecompletion parse opencv function correctly.

see the forum message here:

http://forums.codeblocks.org/index.php/topic,10162.msg70404.html#msg70404