clang
9.0.0
|
Stores the declaration occurrences seen in a particular source or header file of a translation unit. More...
#include "/work/llvm-www-releases/9.0.0/docsbuild/llvm.src/tools/clang/lib/Index/FileIndexRecord.h"
Public Member Functions | |
FileIndexRecord (FileID FID, bool IsSystem) | |
ArrayRef< DeclOccurrence > | getDeclOccurrencesSortedByOffset () const |
FileID | getFileID () const |
bool | isSystem () const |
void | addDeclOccurence (SymbolRoleSet Roles, unsigned Offset, const Decl *D, ArrayRef< SymbolRelation > Relations) |
Adds an occurrence of the canonical declaration D at the supplied Offset . More... | |
void | print (llvm::raw_ostream &OS) const |
Stores the declaration occurrences seen in a particular source or header file of a translation unit.
Definition at line 26 of file FileIndexRecord.h.
Definition at line 33 of file FileIndexRecord.h.
void FileIndexRecord::addDeclOccurence | ( | SymbolRoleSet | Roles, |
unsigned | Offset, | ||
const Decl * | D, | ||
ArrayRef< SymbolRelation > | Relations | ||
) |
Adds an occurrence of the canonical declaration D
at the supplied Offset
.
Roles | the roles the occurrence fulfills in this position. |
Offset | the offset in the file of this occurrence. |
D | the canonical declaration this is an occurrence of. |
Relations | the set of symbols related to this occurrence. |
Definition at line 19 of file FileIndexRecord.cpp.
References clang::Decl::isCanonicalDecl(), clang::Last, and Offset.
Referenced by isSystem().
|
inline |
Definition at line 35 of file FileIndexRecord.h.
|
inline |
Definition at line 39 of file FileIndexRecord.h.
|
inline |
Definition at line 40 of file FileIndexRecord.h.
References addDeclOccurence(), Offset, and print().
void FileIndexRecord::print | ( | llvm::raw_ostream & | OS | ) | const |
Definition at line 43 of file FileIndexRecord.cpp.
References clang::Decl::getASTContext(), clang::PresumedLoc::getColumn(), clang::SourceManager::getFileLoc(), clang::PresumedLoc::getFilename(), clang::PresumedLoc::getLine(), clang::Decl::getLocation(), clang::SourceManager::getPresumedLoc(), clang::ASTContext::getSourceManager(), and SM.
Referenced by isSystem().