summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 18:57:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 18:57:13 +0200
commit922412f5dc975b423757c1e248eac2813e48acb2 (patch)
treea3b15d185627d3c8b845beadee603c44b263e1d0 /src/util.h
parente73ee708292aac55070701ff0157db4eab6c06f4 (diff)
Move some common functions to util.cc
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..dc9cd41
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,13 @@
+// -*- c++ -*-
+// Distributed under the BSD 2-Clause License.
+// See accompanying file LICENSE for details.
+#pragma once
+
+#include "libctor.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);