|
@@ -1,4 +1,4 @@
|
|
-//===--- FileIndexRecord.cpp - Index data per file ------------------------===//
|
|
|
|
|
|
+//===--- FileIndexRecord.cpp - Index data per file --------------*- C++ -*-===//
|
|
//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
//
|
|
@@ -42,7 +42,7 @@ void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset,
|
|
void FileIndexRecord::print(llvm::raw_ostream &OS) const {
|
|
void FileIndexRecord::print(llvm::raw_ostream &OS) const {
|
|
OS << "DECLS BEGIN ---\n";
|
|
OS << "DECLS BEGIN ---\n";
|
|
for (auto &DclInfo : Decls) {
|
|
for (auto &DclInfo : Decls) {
|
|
- auto D = DclInfo.Dcl;
|
|
|
|
|
|
+ const Decl *D = DclInfo.Dcl;
|
|
SourceManager &SM = D->getASTContext().getSourceManager();
|
|
SourceManager &SM = D->getASTContext().getSourceManager();
|
|
SourceLocation Loc = SM.getFileLoc(D->getLocation());
|
|
SourceLocation Loc = SM.getFileLoc(D->getLocation());
|
|
PresumedLoc PLoc = SM.getPresumedLoc(Loc);
|
|
PresumedLoc PLoc = SM.getPresumedLoc(Loc);
|