LLVM  4.0.0
Functions | Variables
SourceMgr.cpp File Reference
#include "llvm/Support/SourceMgr.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Locale.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for SourceMgr.cpp:

Go to the source code of this file.

Functions

static LineNoCacheTy * getCache (void *Ptr)
 
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
 

Function Documentation

static void buildFixItLine ( std::string &  CaretLine,
std::string &  FixItLine,
ArrayRef< SMFixIt FixIts,
ArrayRef< char >  SourceLine 
)
static
static LineNoCacheTy* getCache ( void *  Ptr)
static

Definition at line 35 of file SourceMgr.cpp.

References Ptr.

Referenced by llvm::SourceMgr::getLineAndColumn(), and llvm::SourceMgr::~SourceMgr().

static bool isNonASCII ( char  c)
static

Definition at line 332 of file SourceMgr.cpp.

Referenced by llvm::SMDiagnostic::print().

static void printSourceLine ( raw_ostream S,
StringRef  LineContents 
)
static

Definition at line 314 of file SourceMgr.cpp.

References i, llvm::StringRef::size(), and TabStop.

Referenced by llvm::SMDiagnostic::print().

Variable Documentation

const size_t TabStop = 8
static

Definition at line 25 of file SourceMgr.cpp.

Referenced by llvm::SMDiagnostic::print(), and printSourceLine().