Does Moc uses handwritten C++ parser ?
Unsolved
Qt Creator and other tools
-
It's a hand-written parser. It doesn't need to understand all of C++ though, because it's only interested in class declarations etc.
As @jsulm pointed out, it's open source, see https://code.qt.io/cgit/qt/qtbase.git/tree/src/tools/moc :)