summaryrefslogtreecommitdiff
path: root/src/util.h
blob: 0cb01ce2a95066f5e1aa65e499ab4ad3e00a25cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// -*- c++ -*-
// Distributed under the BSD 2-Clause License.
// See accompanying file LICENSE for details.
#pragma once

#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);
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());
}