blob: 57feba420808e3640c0ff1380ab358f39ce04b2c [file] [log] [blame]
Anthony Barbier89eefef2019-07-05 11:15:13 +01001---
Jacob Bramley5523f6c2019-06-28 11:37:26 +01002# We use the clang-tidy defaults and the Google styles as a baseline, with a
3# few changes specific to VIXL:
Jacob Bramley32ceac22019-10-02 15:40:23 +01004# -clang-analyzer-security.insecureAPI.rand:
5# This warns against the use of mrand48 (etc) and suggests replacing them
6# with arc4random. However, we are using these to drive tests and debug
7# tools, and we need the ability to manually seed the generator. This is
Jacob Bramley13cb52c2019-10-03 11:11:22 +01008# not possible with arc4random, and we do not need particularly robust
9# random numbers, so we continue to use mrand48.
Jacob Bramley5523f6c2019-06-28 11:37:26 +010010# -google-readability-todo:
11# We don't put names on TODOs.
12# -google-readability-function-size:
13# There are cases where we need (or generate) very long functions,
14# particularly involving macro-generated encoding tables and so on.
15# -google-build-using-namespace:
16# We do this in internal contexts (typically in .cc files), but clang-tidy
17# cannot tell the difference.
18# -google-explicit-constructor:
19# We follow this rule, but have some exceptions that are annotated using
20# cpplint's NOLINT format.
21#
22# TODO: The following _should_ be enabled, but currently show several failures:
23# google-readability-braces-around-statements
24# google-readability-namespace-comments
25# google-readability-casting
26#
27# TODO: Also consider enabling other rules, such as bugprone-* and cert-*.
Jacob Bramley32ceac22019-10-02 15:40:23 +010028Checks: '-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'
Jacob Bramley5523f6c2019-06-28 11:37:26 +010029HeaderFilterRegex: '\.h$'
Anthony Barbier89eefef2019-07-05 11:15:13 +010030AnalyzeTemporaryDtors: false
31CheckOptions:
32...
33