Skip to content

Commit f60bd33

Browse files
committed
format
1 parent c2ce474 commit f60bd33

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎cpp2rust/converter/converter.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,18 +454,18 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
454454
#define StrCat(...) _StrCat(__FUNCTION__, __LINE__, __VA_ARGS__)
455455

456456
inline bool is_empty(char c) { return false; }
457-
inline bool is_empty(const char* s) { return s == nullptr || *s == '\0'; }
458-
template <size_t N>
459-
inline bool is_empty(const char (&s)[N]) { return s[0] == '\0'; }
460-
template <typename T>
461-
inline bool is_empty(const T &s) { return s.empty(); }
457+
inline bool is_empty(const char *s) { return s == nullptr || *s == '\0'; }
458+
template <size_t N> inline bool is_empty(const char (&s)[N]) {
459+
return s[0] == '\0';
460+
}
461+
template <typename T> inline bool is_empty(const T &s) { return s.empty(); }
462462

463463
template <typename... Ts>
464464
inline void _StrCat(const char *func, int line, const Ts &...vals) {
465465
log() << '[' << func << ':' << line << "] ";
466-
((log() << vals << '\n',
467-
*rs_code_ += vals,
468-
(is_empty(vals) ? void() : void(*rs_code_ += ' '))), ...);
466+
((log() << vals << '\n', *rs_code_ += vals,
467+
(is_empty(vals) ? void() : void(*rs_code_ += ' '))),
468+
...);
469469
}
470470

471471
class Buffer {

0 commit comments

Comments
 (0)