Lines Matching refs:error_code
33 const llvm::error_code success;
601 error_code make_absolute(SmallVectorImpl<char> &path) {
613 if (error_code ec = current_path(current_dir)) return ec;
649 error_code create_directories(const Twine &path, bool &existed) {
656 if (error_code ec = fs::exists(parent, parent_exists)) return ec;
659 if (error_code ec = create_directories(parent, existed)) return ec;
676 error_code is_directory(const Twine &path, bool &result) {
678 if (error_code ec = status(path, st))
688 error_code is_regular_file(const Twine &path, bool &result) {
690 if (error_code ec = status(path, st))
700 error_code is_symlink(const Twine &path, bool &result) {
702 if (error_code ec = status(path, st))
723 error_code has_magic(const Twine &path, const Twine &magic, bool &result) {
728 if (error_code ec = get_magic(path, Magic.size(), Buffer)) {
741 error_code identify_magic(const Twine &path, LLVMFileType &result) {
743 error_code ec = get_magic(path, Magic.capacity(), Magic);
752 error_code remove_all_r(StringRef path, file_type ft, uint32_t &count) {
755 error_code ec;
759 if (error_code ec = i->status(st)) return ec;
760 if (error_code ec = remove_all_r(i->path(), st.type(), count)) return ec;
763 if (error_code ec = remove(path, obviously_this_exists)) return ec;
768 if (error_code ec = remove(path, obviously_this_exists)) return ec;
777 error_code remove_all(const Twine &path, uint32_t &num_removed) {
782 if (error_code ec = status(path, fs))
788 error_code directory_entry::status(file_status &result) const {