Code Shine

Introduction

While looking for a tool to automatically format some C++ code I came across a nice tool called Artistic Style and tried it out. It was pretty good, but I found a few bugs and attempted to fix them and quickly found that the software was quite difficult to update. Despite this, I would recommend Artistic Style for people wishing to quickly format up some code. I was looking for a small project to do at the time, so this is it.

Goals

  1. To be a cross-platform tool, initially working with Linux and Windows, then possibly Macs and other platforms
  2. To be a run-once tool that will not modify code if it is run on a file that it has previously updated
  3. To never break compilation of a file
  4. To be easy to maintain and update
  5. To start small and get better in small iterative steps (XP style)

Current Progress

A little bit more progress so we can do indenting as well as spaces and tabs.

Date Progress
1st May 2004 Correctly indent C++ files. No bracket convention conversions yet
6th April 2004 Basic conversion of tabs to spaces or spaces to tabs