We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7c28c9 commit 2104952Copy full SHA for 2104952
clang-tools-extra/clang-tidy/portability/AvoidPlatformSpecificFundamentalTypesCheck.cpp
@@ -157,12 +157,13 @@ void AvoidPlatformSpecificFundamentalTypesCheck::check(
157
diag(Loc, "avoid using platform-dependent floating point type '%0'; "
158
"consider using a type alias or fixed-width type instead")
159
<< TypeName;
160
+ return;
161
}
162
163
auto Diag =
164
165
"consider using '%1' instead")
- << TypeName << Replacement;
166
+ << TypeName << Replacement.value();
167
168
if (TypeRange.isValid())
169
Diag << FixItHint::CreateReplacement(TypeRange, Replacement.value());
0 commit comments