Apply clang-format
This commit is contained in:
parent
213c823f87
commit
e25866c904
|
@ -472,23 +472,23 @@ static bool containsUnprintableCharacters(std::string_view value)
|
|||
return false;
|
||||
}
|
||||
|
||||
#define CHECK_FIELD_EMPTY(field) \
|
||||
if (field.empty()) { \
|
||||
problems.emplace_back(#field " is empty"); \
|
||||
#define CHECK_FIELD_EMPTY(field) \
|
||||
if (field.empty()) { \
|
||||
problems.emplace_back(#field " is empty"); \
|
||||
}
|
||||
#define CHECK_FIELD_FOR_UNEXPECTED_CHARS(field) \
|
||||
if (containsUnexpectedCharacters(field)) { \
|
||||
problems.emplace_back(#field " contains unexpected characters"); \
|
||||
#define CHECK_FIELD_FOR_UNEXPECTED_CHARS(field) \
|
||||
if (containsUnexpectedCharacters(field)) { \
|
||||
problems.emplace_back(#field " contains unexpected characters"); \
|
||||
}
|
||||
#define CHECK_FIELD_FOR_UNPRINTABLE_CHARS(field) \
|
||||
if (containsUnprintableCharacters(field)) { \
|
||||
problems.emplace_back(#field " contains unprintable or non-ASCII characters"); \
|
||||
#define CHECK_FIELD_FOR_UNPRINTABLE_CHARS(field) \
|
||||
if (containsUnprintableCharacters(field)) { \
|
||||
problems.emplace_back(#field " contains unprintable or non-ASCII characters"); \
|
||||
}
|
||||
#define CHECK_FIELD_STRICT(field) \
|
||||
CHECK_FIELD_EMPTY(field) \
|
||||
#define CHECK_FIELD_STRICT(field) \
|
||||
CHECK_FIELD_EMPTY(field) \
|
||||
CHECK_FIELD_FOR_UNEXPECTED_CHARS(field)
|
||||
#define CHECK_FIELD_RELAXED(field) \
|
||||
CHECK_FIELD_EMPTY(field) \
|
||||
#define CHECK_FIELD_RELAXED(field) \
|
||||
CHECK_FIELD_EMPTY(field) \
|
||||
CHECK_FIELD_FOR_UNPRINTABLE_CHARS(field)
|
||||
|
||||
/*!
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <string_view>
|
||||
|
|
Loading…
Reference in New Issue