summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-06-17 02:15:36 +0000
committerJordan Rose <jordan_rose@apple.com>2014-06-17 02:15:36 +0000
commitecb1c3aa8c574243f461a62b9e5976f1961cd476 (patch)
tree2dba7a097e1ceb2707aff40a8113cf20dcde3470 /lib/Support
parentdcc92918519125050edd5823567179143b20042a (diff)
downloadllvm-ecb1c3aa8c574243f461a62b9e5976f1961cd476.tar.gz
llvm-ecb1c3aa8c574243f461a62b9e5976f1961cd476.tar.bz2
llvm-ecb1c3aa8c574243f461a62b9e5976f1961cd476.tar.xz
Modernize doc comments for SourceMgr.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/SourceMgr.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Support/SourceMgr.cpp b/lib/Support/SourceMgr.cpp
index fc55451d59..6d530e6fa0 100644
--- a/lib/Support/SourceMgr.cpp
+++ b/lib/Support/SourceMgr.cpp
@@ -49,9 +49,6 @@ SourceMgr::~SourceMgr() {
}
}
-/// AddIncludeFile - Search for a file with the specified name in the current
-/// directory or in one of the IncludeDirs. If no file is found, this returns
-/// ~0, otherwise it returns the buffer ID of the stacked file.
size_t SourceMgr::AddIncludeFile(const std::string &Filename,
SMLoc IncludeLoc,
std::string &IncludedFile) {
@@ -71,8 +68,6 @@ size_t SourceMgr::AddIncludeFile(const std::string &Filename,
}
-/// FindBufferContainingLoc - Return the ID of the buffer containing the
-/// specified location, returning -1 if not found.
int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
for (unsigned i = 0, e = Buffers.size(); i != e; ++i)
if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
@@ -83,8 +78,6 @@ int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
return -1;
}
-/// getLineAndColumn - Find the line and column number for the specified
-/// location in the specified file. This is not a fast method.
std::pair<unsigned, unsigned>
SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const {
if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc);
@@ -143,11 +136,6 @@ void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const {
}
-/// GetMessage - Return an SMDiagnostic at the specified location with the
-/// specified string.
-///
-/// @param Type - If non-null, the kind of message (e.g., "error") which is
-/// prefixed to the message.
SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind,
const Twine &Msg,
ArrayRef<SMRange> Ranges,