[cfe-dev] RFC: Clang driver redesign (round 2)
alex at declera.com
Tue Nov 8 06:10:59 CST 2011
On 08.11.2011 13:23, James Molloy wrote:
> Many people want to have a configuration file that can do almost
> everything at invoke-time, but to cover all use cases that would
> require turing completeness and a full-on scripting language, which
> has been pooh-poohed already (and I don't agree with anyway).
The two can be combined I think - configuration for let say 90% of the
cases + scripting language loaded as optional plugin for the rest.
Regarding configurations flexibility: Usually there are antagonism
between the two polar structures of configuration trees: a) Structure
symmetrical to full internal representations (fast and simple
validation/loading/storing), z) Short, human-friendly DSL (possibly with
inheritances, aliases, etc). In many projects the problem is resolved
using additional tool which translates z) to a) on demand (only on z
change), using a) templates as base.
More information about the cfe-dev