summaryrefslogtreecommitdiffstats
path: root/src/backends/clang.rs
blob: 5a0c37f739bbe5810c9ce74ac5d26a6636e88569 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde_derive::{ Serialize, Deserialize };
use crate::backends::Backend;
use std::path::Path;

#[derive(Debug, Serialize, Deserialize, Default)]
pub struct ClangBackend {
    template: Option<String>
}

impl Backend for ClangBackend {
    fn get_template(&self) -> Option<&str> {
        match self.template {
            Some(ref t) => Some(t),
            None => None
        }
    }

    fn run(&self, _fname: &Path) -> std::io::Result<()> {
        todo!();
    }
}