Testing nested C++ notation. The current version of lxr intentionally

ignores nested identifiers which results in unhappy end users.
This commit is contained in:
timeless%mozdev.org 2006-09-10 10:03:43 +00:00
Родитель bd42504eb8
Коммит 8acc6214a1
2 изменённых файлов: 45 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,12 @@
/**
* Have you ever wondered what it takes to become an identifier?
*/
void this_should_probably_be_an_identifier(void)
{
}
#define BLAH void
BLAH this_should_probably_be_an_identifier_too(BLAH)
{
}

Просмотреть файл

@ -0,0 +1,33 @@
/**
* Have you ever wondered what it takes to become an identifier?
*/
class this_is_a_class {
void this_method_should_probably_be_an_identifier()
{
}
};
class outer_class {
class inner_class {
struct sucky {
} ness;
union bleck {
int thing;
char eep;
} ery;
};
};
class _inner_class {
};
struct sucky_ {
} ness_;
union bleck_ {
int thing_;
char eep_;
} ery_;