tree: 3b348e0c441c63c4bd57f99f1a156d754dbaa725 [path history] [tgz]
  1. bin/
  2. lib/
  3. test/
  4. pubspec.yaml
  5. README.md
tools/clang_tidy/README.md

clang_tidy

This is a Dart program/library that runs clang_tidy over modified files in the Flutter engine repo.

By default the linter runs on the repo files changed contained in src/out/host_debug/compile_commands.json command. To check files other than in host_debug use --target-variant android_debug_unopt, --target-variant ios_debug_sim_unopt, etc.

Alternatively, use --compile-commands to specify a path to a compile_commands.json file.

$ bin/main.dart --target-variant <engine-variant>
$ bin/main.dart --compile-commands <compile_commands.json-path>
$ bin/main.dart --help