modified_cpplint.py 文件源码

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

项目:linter 作者: ethz-asl 项目源码 文件源码
def SetFilters(self, filters):
    """Sets the error-message filters.

    These filters are applied when deciding whether to emit a given
    error message.

    Args:
      filters: A string of comma-separated filters (eg "+whitespace/indent").
               Each filter should start with + or -; else we die.

    Raises:
      ValueError: The comma-separated filters did not all start with '+' or '-'.
                  E.g. "-,+whitespace,-whitespace/indent,whitespace/badfilter"
    """
    # Default filters always have less priority than the flag ones.
    self.filters = _DEFAULT_FILTERS[:]
    self.AddFilters(filters)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号