|
LLVM 24.0.0git
|
#include "llvm/Support/SourceMgrDiagnosticVerifier.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Support/MemoryBuffer.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Functions | |
| static StringRef | getDiagKindStr (SourceMgr::DiagKind kind) |
| Given a diagnostic kind, return a human readable string for it. | |
| static Regex | buildExpectedRegex (ArrayRef< StringRef > prefixes) |
Definition at line 84 of file SourceMgrDiagnosticVerifier.cpp.
References assert(), llvm::ArrayRef< T >::empty(), llvm::StringRef::empty(), llvm::Regex::escape(), and llvm::interleave().
Referenced by llvm::SourceMgrDiagnosticVerifier::SourceMgrDiagnosticVerifier().
|
static |
Given a diagnostic kind, return a human readable string for it.
Definition at line 17 of file SourceMgrDiagnosticVerifier.cpp.
References llvm::SourceMgr::DK_Error, llvm::SourceMgr::DK_Note, llvm::SourceMgr::DK_Remark, llvm::SourceMgr::DK_Warning, and llvm_unreachable.
Referenced by llvm::SourceMgrDiagnosticVerifier::process(), and llvm::SourceMgrDiagnosticVerifier::verify().