[all-commits] [llvm/llvm-project] 1bd2b2: Add support for specifying the severity of a SARIF...
Vaibhav Yenamandra via All-commits
all-commits at lists.llvm.org
Fri Aug 19 04:15:14 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1bd2b2dce2a92dd2777f4fe08098b8f19e3fb593
https://github.com/llvm/llvm-project/commit/1bd2b2dce2a92dd2777f4fe08098b8f19e3fb593
Author: Vaibhav Yenamandra <vyenamandra at bloomberg.net>
Date: 2022-08-19 (Fri, 19 Aug 2022)
Changed paths:
M clang/include/clang/Basic/Sarif.h
M clang/lib/Basic/Sarif.cpp
M clang/unittests/Basic/SarifTest.cpp
Log Message:
-----------
Add support for specifying the severity of a SARIF Result
* Extend SarifResult with level property, and allow rule configuration
* Create SarifReportingConfiguration which allow configuring rules with
a default priority, severity and an enable-toggle
* Support for setting the level property[1] of a result.
If unset, it defaults to "warning", which is the result of an empty
default configuration on rules[2]
[1]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317648
[2]: https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317855
Differential Revision: https://reviews.llvm.org/D131084
More information about the All-commits
mailing list