Thursday, June 18, 2009

Some Refactoring Notes

Used to indent code:

find . \( -name "*.hpp" -or -name "*.cpp" \) | xargs astyle --indent=spaces=4 --brackets=block --indent-labels --pad=oper --one-line=keep-statements --convert-tabs --indent-preprocessor

Generating Code::Blocks Project using Cmake:

cmake -G "CodeBlocks - Unix Makefiles" ..

Regular Expressions used during refactoring using Code::Blocks:

search replace

utility::shared_ptr<([\w ]*)> \1\&

What Sucked

There is no machine learning in the editors. Therefore, every task has become repetitive.

No comments: