#794 Invalid friend detection in C++ source

open
nobody
Filetypes (68)
5
2011-12-07
2011-12-07
Anonymous
No

Geany should ignore lines like: "friend class ClassName;"

You can try this C++ code:

class ClassA{

class ClassB{
//friend class ClassA;
};

void MethodA();
};

void ClassA::MethodA()
{
//SYMBOLS DETECT THIS METHOD OK
}

class ClassC{

class ClassD{
friend class ClassC;
};

void MethodB();
};

void ClassC::MethodB()
{
//SYMBOLS DETECT THIS METHOD BAD
}

Discussion

  • Bug Screen

     
    Attachments