diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2022-06-24 07:32:18 -0400 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2022-06-24 07:33:07 -0400 |
commit | 7a3918b540c30cc630aaae9124c67e5e4db123c2 (patch) | |
tree | 1b240ef2c8ed4b81ae9eae766d42b5eb79164a3e /clang/lib/Basic/SourceLocation.cpp | |
parent | f09dad0c85ab46bec98f241436e41774cd66f285 (diff) | |
download | llvm-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.cpp | 27 |
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'; -} |