clang: lib/Basic/SourceLocation.cpp File Reference (original) (raw)
SourceLocation.cpp File Reference
#include "[clang/Basic/SourceLocation.h](SourceLocation%5F8h%5Fsource.html)"#include "[clang/Basic/LLVM.h](LLVM%5F8h%5Fsource.html)"#include "[clang/Basic/PrettyStackTrace.h](PrettyStackTrace%5F8h%5Fsource.html)"#include "[clang/Basic/SourceManager.h](SourceManager%5F8h%5Fsource.html)"#include "llvm/ADT/DenseMapInfo.h"#include "llvm/ADT/FoldingSet.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/raw_ostream.h"#include <cassert>#include <string>#include <utility>
Go to the source code of this file.
| Functions | |
|---|---|
| static PresumedLoc | PrintDifference (raw_ostream &OS, const SourceManager &SM, SourceLocation Loc, PresumedLoc Previous) |
Function Documentation
◆ PrintDifference()
| PresumedLoc PrintDifference ( raw_ostream & OS, const SourceManager & SM, SourceLocation Loc, PresumedLoc Previous ) | static |
|---|
Definition at line 104 of file SourceLocation.cpp.
References clang::PresumedLoc::getColumn(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::SourceLocation::isFileID(), clang::PresumedLoc::isInvalid(), Previous, PrintDifference(), and SM.
Referenced by clang::SourceRange::print(), and PrintDifference().