Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

codecompletion suggestion list

(1/3) > >>

blueshake:
i found a problem on cc suggestion list .
here is the codes.
for the variable stt, the suggestion list have no
member funciton operator = ,operator +,see the attachment snap1
and the class tree have these function .see the attachment snap2.
anyone has comment on this.


--- Code: ---#include <iostream>

using namespace std;
class Strings{
public:
 Strings();
 Strings(char *s);
 Strings(const Strings &s);
 Strings& operator = (const Strings& s){
 };
 Strings& operator + (const Strings& s){
 };
 Strings& operator + (const  char *s){
 };
 ~Strings(){
  if(str != NULL)
   delete [] str;
 cout<<"~Strings() is called"<<endl;
 }
 void display(){
 };
private:
 char *str;
};
Strings stt;
stt.|
int main()
{

    cout << "Hello world!" << endl;
    return 0;
}

--- End code ---


[attachment deleted by admin]

ollydbg:
OK, I can confirm.

Operator + and operator = were shown correctly in the Symbols tree.

But I think we don't need to show the operator after stt.. :D

MortenMacFly:
...another gotcha (I just found out):

If you open: filemanager.cpp
You'll realise that the CC stops parsing at:

--- Code: ---LoaderBase* FileManager::Load(const wxString& file, bool reuseEditors)
--- End code ---
All other functions like e.g.:

--- Code: ---bool FileManager::ReplaceFile(const wxString& old_file, const wxString& new_file)
--- End code ---
...are not in the list in the toolbar

blueshake:

--- Quote ---bool FileManager::ReplaceFile(const wxString& old_file, const wxString& new_file)
--- End quote ---
this function is in my toolbar.see my attachment.

[attachment deleted by admin]

MortenMacFly:

--- Quote from: blueshake on August 29, 2009, 06:47:12 am ---
--- Quote ---bool FileManager::ReplaceFile(const wxString& old_file, const wxString& new_file)
--- End quote ---
this function is in my toolbar.see my attachment.

--- End quote ---
...ok...?! :shock:
For me it's really not. Could your provide me with a patch of your whole codecompletion plugin based on the current codecompletion_refactoring branch?

Navigation

[0] Message Index

[#] Next page

Go to full version