您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
505B

  1. #pragma once
  2. #include <dds/util/fs.hpp>
  3. #include <optional>
  4. #include <vector>
  5. namespace dds {
  6. enum class source_kind {
  7. header,
  8. source,
  9. test,
  10. app,
  11. };
  12. std::optional<source_kind> infer_source_kind(path_ref) noexcept;
  13. struct source_file {
  14. fs::path path;
  15. source_kind kind;
  16. static std::optional<source_file> from_path(path_ref) noexcept;
  17. static std::vector<source_file> collect_for_dir(path_ref);
  18. };
  19. using source_list = std::vector<source_file>;
  20. } // namespace dds