]> granicus.if.org Git - clang/commitdiff
[clang][index-while-building][NFC] FileIndexRecord - Comments, replace auto with...
authorJan Korous <jkorous@apple.com>
Wed, 27 Feb 2019 21:48:02 +0000 (21:48 +0000)
committerJan Korous <jkorous@apple.com>
Wed, 27 Feb 2019 21:48:02 +0000 (21:48 +0000)
Differential Revision: https://reviews.llvm.org/D58478

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355036 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Index/DeclOccurrence.h
lib/Index/FileIndexRecord.cpp
lib/Index/FileIndexRecord.h

index 44d7f85620d866d200d337eb6e1d96135a9bcef0..16f03a84579ec40897851948a02cdb8ac969c7a4 100644 (file)
@@ -1,9 +1,8 @@
-//===--- DeclOccurrence.h - An occurrence of a decl within a file ---------===//
+//===- DeclOccurrence.h - An occurrence of a decl within a 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
 //
 //===----------------------------------------------------------------------===//
 
@@ -39,4 +38,4 @@ struct DeclOccurrence {
 } // namespace index
 } // namespace clang
 
-#endif
+#endif // LLVM_CLANG_INDEX_DECLOCCURRENCE_H
index 05dd2cd262a21a7c03501054dbc8f0b58a4fa364..f968700f503bc4abbf451504650d54e0db535c02 100644 (file)
@@ -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);
index 5ad4adc128348b3372cc5f6221c9946eddb40913..37bf96a71964a7ff524b21099d3e678ec0f87800 100644 (file)
@@ -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