4 ms·
If you think that's bad, just representing C++, not even parsing it, in Clang, takes 61K lines of headers! If you look at these files it's mostly declarations
by chubot 10y ago
If you think that's bad, just representing C++, not even parsing it, in Clang, takes 61K lines of headers!
If you look at these files it's mostly declarations and one-line functions. It's not even doing anything. The lexers and parsers are a whole other story, certainly greater than 19K lines combined.
~/src/cfe-3.8.0.src/include/clang/AST$ wc -l *.h
2742 DeclObjC.h
2809 RecursiveASTVisitor.h
2927 DeclTemplate.h
3198 OpenMPClause.h
3249 DeclCXX.h
3800 Decl.h
4154 ExprCXX.h
4942 Expr.h
5723 Type.h
61525 total