Giter Site home page Giter Site logo

gmh5225 / clang-format-all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gloryofnight/clang-format-all

0.0 1.0 0.0 1.29 MB

Tool to reformat your entire C++ project directory in fast multithreaded manor using clang-format

License: MIT License

Shell 0.85% C++ 90.78% CMake 6.01% Batchfile 2.36%

clang-format-all's Introduction

Introduction

This tool will help you reformat C++ project directory (or any directory containing Cxx files) using clang-format in fast multithreaded manor. Typical scripts are not very effective at reformating huge amouts of files at one go. This tool solves the issue by using newests features of C++17 standard.

There are no special dependencies, project can be easily compiled for Windows and Unix systems.

Download

Pre-build download avaible thru releases page.

Build

On Linux: sh ./scripts/build_unix.sh NOTE: you might need to install libtbb for successfull build!

On Windows (git bash): ./scripts/build_win.bat

Options

  • -S optional, specify source directory to reformat, if not prodived program will use current working directory as source
  • -I optional, ignore folders or files in releative paths to -S
  • -E optional, specify clang-format executable path, if not provided program will try to find it from LLVM path env variable
  • -C optional, specify additional command-line arguments for clang-format command, for example --dry-run --Werror --style firefox
  • --verbose enable more logging (could slow down the perfomance!)
  • --no-logs disable console output (could slighly improve the perfomance)

example command (git bash, windows):

./clang-format-all.exe -S C:/4.26.2-release/Engine/Source -E Tools/clang-format.exe -I Editor Developer ThirdParty -C "--dry-run --Werror" --verbose

Support

If you found this usefull, give it a star. Stars, yay โญ

If you encounter issue, use Issues section above and write everyting about it.

clang-format-all's People

Contributors

gloryofnight avatar gmh5225 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.