Build tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

compdb.h 343B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. #include <ostream>
  5. namespace compdb {
  6. class Writer {
  7. public:
  8. Writer(std::ostream &stream): stream_(stream) {}
  9. ~Writer();
  10. void write(
  11. const std::string &dir, const std::string &file,
  12. const std::vector<std::string> &cmd);
  13. private:
  14. std::ostream &stream_;
  15. bool first_ = true;
  16. };
  17. }