Recent Changes - Search:
ECG Home






Fall 2017

Older Courses

Spring 2017

Fall 2016

Spring 2016

Fall 2015

Spring 2015

Fall 2014

Spring 2014

Fall 2013

Spring 2013

Fall 2012

Spring 2012

Fall 2011

Spring 2011

Fall 2010

Spring 2010

Fall 2009

Spring 2009

Fall 2008

Spring 2008

Fall 2007


edit SideBar


Home Assignments Lecture Blog Resources Discussion Group

Refactor and cpplint

This assignment is an opportunity to make up lost points on a prior assignment, and to gain experience using Google's cpplint code style tool.

The assignment

  • Pick any prior assignment
  • Get all code files to pass the tests done by cpplint
  • Package them up and submit


Google's style guide is here:

The file can be retrieved from

Save the file on your machine, and then:

chmod +x
sudo mv /usr/local/bin

Now, you can style-check a file using as an executable: filename

Alternately, you could run it using Python:

python filename

Using cpplint

We've agreed to turn off certain warnings. At present, you may run with: --filter=-runtime/references,-build/header_guard --extensions=cpp,hpp

Package your work

  1. Put your files in the subdirectory called psx.
  2. Create a file called psx-readme.txt. The first line of this file must contain the name of the assignment, by itself, e.g. ps1 or ps3b. In the rest of the file, explain which changes you made to the original homework.
  3. Use the tar command from the parent directory of your psx to compress your directory structure:
tar czvf <archive-file-name>.tar.gz psx

Submit your work

Submit via Bottlenose as follows:
Martin section (201):
Grinberg section (202):

Edit - History - Print - Recent Changes - Search
Page last modified on March 20, 2015, at 02:58 PM