From e2b6225101efa56815298b45c783d1030645c9e4 Mon Sep 17 00:00:00 2001 From: Devin Coughlin Date: Tue, 18 Jul 2017 00:34:57 +0000 Subject: [PATCH] [analyzer] Add missing documentation for static analyzer checkers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some checks did not have documentation in the www/analyzer/ folder and also some alpha checks became non-alpha. Patch by Dominik Szabó! Differential Revision: https://reviews.llvm.org/D33645 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308242 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/analyzer/alpha_checks.html | 280 ++++++++++++------------- www/analyzer/available_checks.html | 323 ++++++++++++++++++++++++++++- www/analyzer/implicit_checks.html | 4 +- 3 files changed, 456 insertions(+), 151 deletions(-) diff --git a/www/analyzer/alpha_checks.html b/www/analyzer/alpha_checks.html index ce9392b996..7d84d23343 100644 --- a/www/analyzer/alpha_checks.html +++ b/www/analyzer/alpha_checks.html @@ -24,6 +24,7 @@ keep them from being on by default. They are likely to have false positives. Bug reports are welcome but will likely not be investigated for some time. Patches welcome! + + +

Clone Alpha Checkers

+ + + + + + + +
Name, DescriptionExample
+

Core Alpha Checkers

@@ -52,6 +85,28 @@ void test() { + + + + + + + + + + + + + + +
@@ -187,19 +298,6 @@ int test(struct s *p) { Name, DescriptionExample - - - - + + + + @@ -675,52 +739,6 @@ void test() { } - - - - - - - - diff --git a/www/analyzer/available_checks.html b/www/analyzer/available_checks.html index 7707fc0150..eca8dca616 100644 --- a/www/analyzer/available_checks.html +++ b/www/analyzer/available_checks.html @@ -38,12 +38,14 @@ Experimental (Alpha) Checkers.
  • Core Checkers model core language features and perform general-purpose checks such as division by zero, null pointer dereference, usage of uninitialized values, etc.
  • C++ Checkers perform C++-specific checks
  • Dead Code Checkers check for unused code
  • +
  • Nullability Checkers
  • +
  • Optin Checkers
  • OS X Checkers perform Objective-C-specific checks and check the use of Apple's SDKs (OS X and iOS)
  • Security Checkers check for insecure API usage and perform checks based on the CERT Secure Coding Standards
  • Unix Checkers check the use of Unix and POSIX APIs
  • - +

    Core Checkers

    @@ -360,7 +362,7 @@ int test() {
    - +

    C++ Checkers

    @@ -421,9 +423,21 @@ void test() { } + + +
    - +

    Dead Code Checkers

    @@ -444,7 +458,161 @@ void test() {
    - + +

    Nullability Checkers

    + + + + + + + + + + + + + + + + + + + + +
    Name, DescriptionExample
    + + +

    Optin Checkers

    + + + + + + + + + + + + + + + + +
    Name, DescriptionExample
    + +

    OS X Checkers

    @@ -465,6 +633,22 @@ void test() { + + + + + + + + + + + + + + + +
    - +

    Security Checkers

    @@ -995,7 +1274,7 @@ void test() {
    - +

    Unix Checkers

    @@ -1187,6 +1466,38 @@ void test(NSUInteger dataLength) { + + + +