Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:44

0001 //==- NativeEnumInjectedSources.cpp - Native Injected Source Enumerator --*-==//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMINJECTEDSOURCES_H
0010 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMINJECTEDSOURCES_H
0011 
0012 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
0013 #include "llvm/DebugInfo/PDB/IPDBInjectedSource.h"
0014 #include "llvm/DebugInfo/PDB/Native/InjectedSourceStream.h"
0015 
0016 namespace llvm {
0017 namespace pdb {
0018 
0019 class InjectedSourceStream;
0020 class PDBFile;
0021 class PDBStringTable;
0022 
0023 class NativeEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> {
0024 public:
0025   NativeEnumInjectedSources(PDBFile &File, const InjectedSourceStream &IJS,
0026                             const PDBStringTable &Strings);
0027 
0028   uint32_t getChildCount() const override;
0029   std::unique_ptr<IPDBInjectedSource>
0030   getChildAtIndex(uint32_t Index) const override;
0031   std::unique_ptr<IPDBInjectedSource> getNext() override;
0032   void reset() override;
0033 
0034 private:
0035   PDBFile &File;
0036   const InjectedSourceStream &Stream;
0037   const PDBStringTable &Strings;
0038   InjectedSourceStream::const_iterator Cur;
0039 };
0040 
0041 } // namespace pdb
0042 } // namespace llvm
0043 
0044 #endif