[clang] [clang][analyzer] Move StreamChecker out of the alpha package. (PR #89247)
Balázs Kéri via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 18 08:24:55 PDT 2024
================
@@ -563,6 +563,20 @@ def MismatchedDeallocatorChecker : Checker<"MismatchedDeallocator">,
Dependencies<[DynamicMemoryModeling]>,
Documentation<HasDocumentation>;
+def StreamChecker : Checker<"Stream">,
+ HelpText<"Check stream handling functions">,
+ WeakDependencies<[NonNullParamChecker]>,
+ CheckerOptions<[
+ CmdLineOption<Boolean,
+ "Pedantic",
+ "If false, assume that stream operations which are often not "
+ "checked for error do not fail."
+ "fail.",
+ "false",
+ InAlpha>
+ ]>,
+ Documentation<HasDocumentation>;
+
----------------
balazske wrote:
This would come after `StdCLibraryFunctionsChecker` if the original alphabetic order is used, but because `StdreamChecker` is a weak dependency of `StdCLibraryFunctionsChecker` it must be included before it to have the checker name available.
https://github.com/llvm/llvm-project/pull/89247
More information about the cfe-commits
mailing list