clang 24.0.0git
Utils.h File Reference
#include "clang/ScalableStaticAnalysis/Core/Serialization/SerializationFormatRegistry.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/WithColor.h"
#include "llvm/TargetParser/Triple.h"
#include <string>

Go to the source code of this file.

Classes

struct  clang::ssaf::FormatFile

Namespaces

namespace  clang
 Top level wrappers for InstallAPI frontend operations.
namespace  clang::ssaf

Functions

llvm::StringRef clang::ssaf::getToolName ()
 Returns the name of the running tool, as set by initTool().
void clang::ssaf::fail (const char *Msg)
template<typename... Ts>
void clang::ssaf::fail (const char *Fmt, Ts &&...Args)
void clang::ssaf::fail (llvm::Error Err)
template<typename... Ts>
void clang::ssaf::info (bool Verbose, unsigned Level, const char *Fmt, Ts &&...Args)
 Prints an indented note to stderr when Verbose is set.
void clang::ssaf::loadPlugins (llvm::ArrayRef< std::string > Paths)
void clang::ssaf::initTool (int argc, const char **argv, llvm::StringRef Version, llvm::cl::OptionCategory &Category, llvm::StringRef ToolHeading)
 Sets ToolName, ToolVersion, and the version printer, hides unrelated command-line options, and parses arguments.
llvm::Triple clang::ssaf::parseTargetTripleOrFail (llvm::StringRef FlagName, llvm::StringRef Value)
 Parses and validates a target triple supplied on the command line.

Variables

constexpr unsigned clang::ssaf::IndentationWidth = 2
 Number of spaces per indentation level used by info().