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 16 #include "clang/Analysis/PathDiagnostic.h" 17 18 #include <string> 19 #include <vector> 20 21 namespace clang { 22 23 class AnalyzerOptions; 24 class Preprocessor; 25 namespace cross_tu { 26 class CrossTranslationUnitContext; 27 } 28 29 namespace ento { 30 31 class PathDiagnosticConsumer; 32 typedef std::vector<PathDiagnosticConsumer*> PathDiagnosticConsumers; 33 34 #define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATEFN) \ 35 void CREATEFN(PathDiagnosticConsumerOptions Diagopts, \ 36 PathDiagnosticConsumers &C, const std::string &Prefix, \ 37 const Preprocessor &PP, \ 38 const cross_tu::CrossTranslationUnitContext &CTU); 39 #include "clang/StaticAnalyzer/Core/Analyses.def" 40 41 } // end 'ento' namespace 42 } // end 'clang' namespace 43 44 #endif 45