-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.4.1
-
None
-
Qt 4.7.4
kde 4.6.5
Debian squeeze
linux 3.2.0-2-686-pae
-
d811e7773f7d7431fe58fd997da1a3a15ba53f85 (qt-creator/qt-creator/master)
1. Make friend function declaration in class in *.h file
e.g.
class fooclass
{
public:
friend int foo();
};
2. Put cursor on declaration of friend int foo(), enter alt + enter and hit enter again to create a prototype in associated *.cpp file
3. It creates:
int fooclass::foo()
{
}
But must create:
int foo()
{
}
Where you can see the confirmation:
https://en.wikipedia.org/wiki/Friend_function
http://www.cplusplus.com/doc/tutorial/inheritance/
- is duplicated by
-
QTCREATORBUG-16002 "Add definition in Class.cpp" for friend functions tries to define function as memberfunction
-
- Closed
-