DIAEnumSourceFiles.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //==- DIAEnumSourceFiles.h - DIA Source File Enumerator impl -----*- C++ -*-==//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSOURCEFILES_H
  15. #include "DIASupport.h"
  16. #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
  17. #include "llvm/DebugInfo/PDB/IPDBSourceFile.h"
  18. namespace llvm {
  19. namespace pdb {
  20. class DIASession;
  21. class DIAEnumSourceFiles : public IPDBEnumChildren<IPDBSourceFile> {
  22. public:
  23. explicit DIAEnumSourceFiles(const DIASession &PDBSession,
  24. CComPtr<IDiaEnumSourceFiles> DiaEnumerator);
  25. uint32_t getChildCount() const override;
  26. ChildTypePtr getChildAtIndex(uint32_t Index) const override;
  27. ChildTypePtr getNext() override;
  28. void reset() override;
  29. private:
  30. const DIASession &Session;
  31. CComPtr<IDiaEnumSourceFiles> Enumerator;
  32. };
  33. }
  34. }
  35. #endif
  36. #ifdef __GNUC__
  37. #pragma GCC diagnostic pop
  38. #endif