Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 1 | //===-- Analyses.def - Metadata about Static Analyses -----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines the set of static analyses used by AnalysisConsumer. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Ted Kremenek | 95c7b00 | 2008-10-24 01:04:59 +0000 | [diff] [blame] | 14 | #ifndef ANALYSIS |
| 15 | #define ANALYSIS(NAME, CMDFLAG, DESC, SCOPE) |
| 16 | #endif |
| 17 | |
| 18 | #ifndef ANALYSIS_STORE |
| 19 | #define ANALYSIS_STORE(NAME, CMDFLAG, DESC) |
| 20 | #endif |
| 21 | |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 22 | ANALYSIS(CFGDump, "cfg-dump", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 23 | "Display Control-Flow Graphs", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 24 | |
| 25 | ANALYSIS(CFGView, "cfg-view", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 26 | "View Control-Flow Graphs using GraphViz", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 27 | |
| 28 | ANALYSIS(DisplayLiveVariables, "dump-live-variables", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 29 | "Print results of live variable analysis", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 30 | |
| 31 | ANALYSIS(WarnDeadStores, "warn-dead-stores", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 32 | "Warn about stores to dead variables", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 33 | |
| 34 | ANALYSIS(WarnUninitVals, "warn-uninit-values", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 35 | "Warn about uses of uninitialized variables", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 36 | |
| 37 | ANALYSIS(WarnObjCMethSigs, "warn-objc-methodsigs", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 38 | "Warn about Objective-C method signatures with type incompatibilities", |
| 39 | ObjCImplementation) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 40 | |
| 41 | ANALYSIS(WarnObjCDealloc, "warn-objc-missing-dealloc", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 42 | "Warn about Objective-C classes that lack a correct implementation of -dealloc", |
| 43 | ObjCImplementation) |
Ted Kremenek | 395aaf2 | 2008-07-23 00:45:26 +0000 | [diff] [blame] | 44 | |
| 45 | ANALYSIS(WarnObjCUnusedIvars, "warn-objc-unused-ivars", |
| 46 | "Warn about private ivars that are never used", ObjCImplementation) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 47 | |
| 48 | ANALYSIS(CheckerSimple, "checker-simple", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 49 | "Perform simple path-sensitive checks.", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 50 | |
| 51 | ANALYSIS(CheckerCFRef, "checker-cfref", |
Ted Kremenek | f7f3c20 | 2008-07-15 00:46:02 +0000 | [diff] [blame] | 52 | "Run the [Core] Foundation reference count checker", Code) |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 53 | |
Ted Kremenek | 95c7b00 | 2008-10-24 01:04:59 +0000 | [diff] [blame] | 54 | |
| 55 | ANALYSIS_STORE(BasicStore, "basic", "Use basic analyzer store") |
| 56 | ANALYSIS_STORE(RegionStore, "region", "Use region-based analyzer store") |
| 57 | |
Ted Kremenek | fb9a48c | 2008-07-14 23:41:13 +0000 | [diff] [blame] | 58 | #undef ANALYSIS |
Ted Kremenek | 95c7b00 | 2008-10-24 01:04:59 +0000 | [diff] [blame] | 59 | #undef ANALYSIS_STORE |