-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analysis: Add SARIF analysis interface.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) 2024-present, Trail of Bits, Inc. | ||
|
||
#pragma once | ||
|
||
#ifdef VAST_ENABLE_SARIF | ||
#include <vector> | ||
|
||
#include <gap/sarif/sarif.hpp> | ||
|
||
namespace vast::analysis::sarif { | ||
|
||
class sarif_analysis { | ||
private: | ||
std::vector<gap::sarif::result> sarif_results; | ||
|
||
public: | ||
inline virtual ~sarif_analysis() = default; | ||
|
||
inline const std::vector<gap::sarif::result> &results() const { | ||
return sarif_results; | ||
} | ||
|
||
protected: | ||
inline std::vector<gap::sarif::result> &results() { return sarif_results; } | ||
}; | ||
|
||
} // namespace vast::analysis::sarif | ||
#endif // VAST_ENABLE_SARIF |