1b8021494Sopenharmony_ci--- 2b8021494Sopenharmony_ci# We use the clang-tidy defaults and the Google styles as a baseline, with a 3b8021494Sopenharmony_ci# few changes specific to VIXL: 4b8021494Sopenharmony_ci# -clang-analyzer-security.insecureAPI.rand: 5b8021494Sopenharmony_ci# This warns against the use of mrand48 (etc) and suggests replacing them 6b8021494Sopenharmony_ci# with arc4random. However, we are using these to drive tests and debug 7b8021494Sopenharmony_ci# tools, and we need the ability to manually seed the generator. This is 8b8021494Sopenharmony_ci# not possible with arc4random, and we do not need particularly robust 9b8021494Sopenharmony_ci# random numbers, so we continue to use mrand48. 10b8021494Sopenharmony_ci# -google-readability-todo: 11b8021494Sopenharmony_ci# We don't put names on TODOs. 12b8021494Sopenharmony_ci# -google-readability-function-size: 13b8021494Sopenharmony_ci# There are cases where we need (or generate) very long functions, 14b8021494Sopenharmony_ci# particularly involving macro-generated encoding tables and so on. 15b8021494Sopenharmony_ci# -google-build-using-namespace: 16b8021494Sopenharmony_ci# We do this in internal contexts (typically in .cc files), but clang-tidy 17b8021494Sopenharmony_ci# cannot tell the difference. 18b8021494Sopenharmony_ci# -google-explicit-constructor: 19b8021494Sopenharmony_ci# We follow this rule, but have some exceptions that are annotated using 20b8021494Sopenharmony_ci# cpplint's NOLINT format. 21b8021494Sopenharmony_ci# 22b8021494Sopenharmony_ci# TODO: The following _should_ be enabled, but currently show several failures: 23b8021494Sopenharmony_ci# google-readability-braces-around-statements 24b8021494Sopenharmony_ci# google-readability-namespace-comments 25b8021494Sopenharmony_ci# google-readability-casting 26b8021494Sopenharmony_ci# 27b8021494Sopenharmony_ci# TODO: Also consider enabling other rules, such as bugprone-* and cert-*. 28b8021494Sopenharmony_ciChecks: '-clang-analyzer-security.insecureAPI.rand,google-*,-google-readability-todo,-google-readability-function-size,-google-build-using-namespace,-google-explicit-constructor,-google-readability-braces-around-statements,-google-readability-namespace-comments,-google-readability-casting' 29b8021494Sopenharmony_ciHeaderFilterRegex: '\.h$' 30b8021494Sopenharmony_ciAnalyzeTemporaryDtors: false 31b8021494Sopenharmony_ciCheckOptions: 32b8021494Sopenharmony_ci... 33b8021494Sopenharmony_ci 34