aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/CodegenUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/20-codegen-compiler/CodegenUtils.hpp')
-rw-r--r--source/20-codegen-compiler/CodegenUtils.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/20-codegen-compiler/CodegenUtils.hpp b/source/20-codegen-compiler/CodegenUtils.hpp
index be62f1e..2d5b684 100644
--- a/source/20-codegen-compiler/CodegenUtils.hpp
+++ b/source/20-codegen-compiler/CodegenUtils.hpp
@@ -5,6 +5,7 @@
#include "CodegenOutput.hpp"
#include <algorithm>
+#include <string>
#include <string_view>
// I give up, hopefully nothing overflows this buffer
@@ -44,7 +45,10 @@ namespace Utils {
bool WriteOutputFile(const CodegenOutput& output, const char* path);
+std::string JoinNames(DeclNamespace* ns, std::string_view prefix, std::string_view suffix, std::string_view delimiter);
std::string MakeFullName(std::string_view name, DeclNamespace* ns = nullptr);
+std::string MakeMangledName(std::string_view name, DeclNamespace* ns = nullptr);
+
std::vector<std::string_view> SplitIdentifier(std::string_view name);
std::string MakePascalCase(std::string_view name);