clang 23.0.0git
clang::ssaf::SummaryFile Struct Reference

#include "clang/ScalableStaticAnalysisFramework/Tool/Utils.h"

Static Public Member Functions

static SummaryFile fromPath (llvm::StringRef Path)
 Constructs a SummaryFile by resolving the serialization format from the file extension.

Public Attributes

std::string Path
SerializationFormatFormat = nullptr

Detailed Description

Definition at line 90 of file Utils.h.

Member Function Documentation

◆ fromPath()

SummaryFile SummaryFile::fromPath ( llvm::StringRef Path)
static

Constructs a SummaryFile by resolving the serialization format from the file extension.

Calls fail() and exits if the extension is missing or unregistered.

Definition at line 119 of file Utils.cpp.

References clang::ssaf::ErrorMessages::CannotValidateSummary, clang::ssaf::ErrorMessages::ExtensionNotSupplied, clang::ssaf::fail(), Format, clang::ssaf::ErrorMessages::NoFormatForExtension, and Path.

Member Data Documentation

◆ Format

SerializationFormat* clang::ssaf::SummaryFile::Format = nullptr

Definition at line 92 of file Utils.h.

Referenced by fromPath().

◆ Path

std::string clang::ssaf::SummaryFile::Path

Definition at line 91 of file Utils.h.

Referenced by fromPath().


The documentation for this struct was generated from the following files: