Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Tooltip is displayed incorrectly

<< < (2/3) > >>

ollydbg:
I just test the code:

--- Code: ---template<class Int_T, Int_T Min_Range,
         Int_T Max_Range>
class Int
{};

Int < signed char > aaaa;
--- End code ---

Then hover on the "aaaa", it looks like it will show "Int<signedchar>", so it is a bug!!

I will take some time to check it. Thanks for the report!!!

smallB:
Thanks! It's great feeling that I can contribute in my tiny way to make this great IDE even better.

ollydbg:
The patch should fix your problem.

--- Code: ---Index: E:/code/cb/cb_trunk/src/plugins/codecompletion/parser/parserthread.cpp
===================================================================
--- E:/code/cb/cb_trunk/src/plugins/codecompletion/parser/parserthread.cpp (revision 7535)
+++ E:/code/cb/cb_trunk/src/plugins/codecompletion/parser/parserthread.cpp (working copy)
@@ -2646,6 +2646,7 @@
         else if (tmp==ParserConsts::gt)
         {
             --nestLvl;
+            m_TemplateArgument.Trim();
             m_TemplateArgument << tmp;
         }
         else if (tmp==ParserConsts::semicolon)
@@ -2658,7 +2659,7 @@
         else if (tmp.IsEmpty())
             break;
         else
-            m_TemplateArgument << tmp;
+            m_TemplateArgument << tmp <<_T(" ");
         if (nestLvl <= 0)
             break;
     }

--- End code ---

BTW:
If you write the code: (No need to write some "template" declaration)

--- Code: ---AAA< CCC DDD> EEE;

--- End code ---
Then, "EEEE" will be recognized as a variable, and "AAA< CCC DDD>" will be its type string.

smallB:
@ollydbg Hi,  thanks for this patch. This will be probably sounds strange to you but I have absolutely no idea what to do with this patch you've provided. Would you mind telling me next steps?
Thanks

ollydbg:

--- Quote from: smallB on October 29, 2011, 01:09:25 pm ---Would you mind telling me next steps?

--- End quote ---
Check out the codeblocks' source code, then you can apply my patch on the source, and later build the codeblocks yourself under Windows.

There are some wiki, see:
Installing Code::Blocks from source on Windows - CodeBlocks, follow the steps and it was easy. :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version