clang

.clang-tidy

Checks: >
  google-*,
  -*,
  modernize-*,
  clang-analyzer-*,
  performance-*,
  readability-*,
  -readability-magic-numbers,
  -modernize-use-trailing-return-type,
  -modernize-pass-by-value

CheckOptions:
  - key: readability-magic-numbers
    value: '0'
  - key: modernize-use-trailing-return-type
    value: '0'
  - key: modernize-pass-by-value
    value: '0'
  - key: readability-braces-around-statements.ShortStatementLines
    value: '1'
  - key: readability-function-size.BranchThreshold
    value: '4294967295'
  - key: readability-function-size.LineThreshold
    value: '4294967295'
  - key: readability-function-size.ParameterThreshold
    value: '4294967295'
  - key: readability-function-size.NestingThreshold
    value: '4294967295'
  - key: readability-function-size.VariableThreshold
    value: '4294967295'

WarningsAsErrors: ''
HeaderFilterRegex: '.*'
FormatStyle: 'google'

.clang-format

参考资料:官方文档
中文资料

posted @ 2023-12-12 20:26  hacker_dvd  阅读(25)  评论(0)    收藏  举报