.clang-tidy 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. ---
  5. Checks:
  6. -*, bugprone-*, google-*, -google-readability-todo,
  7. misc-definitions-in-headers, misc-misplaced-const, misc-redundant-expression,
  8. misc-static-assert, misc-unconventional-assign-operator,
  9. misc-uniqueptr-reset-release, misc-unused-*, modernize-*,
  10. -modernize-avoid-c-arrays, performance-*,
  11. readability-braces-around-statements, readability-identifier-naming
  12. WarningsAsErrors: true
  13. CheckOptions:
  14. - { key: readability-identifier-naming.ClassCase, value: CamelCase }
  15. - {
  16. key: readability-identifier-naming.ConstexprVariableCase,
  17. value: CamelCase,
  18. }
  19. - { key: readability-identifier-naming.FunctionCase, value: CamelCase }
  20. - { key: readability-identifier-naming.NamespaceCase, value: CamelCase }
  21. - { key: readability-identifier-naming.StructCase, value: CamelCase }
  22. - {
  23. key: readability-identifier-naming.TemplateParameterCase,
  24. value: CamelCase,
  25. }
  26. - { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
  27. - { key: readability-identifier-naming.TypedefCase, value: CamelCase }
  28. - { key: readability-identifier-naming.UnionCase, value: CamelCase }
  29. - { key: readability-identifier-naming.VariableCase, value: lower_case }
  30. - { key: readability-identifier-naming.ParameterCase, value: lower_case }
  31. - { key: readability-identifier-naming.ClassMemberCase, value: lower_case }