Skip to content

Test project for refactoring experiments using clang-tidy autotidy and other

License

Notifications You must be signed in to change notification settings

mloskot/clang-tidy-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clang-tidy-test

Test project for refactoring experiments using clang-tidy and related tools e.g. autotidy.

screenshot

Prerequisites

Quickstart

  1. Run CMake to generate clang tooling compile_commands.json database

    cmake -S . -B _build
    
  2. Run clang-tidy/tool/run-clang-tidy.py

    run-clang-tidy-7.py -p=_build -header-filter=test/.* > clang-tidy.log 2>&1
    

    The script executes clang-tidy with the default set of checks on every translation unit in the compile_commands.json and displays the resulting warnings and errors.

  3. Run autotidy to start interactive refactoring session based on previously generated clang-tidy.log

    tidy clang-tidy.log
    

About

Test project for refactoring experiments using clang-tidy autotidy and other

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published