apply clang-format to all headers with some exceptions

This commit is contained in:
Axel Kohlmeyer
2021-05-14 19:16:07 -04:00
parent 60e41a90c2
commit 7fcd449864
1651 changed files with 15108 additions and 15948 deletions

View File

@ -26,36 +26,38 @@ class Error : protected Pointers {
public:
Error(class LAMMPS *);
[[ noreturn ]] void universe_all(const std::string &, int, const std::string &);
[[ noreturn ]] void universe_one(const std::string &, int, const std::string &);
[[noreturn]] void universe_all(const std::string &, int, const std::string &);
[[noreturn]] void universe_one(const std::string &, int, const std::string &);
void universe_warn(const std::string &, int, const std::string &);
[[ noreturn ]] void all(const std::string &, int, const std::string &);
[[noreturn]] void all(const std::string &, int, const std::string &);
template <typename S, typename... Args>
void all(const std::string &file, int line, const S &format,
Args&&... args) {
void all(const std::string &file, int line, const S &format, Args &&...args)
{
_all(file, line, format, fmt::make_args_checked<Args...>(format, args...));
}
[[ noreturn ]] void one(const std::string &, int, const std::string &);
[[noreturn]] void one(const std::string &, int, const std::string &);
template <typename S, typename... Args>
void one(const std::string &file, int line, const S &format,
Args&&... args) {
void one(const std::string &file, int line, const S &format, Args &&...args)
{
_one(file, line, format, fmt::make_args_checked<Args...>(format, args...));
}
void warning(const std::string &, int, const std::string &);
template <typename S, typename... Args>
void warning(const std::string &file, int line, const S &format, Args&&... args) {
void warning(const std::string &file, int line, const S &format, Args &&...args)
{
_warning(file, line, format, fmt::make_args_checked<Args...>(format, args...));
}
void message(const std::string &, int, const std::string &);
template <typename S, typename... Args>
void message(const std::string &file, int line, const S &format, Args&&... args) {
void message(const std::string &file, int line, const S &format, Args &&...args)
{
_message(file, line, format, fmt::make_args_checked<Args...>(format, args...));
}
[[ noreturn ]] void done(int = 0); // 1 would be fully backwards compatible
[[noreturn]] void done(int = 0); // 1 would be fully backwards compatible
int get_numwarn() const { return numwarn; }
int get_maxwarn() const { return maxwarn; }
@ -76,15 +78,13 @@ class Error : protected Pointers {
private:
int numwarn, maxwarn, allwarn;
// internal versions that accept explicit fmtlib arguments
[[ noreturn ]] void _all(const std::string &, int, fmt::string_view,
fmt::format_args args);
[[ noreturn ]] void _one(const std::string &, int, fmt::string_view,
fmt::format_args args);
[[noreturn]] void _all(const std::string &, int, fmt::string_view, fmt::format_args args);
[[noreturn]] void _one(const std::string &, int, fmt::string_view, fmt::format_args args);
void _warning(const std::string &, int, fmt::string_view, fmt::format_args args);
void _message(const std::string &, int, fmt::string_view, fmt::format_args args);
};
}
} // namespace LAMMPS_NS
#endif