.clang-tidy 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. Checks: 'clang-diagnostic-*,clang-analyzer-*,google-*,modernize-*,-modernize-use-trailing-return-type,readability-*,portability-*,performance-*,bugprone-*,android-*,darwin-*,clang-analyzer-*'
  3. WarningsAsErrors: ''
  4. HeaderFilterRegex: ''
  5. AnalyzeTemporaryDtors: false
  6. FormatStyle: file
  7. CheckOptions:
  8. - key: cert-dcl16-c.NewSuffixes
  9. value: 'L;LL;LU;LLU'
  10. - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
  11. value: '0'
  12. - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
  13. value: '1'
  14. - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
  15. value: '1'
  16. - key: google-build-namespaces.HeaderFileExtensions
  17. value: ',h,hh,hpp,hxx'
  18. - key: google-global-names-in-headers.HeaderFileExtensions
  19. value: ',h,hh,hpp,hxx'
  20. - key: google-readability-braces-around-statements.ShortStatementLines
  21. value: '1'
  22. - key: google-readability-function-size.BranchThreshold
  23. value: '4294967295'
  24. - key: google-readability-function-size.LineThreshold
  25. value: '4294967295'
  26. - key: google-readability-function-size.NestingThreshold
  27. value: '4294967295'
  28. - key: google-readability-function-size.ParameterThreshold
  29. value: '4294967295'
  30. - key: google-readability-function-size.StatementThreshold
  31. value: '800'
  32. - key: google-readability-function-size.VariableThreshold
  33. value: '4294967295'
  34. - key: google-readability-namespace-comments.ShortNamespaceLines
  35. value: '10'
  36. - key: google-readability-namespace-comments.SpacesBeforeComments
  37. value: '2'
  38. - key: google-runtime-int.SignedTypePrefix
  39. value: int
  40. - key: google-runtime-int.TypeSuffix
  41. value: ''
  42. - key: google-runtime-int.UnsignedTypePrefix
  43. value: uint
  44. - key: google-runtime-references.WhiteListTypes
  45. value: ''
  46. - key: modernize-loop-convert.MaxCopySize
  47. value: '16'
  48. - key: modernize-loop-convert.MinConfidence
  49. value: reasonable
  50. - key: modernize-loop-convert.NamingStyle
  51. value: CamelCase
  52. - key: modernize-pass-by-value.IncludeStyle
  53. value: llvm
  54. - key: modernize-replace-auto-ptr.IncludeStyle
  55. value: llvm
  56. - key: modernize-use-nullptr.NullMacros
  57. value: 'NULL'
  58. ...