https://github.com/anondeveg updated https://github.com/llvm/llvm-project/pull/219699
>From 1cc7c60e3a4cec9df8fb45b6314f2eefa847840f Mon Sep 17 00:00:00 2001 From: Anondev <[email protected]> Date: Sat, 29 Aug 2026 19:35:55 +0300 Subject: [PATCH] [analyzer] Give CStringChecker bug types proper descriptions --- .../lib/StaticAnalyzer/Checkers/CStringChecker.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index 9fd8d4880c59f..60e06951f7029 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -86,17 +86,12 @@ class CStringChecker mutable StringRef CurrentFunctionDescription; public: - // FIXME: The bug types emitted by this checker family have confused garbage - // in their Description and Category fields (e.g. `categories::UnixAPI` is - // passed as the description in several cases and `uninitialized` is mistyped - // as `unitialized`). This should be cleaned up. - CheckerFrontendWithBugType NullArg{categories::UnixAPI}; + CheckerFrontendWithBugType NullArg{"Null pointer argument"}; CheckerFrontendWithBugType OutOfBounds{"Out-of-bound array access"}; - CheckerFrontendWithBugType BufferOverlap{categories::UnixAPI, - "Improper arguments"}; - CheckerFrontendWithBugType NotNullTerm{categories::UnixAPI}; + CheckerFrontendWithBugType BufferOverlap{"Overlapping buffers","Improper arguments"}; + CheckerFrontendWithBugType NotNullTerm{"Not null-terminated string"}; CheckerFrontendWithBugType UninitializedRead{ - "Accessing unitialized/garbage values"}; + "Accessing uninitialized/garbage values"}; StringRef getDebugTag() const override { return "MallocChecker"; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
