aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceLocation.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-06-24 07:32:18 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-06-24 07:33:07 -0400
commit7a3918b540c30cc630aaae9124c67e5e4db123c2 (patch)
tree1b240ef2c8ed4b81ae9eae766d42b5eb79164a3e /clang/lib/Basic/SourceLocation.cpp
parentf09dad0c85ab46bec98f241436e41774cd66f285 (diff)
downloadllvm-7a3918b540c30cc630aaae9124c67e5e4db123c2.zip
llvm-7a3918b540c30cc630aaae9124c67e5e4db123c2.tar.gz
llvm-7a3918b540c30cc630aaae9124c67e5e4db123c2.tar.bz2
Revert "[clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface"
This reverts commit 6546fdbe36fd1227d7f23f89fd9a9825813b3de9. This broke some build bots due to a layering issue: https://lab.llvm.org/buildbot/#/builders/57/builds/19244
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r--clang/lib/Basic/SourceLocation.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp
index 931ea22..6e5e55f 100644
--- a/clang/lib/Basic/SourceLocation.cpp
+++ b/clang/lib/Basic/SourceLocation.cpp
@@ -270,30 +270,3 @@ StringRef FullSourceLoc::getBufferData(bool *Invalid) const {
std::pair<FileID, unsigned> FullSourceLoc::getDecomposedLoc() const {
return SrcMgr->getDecomposedLoc(*this);
}
-
-//===----------------------------------------------------------------------===//
-// FullSourceRange
-//===----------------------------------------------------------------------===//
-
-void FullSourceRange::print(raw_ostream &OS) const {
-
- OS << '<';
- PresumedLoc PrintedLoc = PrintDifference(OS, B.getManager(), B, {});
- if (B != E) {
- OS << ", ";
- PrintDifference(OS, E.getManager(), E, PrintedLoc);
- }
- OS << '>';
-}
-
-LLVM_DUMP_METHOD std::string FullSourceRange::printToString() const {
- std::string S;
- llvm::raw_string_ostream OS(S);
- print(OS);
- return OS.str();
-}
-
-LLVM_DUMP_METHOD void FullSourceRange::dump() const {
- this->print(llvm::errs());
- llvm::errs() << '\n';
-}