File indexing completed on 2026-05-10 08:43:44
0001
0002
0003
0004
0005
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 }
0042 }
0043
0044 #endif