Skip to content

Commit c695a65

Browse files
committed
Fix CQS signal readability-braces-around-statements in fbcode/aitemplate/AITemplate (#1037)
Summary: Pull Request resolved: facebookincubator/AITemplate#1037 Reviewed By: dtolnay Differential Revision: D78881409 fbshipit-source-id: 2eeae30fc2d12438def926ab2adf1a62cb85589a
1 parent 16abb4c commit c695a65

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

static/include/kernels/fmha_style_b2b_bmm/debug_utils.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ struct __string_view {
102102
template <class T>
103103
constexpr __string_view __get_type_name() {
104104
char const* p = __PRETTY_FUNCTION__;
105-
while (*p++ != '=')
105+
while (*p++ != '=') {
106106
;
107-
for (; *p == ' '; ++p)
107+
}
108+
for (; *p == ' '; ++p) {
108109
;
110+
}
109111
char const* p2 = p;
110112
int count = 1;
111113
for (;; ++p2) {
@@ -115,8 +117,9 @@ constexpr __string_view __get_type_name() {
115117
break;
116118
case ']':
117119
--count;
118-
if (!count)
120+
if (!count) {
119121
return {p, std::size_t(p2 - p)};
122+
}
120123
}
121124
}
122125
return {};

0 commit comments

Comments
 (0)