From: Jan Korous Date: Wed, 27 Feb 2019 21:48:02 +0000 (+0000) Subject: [clang][index-while-building][NFC] FileIndexRecord - Comments, replace auto with... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2321ead80c7e9f77d325c09fae446b6a4ad98f98;p=clang [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 --- diff --git a/include/clang/Index/DeclOccurrence.h b/include/clang/Index/DeclOccurrence.h index 44d7f85620..16f03a8457 100644 --- a/include/clang/Index/DeclOccurrence.h +++ b/include/clang/Index/DeclOccurrence.h @@ -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 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