Issue Details (XML | Word | Printable)

Key: LOGCXX-47
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Curt Arnold
Reporter: Curt Arnold
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

Check headers for missing declarations and Effective C++ violations

Created: 15/Dec/04 12:14 AM   Updated: 04/Jan/05 01:58 PM
Return to search
Component/s: Build
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Resolution Date: 04/Jan/05 01:58 PM


 Description  « Hide
The resolution adds a "header-check" task to build.xml to generate mock C++ files to check that headers explicitly include all dependencies and are in conformance with GCC's =Weffc++ option which checks the source code against rules from Scott Meyer's "Effective C++" books.

To use, both ant-contrib.jar and cpptasks.jar for the Ant-contrib project must be on the classpath.

ant header-check

Will copy all header files from include to build/header-check, will then generate .cpp files which look like:

#include "/home/whoever/logging-log4cxx/include/log4cxx/logger.h"
#include "/home/whoever/logging-log4cxx/include/log4cxx/logger.h"


and compile them with the -Wall and -Weffc++ options.

The current implementation of -Weffc++ will report errors for most STL implementations. To suppress these errors, non-functional "mock" declarations for some STL include files were added in the mock directory.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.