bin_complete.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:EasyClangComplete 作者: niosus 项目源码 文件源码
def update(self, view, settings):
        """Update build for current view.

        Args:
            view (sublime.View): this view
            show_errors (TYPE): do we need to show errors? If not this is a
                dummy function as we gain nothing from building it with binary.

        """
        if settings.errors_style == SettingsStorage.NONE_STYLE:
            # in this class there is no need to rebuild the file. It brings no
            # benefits. We only want to do it if we need to show errors.
            return False

        start = time.time()
        output_text = self.run_clang_command(view, "update")
        end = time.time()
        log.debug("rebuilding done in %s seconds", end - start)
        self.save_errors(output_text)
        self.show_errors(view)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号