blob: 0661a4e9463d2d91f99fd3cfd3ae9b8f9eb0bdb6 [file] [log] [blame]
Ted Kremenekfb9a48c2008-07-14 23:41:13 +00001//===-- 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 Kremenek95c7b002008-10-24 01:04:59 +000014#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 Kremenekfb9a48c2008-07-14 23:41:13 +000022ANALYSIS(CFGDump, "cfg-dump",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000023 "Display Control-Flow Graphs", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000024
25ANALYSIS(CFGView, "cfg-view",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000026 "View Control-Flow Graphs using GraphViz", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000027
28ANALYSIS(DisplayLiveVariables, "dump-live-variables",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000029 "Print results of live variable analysis", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000030
31ANALYSIS(WarnDeadStores, "warn-dead-stores",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000032 "Warn about stores to dead variables", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000033
34ANALYSIS(WarnUninitVals, "warn-uninit-values",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000035 "Warn about uses of uninitialized variables", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000036
37ANALYSIS(WarnObjCMethSigs, "warn-objc-methodsigs",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000038 "Warn about Objective-C method signatures with type incompatibilities",
39 ObjCImplementation)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000040
41ANALYSIS(WarnObjCDealloc, "warn-objc-missing-dealloc",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000042 "Warn about Objective-C classes that lack a correct implementation of -dealloc",
43 ObjCImplementation)
Ted Kremenek395aaf22008-07-23 00:45:26 +000044
45ANALYSIS(WarnObjCUnusedIvars, "warn-objc-unused-ivars",
46 "Warn about private ivars that are never used", ObjCImplementation)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000047
48ANALYSIS(CheckerSimple, "checker-simple",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000049 "Perform simple path-sensitive checks.", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000050
51ANALYSIS(CheckerCFRef, "checker-cfref",
Ted Kremenekf7f3c202008-07-15 00:46:02 +000052 "Run the [Core] Foundation reference count checker", Code)
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000053
Ted Kremenek95c7b002008-10-24 01:04:59 +000054
55ANALYSIS_STORE(BasicStore, "basic", "Use basic analyzer store")
56ANALYSIS_STORE(RegionStore, "region", "Use region-based analyzer store")
57
Ted Kremenekfb9a48c2008-07-14 23:41:13 +000058#undef ANALYSIS
Ted Kremenek95c7b002008-10-24 01:04:59 +000059#undef ANALYSIS_STORE