pub struct Clang {
pub path: PathBuf,
pub version: Option<CXVersion>,
pub c_search_paths: Option<Vec<PathBuf>>,
pub cpp_search_paths: Option<Vec<PathBuf>>,
}Expand description
A clang executable.
Fields
path: PathBufThe path to this clang executable.
version: Option<CXVersion>The version of this clang executable if it could be parsed.
c_search_paths: Option<Vec<PathBuf>>The directories searched by this clang executable for C headers if they could be parsed.
cpp_search_paths: Option<Vec<PathBuf>>The directories searched by this clang executable for C++ headers if they could be parsed.
Implementations
sourceimpl Clang
impl Clang
sourcepub fn find(path: Option<&Path>, args: &[String]) -> Option<Clang>
pub fn find(path: Option<&Path>, args: &[String]) -> Option<Clang>
Returns a clang executable if one can be found.
If the CLANG_PATH environment variable is set, that is the instance of clang used.
Otherwise, a series of directories are searched. First, If a path is supplied, that is the
first directory searched. Then, the directory returned by llvm-config --bindir is
searched. On OS X systems, xcodebuild -find clang will next be queried. Last, the
directories in the system’s PATH are searched.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Clang
impl Send for Clang
impl Sync for Clang
impl Unpin for Clang
impl UnwindSafe for Clang
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more