Skip to content

fcebron/clang-format-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

clang-format-style

Language Version

Using clang-formater on Ubuntu

  • First install clang-format-6.0 :

    sudo aptitude install clang-format-6.0
    
  • Then copy the syle file of this repository into your project folder. Rename it as ".clang-format".

  • You just need to type the following command in the project's directory where the config file is stored:

    find . -name '*.h' -or -name '*.hpp' -or -name '*.cpp' -or -name '*.cc' | xargs clang-format-6.0 -i -style=file $1
    

Be careful the previous command can freeze your computer in case of too big projects (for more than a hundred files). In this case you will need to treat little batches of files, by changing the "find" part of the command!

Summary

My personal config file for Clang-format!

About

My personal config file for Clang-format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published