An open API service indexing awesome lists of open source software.

https://github.com/danmar/checkheaders

Automatically exported from code.google.com/p/checkheaders
https://github.com/danmar/checkheaders

Last synced: about 1 year ago
JSON representation

Automatically exported from code.google.com/p/checkheaders

Awesome Lists containing this project

README

          

============
checkheaders
============

Purpose

A simple tool that checks headers, to detect unnecessary #includes.

Compiling

Any C++ compiler should work.
There are no dependencies.

The compilation system is based on cmake and should work on all OSs supported by cmake.

In order to compile follow these steps:
* create a folder named 'build' under the root folder where the sources are located
* change the current folder to 'build' folder
* use either 'cmake ..' (for Linux) or cmake GUI (for Windows). Check cmake help
for more options.
* compile with either 'make' or Visual Studio C++
* optionally install with 'make install' (Linux only)

Usage

The syntax is:
checkheaders [-I ] [--skip ] [--skip-all] [--file ] [--xml] [--quiet]

Options

-I Include path
--file Specify the files to check in a text file
--quiet Do not show progress
--skip Skip missing include file
--skip-all Skip all missing include files
--version Print out version number
--vs Output report in VisualStudio format
--xml Output report in XML format

The error messages will be printed to stderr.

Examples:
checkheaders path
checkheaders f1.c f2.c

Project home

http://code.google.com/p/checkheaders