From 10dc0902c22ae931fe51c36ea8fc6d2453819477 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 11 Jan 2023 17:55:39 +0100 Subject: Rename Language::Xyz to language::xyz --- src/ctor.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index 2fefac3..dbcfa66 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -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{}; }; -- cgit v1.2.3