summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index dc9cd41..c7318aa 100644
--- a/src/util.h
+++ b/src/util.h
@@ -3,11 +3,23 @@
// See accompanying file LICENSE for details.
#pragma once
-#include "libctor.h"
+#include "ctor.h"
#include <string>
#include <filesystem>
std::string readFile(const std::string& fileName);
std::vector<std::string> readDeps(const std::string& depFile);
-Language languageFromExtension(const std::filesystem::path& file);
+ctor::language languageFromExtension(const std::filesystem::path& file);
+std::string cleanUp(const std::string& path);
+
+template<typename T>
+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>;