mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
clang-tidy clang-analyzer-core.NonNullParamChecker
This commit is contained in:
+4
-4
@@ -22,7 +22,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
|
|||||||
## TODO: fix code and enable # clang-analyzer-core.CallAndMessage,
|
## TODO: fix code and enable # clang-analyzer-core.CallAndMessage,
|
||||||
clang-analyzer-core.DivideZero,
|
clang-analyzer-core.DivideZero,
|
||||||
clang-analyzer-core.DynamicTypePropagation,
|
clang-analyzer-core.DynamicTypePropagation,
|
||||||
## TODO: fix code and enable # clang-analyzer-core.NonNullParamChecker,
|
clang-analyzer-core.NonNullParamChecker,
|
||||||
## TODO: fix code and enable # clang-analyzer-core.NullDereference,
|
## TODO: fix code and enable # clang-analyzer-core.NullDereference,
|
||||||
clang-analyzer-core.StackAddressEscape,
|
clang-analyzer-core.StackAddressEscape,
|
||||||
#clang-analyzer-core.UndefinedBinaryOperatorResult,
|
#clang-analyzer-core.UndefinedBinaryOperatorResult,
|
||||||
@@ -41,7 +41,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
|
|||||||
clang-analyzer-nullability.NullablePassedToNonnull,
|
clang-analyzer-nullability.NullablePassedToNonnull,
|
||||||
clang-analyzer-nullability.NullableReturnedFromNonnull,
|
clang-analyzer-nullability.NullableReturnedFromNonnull,
|
||||||
clang-analyzer-nullability.NullPassedToNonnull,
|
clang-analyzer-nullability.NullPassedToNonnull,
|
||||||
## TODO: fix code and enable # clang-analyzer-nullability.NullReturnedFromNonnull,
|
clang-analyzer-nullability.NullReturnedFromNonnull,
|
||||||
## evaluate # clang-analyzer-optin.cplusplus.VirtualCall,
|
## evaluate # clang-analyzer-optin.cplusplus.VirtualCall,
|
||||||
## TODO: fix code and enable # clang-analyzer-optin.performance.Padding,
|
## TODO: fix code and enable # clang-analyzer-optin.performance.Padding,
|
||||||
## TODO: fix code and enable # clang-analyzer-security.FloatLoopCounter,
|
## TODO: fix code and enable # clang-analyzer-security.FloatLoopCounter,
|
||||||
@@ -64,14 +64,14 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,
|
|||||||
cppcoreguidelines-c-copy-assignment-signature,
|
cppcoreguidelines-c-copy-assignment-signature,
|
||||||
#cppcoreguidelines-interfaces-global-init,
|
#cppcoreguidelines-interfaces-global-init,
|
||||||
#cppcoreguidelines-no-malloc,
|
#cppcoreguidelines-no-malloc,
|
||||||
## TODO: fix code and enable # cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
#cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
||||||
#cppcoreguidelines-pro-bounds-constant-array-index,
|
#cppcoreguidelines-pro-bounds-constant-array-index,
|
||||||
#cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
#cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
||||||
## TODO: fix code and enable # cppcoreguidelines-pro-type-const-cast,
|
## TODO: fix code and enable # cppcoreguidelines-pro-type-const-cast,
|
||||||
#cppcoreguidelines-pro-type-cstyle-cast,
|
#cppcoreguidelines-pro-type-cstyle-cast,
|
||||||
## TODO: fix code and enable # cppcoreguidelines-pro-type-member-init,
|
## TODO: fix code and enable # cppcoreguidelines-pro-type-member-init,
|
||||||
#cppcoreguidelines-pro-type-reinterpret-cast,
|
#cppcoreguidelines-pro-type-reinterpret-cast,
|
||||||
## TODO: fix code and enable # cppcoreguidelines-pro-type-static-cast-downcast,
|
cppcoreguidelines-pro-type-static-cast-downcast,
|
||||||
#cppcoreguidelines-pro-type-union-access,
|
#cppcoreguidelines-pro-type-union-access,
|
||||||
#cppcoreguidelines-pro-type-vararg,
|
#cppcoreguidelines-pro-type-vararg,
|
||||||
cppcoreguidelines-slicing,
|
cppcoreguidelines-slicing,
|
||||||
|
|||||||
@@ -579,9 +579,9 @@ LogListHelper::_scan_logs(FILE *f, const char *dir, time_t &date)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
closedir(dp);
|
closedir(dp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user