[PATCH] D109701: [clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface

Vaibhav Yenamandra via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 27 13:43:42 PDT 2022


vaibhav.y updated this revision to Diff 440371.
vaibhav.y added a comment.

Use `CharSourceRange` instead of FullSourceRange so we no longer need to compute
the length of the last token. This should already be encoded in the end location
of the `CharSourceRange` by the caller

TODO(@vaibhav.y): Once accepted, drop the commit that introduces: `clang:i:FullSourceRange`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109701/new/

https://reviews.llvm.org/D109701

Files:
  clang/include/clang/Basic/Sarif.h
  clang/include/clang/Basic/SourceLocation.h
  clang/lib/Basic/CMakeLists.txt
  clang/lib/Basic/Sarif.cpp
  clang/lib/Basic/SourceLocation.cpp
  clang/unittests/Basic/CMakeLists.txt
  clang/unittests/Basic/SarifTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109701.440371.patch
Type: text/x-patch
Size: 48945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220627/c772f565/attachment-0001.bin>


More information about the cfe-commits mailing list