]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/clang/StaticAnalyzer/Core/Analyses.def
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / include / clang / StaticAnalyzer / Core / 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(RangeConstraints, "range", "Use constraint tracking of concrete value ranges", CreateRangeConstraintManager)
25 ANALYSIS_CONSTRAINTS(Z3Constraints, "z3", "Use Z3 contraint solver", CreateZ3ConstraintManager)
26
27 #ifndef ANALYSIS_DIAGNOSTICS
28 #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN)
29 #endif
30
31 ANALYSIS_DIAGNOSTICS(HTML, "html", "Output analysis results using HTML", createHTMLDiagnosticConsumer)
32 ANALYSIS_DIAGNOSTICS(HTML_SINGLE_FILE, "html-single-file", "Output analysis results using HTML (not allowing for multi-file bugs)", createHTMLSingleFileDiagnosticConsumer)
33 ANALYSIS_DIAGNOSTICS(PLIST, "plist", "Output analysis results using Plists", createPlistDiagnosticConsumer)
34 ANALYSIS_DIAGNOSTICS(PLIST_MULTI_FILE, "plist-multi-file", "Output analysis results using Plists (allowing for multi-file bugs)", createPlistMultiFileDiagnosticConsumer)
35 ANALYSIS_DIAGNOSTICS(PLIST_HTML, "plist-html", "Output analysis results using HTML wrapped with Plists", createPlistHTMLDiagnosticConsumer)
36 ANALYSIS_DIAGNOSTICS(SARIF, "sarif", "Output analysis results in a SARIF file", createSarifDiagnosticConsumer)
37 ANALYSIS_DIAGNOSTICS(TEXT, "text", "Text output of analysis results", createTextPathDiagnosticConsumer)
38
39 #ifndef ANALYSIS_PURGE
40 #define ANALYSIS_PURGE(NAME, CMDFLAG, DESC)
41 #endif
42
43 ANALYSIS_PURGE(PurgeStmt,  "statement", "Purge symbols, bindings, and constraints before every statement")
44 ANALYSIS_PURGE(PurgeBlock, "block", "Purge symbols, bindings, and constraints before every basic block")
45 ANALYSIS_PURGE(PurgeNone,  "none", "Do not purge symbols, bindings, or constraints")
46
47 #ifndef ANALYSIS_INLINING_MODE
48 #define ANALYSIS_INLINING_MODE(NAME, CMDFLAG, DESC)
49 #endif
50
51 ANALYSIS_INLINING_MODE(All,  "all", "Analyze all functions as top level")
52 ANALYSIS_INLINING_MODE(NoRedundancy, "noredundancy", "Do not analyze a function which has been previously inlined")
53
54 #undef ANALYSIS_STORE
55 #undef ANALYSIS_CONSTRAINTS
56 #undef ANALYSIS_DIAGNOSTICS
57 #undef ANALYSIS_PURGE
58 #undef ANALYSIS_INLINING_MODE
59 #undef ANALYSIS_IPA
60