class UndefVarError
Declaration
class UndefVarError : public ErrorInfo { /* full declaration omitted */ };
Description
Class to represent an undefined variable error, which quotes that variable's name when printed.
Declared at: llvm/lib/Support/FileCheckImpl.h:59
Inherits from: ErrorInfo
Member Variables
- public static char ID
Method Overview
- public UndefVarError(llvm::StringRef VarName)
- public std::error_code convertToErrorCode() const
- public llvm::StringRef getVarName() const
- public void log(llvm::raw_ostream & OS) const
Methods
¶UndefVarError(llvm::StringRef VarName)
UndefVarError(llvm::StringRef VarName)
Declared at: llvm/lib/Support/FileCheckImpl.h:66
Parameters
- llvm::StringRef VarName
¶std::error_code convertToErrorCode() const
std::error_code convertToErrorCode() const
Description
Convert this error to a std::error_code. This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Declared at: llvm/lib/Support/FileCheckImpl.h:70
¶llvm::StringRef getVarName() const
llvm::StringRef getVarName() const
Declared at: llvm/lib/Support/FileCheckImpl.h:68
¶void log(llvm::raw_ostream& OS) const
void log(llvm::raw_ostream& OS) const
Description
Print name of variable associated with this error.
Declared at: llvm/lib/Support/FileCheckImpl.h:75