[clang] [clang][analyzer] Move StreamChecker out of the alpha package. (PR #89247)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 05:10:24 PDT 2024


=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>,
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/89247 at github.com>


================
@@ -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>;
+
----------------
NagyDonat wrote:

Perhaps add this remark as a comment in the `Checkers.td` file to help those who would notice the inconsistent ordering and try to restore the alphabetical order.

https://github.com/llvm/llvm-project/pull/89247


More information about the cfe-commits mailing list