tree: 675038d3e2b29b60d95b3915048f253614686f37 [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