Menu

Tree [e554a5] master /
 History

HTTPS access


File Date Author Commit
 CMakeFiles 2025-10-12 hackfunjack hackfunjack [e554a5] add new feature
 testdir 2025-10-08 hackfunjack hackfunjack [02c8f2] add new feature
 testdirbak 2025-10-08 hackfunjack hackfunjack [da9de9] add new feature
 CMakeCache.txt 2025-10-07 hackfunjack hackfunjack [6fecb8] add new feature
 CMakeLists.txt 2025-10-07 hackfunjack hackfunjack [6fecb8] add new feature
 LineProcessor.cpp 2025-10-07 hackfunjack hackfunjack [28da03] add new feature
 LineProcessor.h 2025-10-12 hackfunjack hackfunjack [dfe544] add new feature
 Makefile 2025-10-12 hackfunjack hackfunjack [c0fdec] add new feature
 MultiLineProcessor.cpp 2025-10-08 hackfunjack hackfunjack [115f99] add new feature
 MultiLineProcessor.h 2025-10-12 hackfunjack hackfunjack [dfe544] add new feature
 ReadMe.txt 2025-10-08 hackfunjack hackfunjack [b04b5c] add new feature
 UtilProcessor.cpp 2025-10-08 hackfunjack hackfunjack [6f985f] add new feature
 UtilProcessor.h 2025-10-08 hackfunjack hackfunjack [687776] add new feature
 cmake_install.cmake 2025-10-07 hackfunjack hackfunjack [6fecb8] add new feature
 mk.sh 2025-10-07 hackfunjack hackfunjack [6fecb8] add new feature
 testuniformat.cpp 2025-10-12 hackfunjack hackfunjack [e554a5] add new feature
 testuniformat.h 2025-10-12 hackfunjack hackfunjack [e554a5] add new feature
 uniformat 2025-10-12 hackfunjack hackfunjack [e554a5] add new feature
 uniformat.cpp 2025-10-12 hackfunjack hackfunjack [e554a5] add new feature

Read Me

1. Build command:

sudo cmake .

sudo make

2. Run command:
sudo ./uniformat ./testdir

3. After running this command, the folder /home/testdir will 
   be copyed to /home/testdirbak and then files in this new
   folder will be processed as follows. You can change the 
   folder to your own folder.

4. Feature list:
  1. replace all tabs with spaces(replace each tab to 4 spaces)
  2. remove spaces at head of each line
  3. remove spaces at tail of each line
  4. remove redundant null lines, only reserve one
  5. move curly left bracket at line tail to next line
  6. add unified file header and file tail
  7. move all include statements together at file beginning, with
     <> together and "" together
  8. sort include statements alphabeticly




Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.