Qt has #define slots in some header; so to the cpmpiler, the translation unit looks like:
1 2 3 4 5
class SomeClass : QSomeOtherClass
The token slots is used by the meta object compiler to generate extra code (for signal definitions). Qt is riddled with horrible kludges of this kind; probably written long ago, before meta-programming became mainstream C++.