зеркало из https://github.com/mozilla/pjs.git
Testing nested C++ notation. The current version of lxr intentionally
ignores nested identifiers which results in unhappy end users.
This commit is contained in:
Родитель
bd42504eb8
Коммит
8acc6214a1
|
@ -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_;
|
||||
|
Загрузка…
Ссылка в новой задаче