clang 23.0.0git
TransformationReportEmitter.h
Go to the documentation of this file.
1//===- TransformationReportEmitter.h ----------------------------*- 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// Abstract accumulator for the transformation report.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SOURCETRANSFORMATION_TRANSFORMATIONREPORTEMITTER_H
14#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SOURCETRANSFORMATION_TRANSFORMATIONREPORTEMITTER_H
15
16#include "clang/Basic/Sarif.h"
18#include "llvm/ADT/StringRef.h"
19
20namespace clang::ssaf {
21
23public:
24 virtual ~TransformationReportEmitter() = default;
25
26 virtual void addResult(llvm::StringRef RuleId, clang::SarifResultLevel Level,
28 llvm::StringRef Message) = 0;
29};
30
31} // namespace clang::ssaf
32
33#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SOURCETRANSFORMATION_TRANSFORMATIONREPORTEMITTER_H
Defines clang::SarifDocumentWriter, clang::SarifRule, clang::SarifResult.
Defines the clang::SourceLocation class and associated facilities.
Represents a byte-granular source range.
virtual void addResult(llvm::StringRef RuleId, clang::SarifResultLevel Level, clang::CharSourceRange Range, llvm::StringRef Message)=0
SarifResultLevel
The level of severity associated with a SarifResult.
Definition Sarif.h:165