You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2019. It is now read-only.
= File "class.cpp", line 3, column 8, charpos = 31
around = 'SLOT', whole content = public SLOT:
ERROR-RECOV: found sync '}' at line 5
ERROR-RECOV: found sync bis, eating } and ;
badcount: 4
bad: #define SLOT
bad: class A {
BAD:!!!!! public SLOT:
bad: void foo(int);
bad: };
This is "normal". The C/C++ parser in pfff try to parse as-is the
source code, without calling first cpp, The C preprocessor. The reason
is that in a refactoring context, you can not call cpp because cpp
then expand all the macros and ifdefs which is a representation of the
original source code that is not convenient to work on. Indeed
modifying the expanded code with a refactoring would not easily back
propagate to the original source (before expansion). To still be
usable, the C++ parser recognize a few macros idioms such as FOR_EACH,
attributes, etc. This is documented here:
http://padator.org/papers/yacfe-cc09.pdf