Configures clang-format and clangd.
Runs clang-format on all c++ files.
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
#include "Clans.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace SBF {
|
||||
std::string GetClanLabel(int clanId) {
|
||||
if (clanId > 0 && clanId <= kClansCount) {
|
||||
return kClanLabels[clanId];
|
||||
}
|
||||
return "";
|
||||
if (clanId > 0 && clanId <= kClansCount) {
|
||||
return kClanLabels[clanId];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
void FillClanLabels(std::vector<std::string>& labels) {
|
||||
labels.clear();
|
||||
for (int id = 1; id <= kClansCount; id++) {
|
||||
labels.push_back(GetClanLabel(id));
|
||||
}
|
||||
labels.clear();
|
||||
for (int id = 1; id <= kClansCount; id++) {
|
||||
labels.push_back(GetClanLabel(id));
|
||||
}
|
||||
}
|
||||
} // End namespace SBF
|
||||
} // End namespace SBF
|
||||
|
||||
Reference in New Issue
Block a user