diff options
Diffstat (limited to 'build2/cc/types.hxx')
-rw-r--r-- | build2/cc/types.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build2/cc/types.hxx b/build2/cc/types.hxx index 3448827..3170942 100644 --- a/build2/cc/types.hxx +++ b/build2/cc/types.hxx @@ -32,9 +32,19 @@ namespace build2 module_imports imports; // Imported modules. }; + enum class translation_type {plain, module_iface, module_impl}; + struct translation_unit { module_info mod; + + translation_type + type () const + { + return (mod.name.empty () ? translation_type::plain : + mod.iface ? translation_type::module_iface + : translation_type::module_impl); + } }; // Compiler language. |