Bug #12325 2007-11-04 02:35
chouquette
'this' keyword not always working
Hi,
I'm using codeblocks from svn, currently under rev 4592.
The bug I encountered is the following :
On a empty c++ project or a QT project, when I create a class in a namespace, i cannot use code completion on "this" pointer.
Here is my test code :
test.h :
#ifndef TESTNAMESPACE_H__
#define TESTNAMESPACE_H__
namespace TestNamespace
{
class Test
{
public:
Test();
void bar();
private:
int foo;
};
}
#endif //TESTNAMESPACE_H__
test.cpp :
#include "test.h"
TestNamespace::Test::Test()
{
;
}
void TestNamespace::Test::bar()
{
this-> //here is the completion's bug
}
So far, I encountered 2 cases :
With "using namespace Test;", completion on 'this' gives me the class name, then its content. in this exemple, this means this->Test->foo
With TestNamespace::Test, i can't have any proposition on 'this'
Hope this helped.
(Sorry for my english :( )
- Category
- Plugin::CodeCompletion
- Group
- Status
- Closed
- Close date
- 2010-10-15 13:43
- Assigned to
- loaden
History
Please pick the summary text carefully next time...
This bug has been already fixed in HEAD.
Thank you.