LLVM  7.0.0svn
Functions | Variables
SourceMgr.cpp File Reference
#include "llvm/Support/SourceMgr.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.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/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <limits>
#include <memory>
#include <string>
#include <utility>
Include dependency graph for SourceMgr.cpp:

Go to the source code of this file.

Functions

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

◆ buildFixItLine()

static void buildFixItLine ( std::string &  CaretLine,
std::string &  FixItLine,
ArrayRef< SMFixIt FixIts,
ArrayRef< char SourceLine 
)
static

◆ isNonASCII()

static bool isNonASCII ( char  c)
static

Definition at line 363 of file SourceMgr.cpp.

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

◆ printSourceLine()

static void printSourceLine ( raw_ostream S,
StringRef  LineContents 
)
static

Definition at line 345 of file SourceMgr.cpp.

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

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

Variable Documentation

◆ TabStop

const size_t TabStop = 8
static

Definition at line 38 of file SourceMgr.cpp.

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