Fixed formatting
This commit is contained in:
@@ -137,7 +137,8 @@ public:
|
|||||||
|
|
||||||
void generate_alias(const enum_ &e, std::ostream &ostr) const
|
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;
|
ostr << "\" as " << e.alias() << std::endl;
|
||||||
}
|
}
|
||||||
@@ -273,8 +274,7 @@ public:
|
|||||||
|
|
||||||
void generate(const enum_ &e, std::ostream &ostr) const
|
void generate(const enum_ &e, std::ostream &ostr) const
|
||||||
{
|
{
|
||||||
ostr << "enum " << e.alias() << " {"
|
ostr << "enum " << e.alias() << " {" << std::endl;
|
||||||
<< std::endl;
|
|
||||||
|
|
||||||
for (const auto &enum_constant : e.constants) {
|
for (const auto &enum_constant : e.constants) {
|
||||||
ostr << enum_constant << std::endl;
|
ostr << enum_constant << std::endl;
|
||||||
|
|||||||
@@ -251,7 +251,6 @@ struct enum_ : public element {
|
|||||||
|
|
||||||
return ostr.str();
|
return ostr.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct diagram {
|
struct diagram {
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ std::string trim(const std::string &s);
|
|||||||
#define __FILENAME__ \
|
#define __FILENAME__ \
|
||||||
(strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
(strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||||
|
|
||||||
#define LOG_ERROR(fmt__, ...) \
|
#define LOG_ERROR(fmt__, ...) \
|
||||||
spdlog::error(std::string("[{}:{}] ") + fmt__, __FILENAME__, __LINE__, \
|
spdlog::error(std::string("[{}:{}] ") + fmt__, __FILENAME__, __LINE__, \
|
||||||
##__VA_ARGS__)
|
##__VA_ARGS__)
|
||||||
|
|
||||||
#define LOG_WARN(fmt__, ...) \
|
#define LOG_WARN(fmt__, ...) \
|
||||||
|
|||||||
Reference in New Issue
Block a user