Issue #508: Classprefix is not restored after nested structures processing. Also, Classprefix is incorrectly checked in some places.
This commit is contained in:
parent
350eff3687
commit
ec93b01a09
2 changed files with 17 additions and 5 deletions
|
|
@ -55,6 +55,10 @@
|
|||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
#endif
|
||||
|
||||
namespace bar {
|
||||
int foo() { return 0; }
|
||||
}
|
||||
|
||||
struct Outer {
|
||||
typedef int Integer;
|
||||
///////////////////////////////////////////
|
||||
|
|
@ -129,10 +133,16 @@ struct Outer {
|
|||
Integer x;
|
||||
} InnerClass4Typedef;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
int Outer::foo(){ return 1; } // should correctly ignore qualification here (#508)
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
Integer x;
|
||||
} InnerStruct4Typedef;
|
||||
|
||||
friend int bar::foo(); // should parse correctly (#508)
|
||||
|
||||
typedef union {
|
||||
Integer x;
|
||||
double y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue