diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:55:39 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:55:39 +0100 |
commit | 10dc0902c22ae931fe51c36ea8fc6d2453819477 (patch) | |
tree | 0b66071313e48e61ad02e58010e3f3dfda8e4b34 /src/ctor.h | |
parent | 75d1fa7244b9c5cddae056a281f457dd1e81cfb2 (diff) |
Rename Language::Xyz to language::xyz
Diffstat (limited to 'src/ctor.h')
-rw-r--r-- | src/ctor.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -26,13 +26,13 @@ enum class target_type function, }; -enum class Language +enum class language { - Auto, // Default - deduce language from source extensions + automatic, // Default - deduce language from source extensions - C, - Cpp, - Asm, + c, + cpp, + assembler, }; enum class OutputSystem @@ -45,16 +45,16 @@ struct Source { Source(const char* file) : file(file) {} Source(const std::string& file) : file(file) {} - Source(const char* file, Language lang) : file(file), language(lang) {} - Source(const std::string& file, Language lang) : file(file), language(lang) {} + Source(const char* file, ctor::language lang) : file(file), language(lang) {} + Source(const std::string& file, ctor::language lang) : file(file), language(lang) {} Source(const char* file, const char* output) : file(file), output(output) {} Source(const std::string& file, const std::string& output) : file(file), output(output) {} - Source(const char* file, Language lang, const char* output) : file(file), language(lang), output(output) {} - Source(const std::string& file, Language lang, const std::string& output) : file(file), language(lang), output(output) {} + Source(const char* file, ctor::language lang, const char* output) : file(file), language(lang), output(output) {} + Source(const std::string& file, ctor::language lang, const std::string& output) : file(file), language(lang), output(output) {} std::string file; - Language language{Language::Auto}; + ctor::language language{ctor::language::automatic}; std::string output{}; }; |