Modernize doc comments for SourceMgr.
No functionality change. llvm-svn: 211086
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user