//===- SourceManagerInternals.h - SourceManager Internals -------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// // /// \file /// Defines implementation details of the clang::SourceManager class. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_BASIC_SOURCEMANAGERINTERNALS_H #define LLVM_CLANG_BASIC_SOURCEMANAGERINTERNALS_H #include "clang/Basic/SourceLocation.h" #include "clang/Basic/SourceManager.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Allocator.h" #include <cassert> #include <map> #include <vector> namespace clang { //===----------------------------------------------------------------------===// // Line Table Implementation //===----------------------------------------------------------------------===// struct LineEntry { … }; // needed for FindNearestLineEntry (upper_bound of LineEntry) inline bool operator<(const LineEntry &lhs, const LineEntry &rhs) { … } inline bool operator<(const LineEntry &E, unsigned Offset) { … } inline bool operator<(unsigned Offset, const LineEntry &E) { … } /// Used to hold and unique data used to represent \#line information. class LineTableInfo { … }; } // namespace clang #endif // LLVM_CLANG_BASIC_SOURCEMANAGERINTERNALS_H