diff options
author | Jordan Rose <jordan_rose@apple.com> | 2014-06-17 02:15:36 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2014-06-17 02:15:36 +0000 |
commit | b4cfd0070d97797a4381133212ea31ccd18b48fc (patch) | |
tree | d3e6c68d00adaf35e3bfe403dbf2fe9cfa761763 /llvm/lib | |
parent | 3f2ed176a5692a46dc4596402b8cc20a447c53a8 (diff) | |
download | bcm5719-llvm-b4cfd0070d97797a4381133212ea31ccd18b48fc.tar.gz bcm5719-llvm-b4cfd0070d97797a4381133212ea31ccd18b48fc.zip |
Modernize doc comments for SourceMgr.
No functionality change.
llvm-svn: 211086
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index fc55451d599..6d530e6fa0d 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/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, |