Skip to content

gagoyal/gg-uncrustify-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

gg-uncrustify-config

My version of config file for uncrustify for Objective C code.

How to install and start using Uncrustify

  1. Install brew --> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Install brew completion --> brew install bash-completion git

  3. Install uncrustify --> brew install uncrustify

  4. Download Xcode plugin from --> https://github.com/benoitsan/BBUncrustifyPlugin-Xcode

  5. Place downloaded file in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. Create this directory path if required.

  6. Copy uncrustify-GG.cfg to your home directory and rename it to uncrustify.cfg

  7. Restart Xcode and see under Edit menu the newly added option to execute.

Batch run uncrustify on all source files

Command in point 2 is for ObjC headers and implemetations as I provided OC option.

  1. Open Terminal and goto source directory. Rrun following command. Here dot is for current directory. --> find . -name '*.m' > list.txt

  2. Then run following command, assuming that uncrustify.cfg is placed in your home directory --> uncrustify -c ~/uncrustify.cfg --no-backup -l OC -F list.txt

About

My version of config file for uncrustify for Objective C code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published