clang
22.0.0git
lib
StaticAnalyzer
Core
SarifDiagnostics.h
Go to the documentation of this file.
1
//==- SarifDiagnostics.h - SARIF Diagnostics for Paths -------------*- 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
#ifndef LLVM_CLANG_LIB_STATICANALYZER_CORE_SARIFDIAGNOSTICS_H
10
#define LLVM_CLANG_LIB_STATICANALYZER_CORE_SARIFDIAGNOSTICS_H
11
12
#include "
clang/Lex/Preprocessor.h
"
13
#include "
clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h
"
14
#include <string>
15
16
namespace
clang::ento
{
17
18
void
createSarifDiagnosticConsumerImpl
(
PathDiagnosticConsumerOptions
DiagOpts,
19
PathDiagnosticConsumers
&
C
,
20
const
std::string &Output,
21
const
Preprocessor &PP);
22
23
}
// namespace clang::ento
24
25
#endif
PathDiagnosticConsumers.h
Preprocessor.h
Defines the clang::Preprocessor interface.
clang::ento
Definition
CocoaConventions.h:23
clang::ento::PathDiagnosticConsumers
std::vector< std::unique_ptr< PathDiagnosticConsumer > > PathDiagnosticConsumers
Definition
PathDiagnosticConsumers.h:33
clang::ento::createSarifDiagnosticConsumerImpl
void createSarifDiagnosticConsumerImpl(PathDiagnosticConsumerOptions DiagOpts, PathDiagnosticConsumers &C, const std::string &Output, const Preprocessor &PP)
Creates and registers a SARIF diagnostic consumer, without any additional text consumer.
Definition
SarifDiagnostics.cpp:66
clang::LinkageSpecLanguageIDs::C
@ C
Definition
DeclCXX.h:3007
clang::ento::PathDiagnosticConsumerOptions
These options tweak the behavior of path diangostic consumers.
Definition
PathDiagnostic.h:61
Generated on
for clang by
1.14.0