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 c868336 commit 5dc7c47Copy full SHA for 5dc7c47
clang-tools-extra/clang-tidy/portability/AvoidPlatformSpecificFundamentalTypesCheck.cpp
@@ -19,8 +19,7 @@ namespace {
19
20
AST_MATCHER(clang::QualType, isBuiltinInt) {
21
const auto *BT = Node->getAs<clang::BuiltinType>();
22
- if (!BT)
23
- return false;
+ assert(BT);
24
25
// BT->isInteger() would detect char and bool
26
switch (BT->getKind()) {
@@ -40,8 +39,7 @@ AST_MATCHER(clang::QualType, isBuiltinInt) {
40
39
41
AST_MATCHER(clang::QualType, isBuiltinFloat) {
42
43
44
45
46
return BT->isFloatingPoint();
47
}
0 commit comments