clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::detail::SarifArtifact Class Reference

Since every clang artifact MUST have a location (there being no nested artifacts), the creation method SarifArtifact::create requires a SarifArtifactLocation object. More...

#include "clang/Basic/Sarif.h"

Public Member Functions

SarifArtifact setOffset (uint32_t ArtifactOffset)
 
SarifArtifact setLength (size_t NumBytes)
 
SarifArtifact setRoles (std::initializer_list< llvm::StringRef > ArtifactRoles)
 
SarifArtifact setMimeType (llvm::StringRef ArtifactMimeType)
 

Static Public Member Functions

static SarifArtifact create (const SarifArtifactLocation &Loc)
 

Friends

class clang::SarifDocumentWriter
 

Detailed Description

Since every clang artifact MUST have a location (there being no nested artifacts), the creation method SarifArtifact::create requires a SarifArtifactLocation object.

Reference:

  1. artifact object

Definition at line 104 of file Sarif.h.

Member Function Documentation

◆ create()

static SarifArtifact clang::detail::SarifArtifact::create ( const SarifArtifactLocation Loc)
inlinestatic

Definition at line 119 of file Sarif.h.

References Loc.

◆ setLength()

SarifArtifact clang::detail::SarifArtifact::setLength ( size_t  NumBytes)
inline

Definition at line 128 of file Sarif.h.

◆ setMimeType()

SarifArtifact clang::detail::SarifArtifact::setMimeType ( llvm::StringRef  ArtifactMimeType)
inline

Definition at line 138 of file Sarif.h.

◆ setOffset()

SarifArtifact clang::detail::SarifArtifact::setOffset ( uint32_t  ArtifactOffset)
inline

Definition at line 123 of file Sarif.h.

◆ setRoles()

SarifArtifact clang::detail::SarifArtifact::setRoles ( std::initializer_list< llvm::StringRef >  ArtifactRoles)
inline

Definition at line 133 of file Sarif.h.

Friends And Related Function Documentation

◆ clang::SarifDocumentWriter

friend class clang::SarifDocumentWriter
friend

Definition at line 106 of file Sarif.h.


The documentation for this class was generated from the following file: