-//===--- 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
//
//===----------------------------------------------------------------------===//
} // namespace index
} // namespace clang
-#endif
+#endif // LLVM_CLANG_INDEX_DECLOCCURRENCE_H
-//===--- FileIndexRecord.cpp - Index data per file ------------------------===//
+//===--- FileIndexRecord.cpp - Index data per file --------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
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);
-//===--- 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
//
//===----------------------------------------------------------------------===//
} // end namespace index
} // end namespace clang
-#endif
+#endif // LLVM_CLANG_LIB_INDEX_FILEINDEXRECORD_H