LLVM 20.0.0git
|
#include "llvm/Support/SourceMgr.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/Locale.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <limits>
#include <memory>
#include <string>
#include <utility>
Go to the source code of this file.
Functions | |
template<typename T > | |
static std::vector< T > & | GetOrCreateOffsetCache (void *&OffsetCache, MemoryBuffer *Buffer) |
static void | buildFixItLine (std::string &CaretLine, std::string &FixItLine, ArrayRef< SMFixIt > FixIts, ArrayRef< char > SourceLine) |
static void | printSourceLine (raw_ostream &S, StringRef LineContents) |
static bool | isNonASCII (char c) |
Variables | |
static const size_t | TabStop = 8 |
|
static |
Definition at line 389 of file SourceMgr.cpp.
References assert(), llvm::ArrayRef< T >::begin(), llvm::sys::locale::columnWidth(), llvm::copy(), llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::end(), and llvm::StringRef::npos.
Referenced by llvm::SMDiagnostic::print().
|
static |
Definition at line 84 of file SourceMgr.cpp.
References assert(), llvm::MemoryBuffer::getBuffer(), llvm::MemoryBuffer::getBufferSize(), and N.
Definition at line 482 of file SourceMgr.cpp.
Referenced by llvm::SMDiagnostic::print().
|
static |
Definition at line 458 of file SourceMgr.cpp.
References llvm::StringRef::drop_front(), llvm::StringRef::find(), llvm::StringRef::npos, llvm::StringRef::size(), llvm::StringRef::slice(), and TabStop.
Referenced by llvm::SMDiagnostic::print().
|
static |
Definition at line 39 of file SourceMgr.cpp.
Referenced by llvm::SMDiagnostic::print(), and printSourceLine().