Applied google-readability-namespace-comments clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 21:57:06 +01:00
parent e8909c6fc1
commit f2760a5e21
124 changed files with 228 additions and 180 deletions

View File

@@ -91,4 +91,4 @@ void decorated_element::append(const decorated_element &de)
std::optional<comment_t> decorated_element::comment() const { return comment_; }
void decorated_element::set_comment(const comment_t &c) { comment_ = c; }
}
} // namespace clanguml::common::model

View File

@@ -61,4 +61,4 @@ private:
std::optional<comment_t> comment_;
};
}
} // namespace clanguml::common::model

View File

@@ -108,4 +108,4 @@ bool diagram::should_include(const common::model::source_file &f) const
return filter_->should_include(f);
}
}
} // namespace clanguml::common::model

View File

@@ -88,4 +88,4 @@ private:
};
template <typename DiagramT> bool check_diagram_type(diagram_t t);
}
} // namespace clanguml::common::model

View File

@@ -105,4 +105,4 @@ std::ostream &operator<<(std::ostream &out, const diagram_element &rhs)
return out;
}
}
} // namespace clanguml::common::model

View File

@@ -85,4 +85,4 @@ private:
static std::atomic_uint64_t m_nextId;
};
}
} // namespace clanguml::common::model

View File

@@ -612,4 +612,4 @@ bool diagram_filter::should_include<std::string>(const std::string &name) const
return should_include(ns, n);
}
}
} // namespace clanguml::common::model

View File

@@ -363,4 +363,4 @@ private:
template <>
bool diagram_filter::should_include<std::string>(const std::string &name) const;
}
} // namespace clanguml::common::model

View File

@@ -64,4 +64,4 @@ std::ostream &operator<<(std::ostream &out, const element &rhs)
return out;
}
}
} // namespace clanguml::common::model

View File

@@ -76,4 +76,4 @@ private:
namespace_ ns_;
namespace_ using_namespace_;
};
}
} // namespace clanguml::common::model

View File

@@ -133,4 +133,4 @@ std::string to_string(const diagram_t t)
}
}
}
} // namespace clanguml::common::model

View File

@@ -79,4 +79,4 @@ std::string to_string(message_t m);
std::string to_string(diagram_t r);
}
} // namespace clanguml::common::model

View File

@@ -50,4 +50,4 @@ template <> struct hash<clanguml::common::model::namespace_> {
}
};
}
} // namespace std

View File

@@ -171,4 +171,4 @@ private:
std::vector<std::unique_ptr<T>> elements_;
};
}
} // namespace clanguml::common::model

View File

@@ -40,4 +40,4 @@ bool package::is_deprecated() const { return is_deprecated_; }
void package::set_deprecated(bool deprecated) { is_deprecated_ = deprecated; }
}
} // namespace clanguml::common::model

View File

@@ -55,7 +55,7 @@ public:
private:
bool is_deprecated_{false};
};
}
} // namespace clanguml::common::model
namespace std {
template <>
@@ -69,4 +69,4 @@ struct hash<std::reference_wrapper<clanguml::common::model::package>> {
return std::hash<id_t>{}(key.get().id());
}
};
}
} // namespace std

View File

@@ -216,4 +216,4 @@ private:
container_type path_;
};
}
} // namespace clanguml::common::model

View File

@@ -82,4 +82,4 @@ bool operator==(const relationship &l, const relationship &r)
return l.type() == r.type() && l.destination() == r.destination() &&
l.label() == r.label();
}
}
} // namespace clanguml::common::model

View File

@@ -64,4 +64,4 @@ private:
std::string label_;
access_t access_;
};
}
} // namespace clanguml::common::model

View File

@@ -119,7 +119,7 @@ private:
source_file_t type_{source_file_t::kDirectory};
bool is_absolute_{false};
};
}
} // namespace clanguml::common::model
namespace std {
@@ -139,7 +139,7 @@ template <> struct hash<clanguml::common::model::filesystem_path> {
}
};
}
} // namespace std
namespace std {
template <>
@@ -153,4 +153,4 @@ struct hash<std::reference_wrapper<clanguml::common::model::source_file>> {
return std::hash<id_t>{}(key.get().id());
}
};
}
} // namespace std

View File

@@ -48,4 +48,4 @@ private:
unsigned int line_{0};
unsigned int hash_;
};
}
} // namespace clanguml::common::model

View File

@@ -30,4 +30,4 @@ private:
std::string style_;
};
}
} // namespace clanguml::common::model

View File

@@ -71,4 +71,4 @@ inline value_t any_of(InputIterator first, InputIterator last, Predicate pred)
return res;
}
};
} // namespace clanguml::common::model::tvl;