|
clang 23.0.0git
|
#include "clang/ScalableStaticAnalysisFramework/Tool/Utils.h"
Static Public Member Functions | |
| static FormatFile | fromInputPath (llvm::StringRef Path) |
| Validates an input path and returns a FormatFile. | |
| static FormatFile | fromOutputPath (llvm::StringRef Path) |
| Validates an output path and returns a FormatFile. | |
Public Attributes | |
| std::string | Path |
| SerializationFormat * | Format = nullptr |
|
static |
Validates an input path and returns a FormatFile.
Checks that the path exists and is a regular file, then resolves the serialization format from the file extension. Read permission is not checked here because llvm::sys::fs::AccessMode does not support Read; read errors are caught when the file is opened during deserialization.
Calls fail() and exits on any validation error.
Definition at line 168 of file Utils.cpp.
References clang::ssaf::fail(), and Path.
|
static |
Validates an output path and returns a FormatFile.
Checks that the output file does not already exist, that the parent directory exists and is writable, then resolves the serialization format from the file extension.
Calls fail() and exits on any validation error.
Definition at line 183 of file Utils.cpp.
References clang::ssaf::fail(), and Path.
| SerializationFormat* clang::ssaf::FormatFile::Format = nullptr |
| std::string clang::ssaf::FormatFile::Path |
Definition at line 70 of file Utils.h.
Referenced by fromInputPath(), and fromOutputPath().