From ae1871ca0ffcac3e8bd337f8d8bb4e7fd6c59295 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 10 Jul 2022 17:24:16 +0200 Subject: Make tools abstraction around compiler options to better support tool agnostic arguments. --- src/util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index d164fbf..c8b591a 100644 --- a/src/util.h +++ b/src/util.h @@ -12,3 +12,9 @@ std::string readFile(const std::string& fileName); std::vector readDeps(const std::string& depFile); Language languageFromExtension(const std::filesystem::path& file); std::string cleanUp(const std::string& path); + +template +void append(T& a, const T& b) +{ + a.insert(a.end(), b.begin(), b.end()); +} -- cgit v1.2.3