summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 17:55:39 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-11 17:55:39 +0100
commit10dc0902c22ae931fe51c36ea8fc6d2453819477 (patch)
tree0b66071313e48e61ad02e58010e3f3dfda8e4b34 /src/util.cc
parent75d1fa7244b9c5cddae056a281f457dd1e81cfb2 (diff)
Rename Language::Xyz to language::xyz
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.cc b/src/util.cc
index 47cb5c4..f25b7eb 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -82,12 +82,12 @@ std::vector<std::string> readDeps(const std::string& depFile)
return output;
}
-Language languageFromExtension(const std::filesystem::path& file)
+ctor::language languageFromExtension(const std::filesystem::path& file)
{
auto ext = file.extension().string();
if(ext == ".c")
{
- return Language::C;
+ return ctor::language::c;
}
if(ext == ".C" ||
@@ -98,14 +98,14 @@ Language languageFromExtension(const std::filesystem::path& file)
ext == ".cp" ||
ext == ".cxx")
{
- return Language::Cpp;
+ return ctor::language::cpp;
}
if(ext == ".s" ||
ext == ".S" ||
ext == ".asm")
{
- return Language::Asm;
+ return ctor::language::assembler;
}
std::cerr << "Could not deduce language from " << file.string() << "\n";