summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 17:54:23 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 18:01:12 +0100
commit8a7f76e7a1b404dc7f703d09d724defaee9e4238 (patch)
tree6bafc5ca77048bb5ab2acf4089c38be7e32e42bd /src/util.h
parentca439c62d35d587c90230894ec0d1b002ba8c639 (diff)
Extend target_type deduction based on filename extension and move to utils.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util.h b/src/util.h
index c7318aa..45f69d4 100644
--- a/src/util.h
+++ b/src/util.h
@@ -8,6 +8,8 @@
#include <string>
#include <filesystem>
+std::string to_lower(const std::string& str);
+
std::string readFile(const std::string& fileName);
std::vector<std::string> readDeps(const std::string& depFile);
ctor::language languageFromExtension(const std::filesystem::path& file);
@@ -19,7 +21,4 @@ void append(T& a, const T& b)
a.insert(a.end(), b.begin(), b.end());
}
-//using cxx_flags = std::vector<ctor::cxx_flag>;
-//using c_flags = std::vector<std::string>;
-//using ld_flags= std::vector<std::string>;
-//using asm_flags = std::vector<std::string>;
+ctor::target_type target_type_from_extension(const std::filesystem::path& file);