Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Please let CC to support the global namepace
Loaden:
--- Code: ---#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
::Mess // HERE,no-work. if not use global namespace, it's work fine.
return 0;
}
--- End code ---
I try to add a rule, and adding this rules, and CB not start now.
--- Code: --- <::>
<![CDATA[]]>
</::>
--- End code ---
blueshake:
Patch for it. :D
--- Code: ---Index: src/plugins/codecompletion/nativeparser.cpp
===================================================================
--- src/plugins/codecompletion/nativeparser.cpp (revision 6089)
+++ src/plugins/codecompletion/nativeparser.cpp (working copy)
@@ -1638,9 +1638,9 @@
}
Manager::Get()->GetLogManager()->DebugLog(F(_T("BreakUpComponents() Found component: '%s' (%s)"), tok.wx_str(), tokenTypeString.wx_str()));
}
+ if (tok.Length() != 0 || tokenType == pttSearchText)
+ components.push(pc);
- components.push(pc);
-
if (tokenType == pttSearchText)
break;
}
--- End code ---
see the screen shot.
welcome to test it.
[attachment deleted by admin]
Loaden:
Yes, it works well Thank you very much!
But there is a small problem, see the picture prompts.
[attachment deleted by admin]
Loaden:
All other tests are good.
[attachment deleted by admin]
blueshake:
ok,I will continue to improve it.
Navigation
[0] Message Index
[#] Next page
Go to full version