代码拉取完成,页面将自动刷新
同步操作将从 OSCC/iEDA 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# ***************************************************************************************
# Copyright (c) 2023-2025 Peng Cheng Laboratory
# Copyright (c) 2023-2025 Institute of Computing Technology, Chinese Academy of Sciences
# Copyright (c) 2023-2025 Beijing Institute of Open Source Chip
#
# iEDA is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
#
# See the Mulan PSL v2 for more details.
# ***************************************************************************************
Checks: >
readability-identifier-naming
# readability-*
# -readability-braces-around-statements,
# -readability-identifier-length,
# -readability-magic-numbers,
# -readability-named-parameter,
# -readability-redundant-declaration,
# -readability-function-cognitive-complexity
# abseil-*,
# boost-*,
# bugprone-*,
# google-*,
# misc-*,
# modernize-*,
# performance-*,
# portability-*,
# -google-readability-braces-around-statements,
# -google-readability-namespace-comments,
# -google-runtime-references,
# -misc-non-private-member-variables-in-classes,
# -misc-const-correctness,
# -modernize-return-braced-init-list,
# -modernize-use-trailing-return-type,
# -modernize-avoid-c-arrays,
# -performance-move-const-arg,
# Turn all the warnings from the checks above into errors.
# WarningsAsErrors: "*"
HeaderFilterRegex: '*.h, *.hpp, *.hh'
CheckOptions:
# 局部变量名单词之间使用下划线隔开
- { key: readability-identifier-naming.LocalVariableCase, value: lower_case }
- { key: readability-identifier-naming.LocalVariableIgnoredRegexp, value: '_[a-zA-Z_]+' }
# 类的变量成员用下划线作为前缀如 _file_name
- { key: readability-identifier-naming.ClassMemberCase, value: lower_case }
- { key: readability-identifier-naming.ClassMemberPrefix, value: _ }
# 类的函数名使用驼峰类型;如doSomething()
- { key: readability-identifier-naming.ClassMethodCase, value: camelBack }
# 类的成员存取使用 如get_file_name() set_file_name()
- { key: readability-identifier-naming.ClassMethodIgnoredRegexp, value: '[gs]et_[a-zA-Z_]+' }
# 类名是PASCAL风格,即首字母大写 如MyClass
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
# 常量用k作为前缀后面是PASCAL风格如 kFileName
- { key: readability-identifier-naming.GlobalConstantPrefix, value: k }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
# 全局变量用g作为前缀后面是PASCAL风格如 gFileName
- { key: readability-identifier-naming.GlobalVariablePrefix, value: g }
- { key: readability-identifier-naming.GlobalVariableCase, value: CamelCase }
# 接口类必须以Interface为后缀
- { key: readability-identifier-naming.AbstractClassSuffix, value: Interface }
# 宏定义全大写,中间用下划线隔开 FILE_NAME
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantPrefix, value: k }
- { key: readability-identifier-naming.GlobalFunctionCase, value: CamelCase }
# - { key: readability-identifier-naming.NamespaceCase, value: aNy_CasE }
# - { key: readability-identifier-naming.TemplateParameterCase, value: aNy_CasE }
# - { key: readability-identifier-naming.ConstexprVariableCase, value: aNy_CasE }
# - { key: readability-identifier-naming.ConstexprVariablePrefix, value: k }
# - { key: readability-identifier-naming.GlobalConstantCase, value: aNy_CasE }
# - { key: readability-identifier-naming.GlobalConstantPrefix, value: k }
# - { key: readability-identifier-naming.MemberConstantCase, value: aNy_CasE }
# - { key: readability-identifier-naming.MemberConstantPrefix, value: k }
# - { key: readability-identifier-naming.StaticConstantCase, value: aNy_CasE }
# - { key: readability-identifier-naming.StaticConstantPrefix, value: k }
# - { key: readability-implicit-bool-conversion.AllowIntegerConditions, value: 1 }
# - { key: readability-implicit-bool-conversion.AllowPointerConditions, value: 1 }
# - { key: readability-function-cognitive-complexity.IgnoreMacros, value: 1 }
# reference: https://clang.llvm.org/extra/clang-tidy/checks/list.html
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。