From 922412f5dc975b423757c1e248eac2813e48acb2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 10 Oct 2021 18:57:13 +0200 Subject: Move some common functions to util.cc --- src/util.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/util.h (limited to 'src/util.h') 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 +#include + +std::string readFile(const std::string& fileName); +std::vector readDeps(const std::string& depFile); +Language languageFromExtension(const std::filesystem::path& file); -- cgit v1.2.3