formatter: add tree-sitter dependency and commit early draft work on a proper code formatter (#2536)

This commit is contained in:
Tyler Wilding
2023-04-24 22:46:55 -05:00
committed by GitHub
parent 83f43b7153
commit 0ffb912a04
385 changed files with 71427 additions and 28 deletions
+4 -4
View File
@@ -47,11 +47,11 @@ std::vector<std::string> valid_game_version_names() {
}
std::string build_revision() {
if (BUILT_TAG != "") {
return BUILT_TAG;
if (std::string(BUILT_TAG) != "") {
return std::string(BUILT_TAG);
}
if (BUILT_SHA != "") {
return BUILT_SHA;
if (std::string(BUILT_SHA) != "") {
return std::string(BUILT_SHA);
}
return "Unknown Revision";
}