]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Frontend/Analyses.def
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / tools / clang / include / clang / Frontend / Analyses.def
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
14 #ifndef ANALYSIS_STORE
15 #define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN)
16 #endif
17
18 ANALYSIS_STORE(RegionStore, "region", "Use region-based analyzer store", CreateRegionStoreManager)
19
20 #ifndef ANALYSIS_CONSTRAINTS
21 #define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN)
22 #endif
23
24 ANALYSIS_CONSTRAINTS(BasicConstraints, "basic", "Use basic constraint tracking", CreateBasicConstraintManager)
25 ANALYSIS_CONSTRAINTS(RangeConstraints, "range", "Use constraint tracking of concrete value ranges", CreateRangeConstraintManager)
26
27 #ifndef ANALYSIS_DIAGNOSTICS
28 #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN, AUTOCREATE)
29 #endif
30
31 ANALYSIS_DIAGNOSTICS(HTML,  "html",  "Output analysis results using HTML",   createHTMLDiagnosticConsumer, false)
32 ANALYSIS_DIAGNOSTICS(PLIST, "plist", "Output analysis results using Plists", createPlistDiagnosticConsumer, true)
33 ANALYSIS_DIAGNOSTICS(PLIST_HTML, "plist-html", "Output analysis results using HTML wrapped with Plists", createPlistHTMLDiagnosticConsumer, true)
34 ANALYSIS_DIAGNOSTICS(TEXT, "text", "Text output of analysis results", createTextPathDiagnosticConsumer, true)
35
36 #ifndef ANALYSIS_PURGE
37 #define ANALYSIS_PURGE(NAME, CMDFLAG, DESC)
38 #endif
39
40 ANALYSIS_PURGE(PurgeStmt,  "statement", "Purge symbols, bindings, and constraints before every statement")
41 ANALYSIS_PURGE(PurgeBlock, "block", "Purge symbols, bindings, and constraints before every basic block")
42 ANALYSIS_PURGE(PurgeNone,  "none", "Do not purge symbols, bindings, or constraints")
43
44 #undef ANALYSIS_STORE
45 #undef ANALYSIS_CONSTRAINTS
46 #undef ANALYSIS_DIAGNOSTICS
47 #undef ANALYSIS_PURGE
48