Warning, /include/clang/StaticAnalyzer/Core/Analyses.def is written in an unsupported language. File is not indexed.
0001 //===-- Analyses.def - Metadata about Static Analyses -----------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 //
0009 // This file defines the set of static analyses used by AnalysisConsumer.
0010 //
0011 //===----------------------------------------------------------------------===//
0012
0013 #ifndef ANALYSIS_CONSTRAINTS
0014 #define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN)
0015 #endif
0016
0017 ANALYSIS_CONSTRAINTS(RangeConstraints, "range",
0018 "Use constraint tracking of concrete value ranges",
0019 CreateRangeConstraintManager)
0020
0021 ANALYSIS_CONSTRAINTS(Z3Constraints, "z3", "Use Z3 contraint solver",
0022 CreateZ3ConstraintManager)
0023
0024 #ifndef ANALYSIS_DIAGNOSTICS
0025 #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN)
0026 #endif
0027
0028 ANALYSIS_DIAGNOSTICS(HTML, "html", "Output analysis results using HTML",
0029 createHTMLDiagnosticConsumer)
0030
0031 ANALYSIS_DIAGNOSTICS(
0032 HTML_SINGLE_FILE, "html-single-file",
0033 "Output analysis results using HTML (not allowing for multi-file bugs)",
0034 createHTMLSingleFileDiagnosticConsumer)
0035
0036 ANALYSIS_DIAGNOSTICS(PLIST, "plist", "Output analysis results using Plists",
0037 createPlistDiagnosticConsumer)
0038
0039 ANALYSIS_DIAGNOSTICS(
0040 PLIST_MULTI_FILE, "plist-multi-file",
0041 "Output analysis results using Plists (allowing for multi-file bugs)",
0042 createPlistMultiFileDiagnosticConsumer)
0043
0044 ANALYSIS_DIAGNOSTICS(PLIST_HTML, "plist-html",
0045 "Output analysis results using HTML wrapped with Plists",
0046 createPlistHTMLDiagnosticConsumer)
0047
0048 ANALYSIS_DIAGNOSTICS(SARIF, "sarif", "Output analysis results using SARIF",
0049 createSarifDiagnosticConsumer)
0050
0051 ANALYSIS_DIAGNOSTICS(SARIF_HTML, "sarif-html",
0052 "Output analysis results using both SARIF and HTML "
0053 "output files",
0054 createSarifHTMLDiagnosticConsumer)
0055
0056 ANALYSIS_DIAGNOSTICS(TEXT, "text", "Text output of analysis results to stderr",
0057 createTextPathDiagnosticConsumer)
0058
0059 ANALYSIS_DIAGNOSTICS(TEXT_MINIMAL, "text-minimal",
0060 "Emits minimal diagnostics to stderr, stating only the "
0061 "warning message and the associated notes. Usually "
0062 "used in addition to other analysis types",
0063 createTextMinimalPathDiagnosticConsumer)
0064
0065 #ifndef ANALYSIS_PURGE
0066 #define ANALYSIS_PURGE(NAME, CMDFLAG, DESC)
0067 #endif
0068
0069 ANALYSIS_PURGE(
0070 PurgeStmt, "statement",
0071 "Purge symbols, bindings, and constraints before every statement")
0072
0073 ANALYSIS_PURGE(
0074 PurgeBlock, "block",
0075 "Purge symbols, bindings, and constraints before every basic block")
0076
0077 ANALYSIS_PURGE(PurgeNone, "none",
0078 "Do not purge symbols, bindings, or constraints")
0079
0080 #ifndef ANALYSIS_INLINING_MODE
0081 #define ANALYSIS_INLINING_MODE(NAME, CMDFLAG, DESC)
0082 #endif
0083
0084 ANALYSIS_INLINING_MODE(All, "all", "Analyze all functions as top level")
0085
0086 ANALYSIS_INLINING_MODE(
0087 NoRedundancy, "noredundancy",
0088 "Do not analyze a function which has been previously inlined")
0089
0090 #undef ANALYSIS_CONSTRAINTS
0091 #undef ANALYSIS_DIAGNOSTICS
0092 #undef ANALYSIS_PURGE
0093 #undef ANALYSIS_INLINING_MODE
0094 #undef ANALYSIS_IPA