3 ms·
Overall this seems good. The lack of modules in C/C++ is a huge pain. The "link" section seems like a really leaky abstraction, though. module ClangAST {
by dpark 14y ago
Overall this seems good. The lack of modules in C/C++ is a huge pain. The "link" section seems like a really leaky abstraction, though.
module ClangAST {
umbrella header “AST/AST.h”
module * { }
link “-lclangAST”
}
This hardcodes an implementation-specific syntax and yet says nothing meaningful. Drop the "-l" and you're just restating the name of the module.
What value is there in baking a command-line flag into the module definition?
P.S. I also find it strange that something intended to blend with C/C++ doesn't use semi-colons. This is just stylistic, though.