clang 20.0.0git
PathDiagnosticConsumers.h
Go to the documentation of this file.
1//===--- PathDiagnosticConsumers.h - Path Diagnostic Clients ----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the interface to create different path diagostic clients.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHDIAGNOSTICCONSUMERS_H
14#define LLVM_CLANG_STATICANALYZER_CORE_PATHDIAGNOSTICCONSUMERS_H
15
17
18#include <string>
19#include <vector>
20
21namespace clang {
22
23class MacroExpansionContext;
24class Preprocessor;
25
26namespace cross_tu {
27class CrossTranslationUnitContext;
28}
29
30namespace ento {
31
32class PathDiagnosticConsumer;
33typedef std::vector<PathDiagnosticConsumer*> PathDiagnosticConsumers;
34
35#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN) \
36 void CREATEFN(PathDiagnosticConsumerOptions Diagopts, \
37 PathDiagnosticConsumers &C, const std::string &Prefix, \
38 const Preprocessor &PP, \
39 const cross_tu::CrossTranslationUnitContext &CTU, \
40 const MacroExpansionContext &MacroExpansions);
41#include "clang/StaticAnalyzer/Core/Analyses.def"
42
43} // end 'ento' namespace
44} // end 'clang' namespace
45
46#endif
std::vector< PathDiagnosticConsumer * > PathDiagnosticConsumers
The JSON file list parser is used to communicate input to InstallAPI.