Fixed formatting

This commit is contained in:
Bartek Kryza
2021-05-22 14:11:27 +02:00
parent e1c6da5f2e
commit 1c44f73afd
3 changed files with 5 additions and 6 deletions

View File

@@ -137,7 +137,8 @@ public:
void generate_alias(const enum_ &e, std::ostream &ostr) const
{
ostr << "enum" << " \"" << e.full_name(m_config.using_namespace);
ostr << "enum"
<< " \"" << e.full_name(m_config.using_namespace);
ostr << "\" as " << e.alias() << std::endl;
}
@@ -273,8 +274,7 @@ public:
void generate(const enum_ &e, std::ostream &ostr) const
{
ostr << "enum " << e.alias() << " {"
<< std::endl;
ostr << "enum " << e.alias() << " {" << std::endl;
for (const auto &enum_constant : e.constants) {
ostr << enum_constant << std::endl;

View File

@@ -251,7 +251,6 @@ struct enum_ : public element {
return ostr.str();
}
};
struct diagram {

View File

@@ -34,8 +34,8 @@ std::string trim(const std::string &s);
#define __FILENAME__ \
(strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define LOG_ERROR(fmt__, ...) \
spdlog::error(std::string("[{}:{}] ") + fmt__, __FILENAME__, __LINE__, \
#define LOG_ERROR(fmt__, ...) \
spdlog::error(std::string("[{}:{}] ") + fmt__, __FILENAME__, __LINE__, \
##__VA_ARGS__)
#define LOG_WARN(fmt__, ...) \