summaryrefslogtreecommitdiff
path: root/lib/Index
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-02-27 21:48:02 +0000
committerJan Korous <jkorous@apple.com>2019-02-27 21:48:02 +0000
commit2321ead80c7e9f77d325c09fae446b6a4ad98f98 (patch)
tree8499ea3c35caa0ef86b8c28cf1e6cd62c20ac81a /lib/Index
parent4613d0fcad5aba64f9778e37d6cae27548fa6c60 (diff)
downloadclang-2321ead80c7e9f77d325c09fae446b6a4ad98f98.tar.gz
[clang][index-while-building][NFC] FileIndexRecord - Comments, replace auto with type
Differential Revision: https://reviews.llvm.org/D58478 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index')
-rw-r--r--lib/Index/FileIndexRecord.cpp4
-rw-r--r--lib/Index/FileIndexRecord.h11
2 files changed, 7 insertions, 8 deletions
diff --git a/lib/Index/FileIndexRecord.cpp b/lib/Index/FileIndexRecord.cpp
index 05dd2cd262..f968700f50 100644
--- a/lib/Index/FileIndexRecord.cpp
+++ b/lib/Index/FileIndexRecord.cpp
@@ -1,4 +1,4 @@
-//===--- FileIndexRecord.cpp - Index data per file ------------------------===//
+//===--- FileIndexRecord.cpp - Index data per file --------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@@ -42,7 +42,7 @@ void FileIndexRecord::addDeclOccurence(SymbolRoleSet Roles, unsigned Offset,
void FileIndexRecord::print(llvm::raw_ostream &OS) const {
OS << "DECLS BEGIN ---\n";
for (auto &DclInfo : Decls) {
- auto D = DclInfo.Dcl;
+ const Decl *D = DclInfo.Dcl;
SourceManager &SM = D->getASTContext().getSourceManager();
SourceLocation Loc = SM.getFileLoc(D->getLocation());
PresumedLoc PLoc = SM.getPresumedLoc(Loc);
diff --git a/lib/Index/FileIndexRecord.h b/lib/Index/FileIndexRecord.h
index 5ad4adc128..37bf96a719 100644
--- a/lib/Index/FileIndexRecord.h
+++ b/lib/Index/FileIndexRecord.h
@@ -1,9 +1,8 @@
-//===--- FileIndexRecord.h - Index data per file --------------------------===//
+//===--- FileIndexRecord.h - Index data per file ----------------*- C++ -*-===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -55,4 +54,4 @@ public:
} // end namespace index
} // end namespace clang
-#endif
+#endif // LLVM_CLANG_LIB_INDEX_FILEINDEXRECORD_H