Skip to content

Commit 379926c

Browse files
committed
First import of the ALERT release
1 parent 9caa766 commit 379926c

File tree

348 files changed

+101132
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

348 files changed

+101132
-3
lines changed

Diff for: README.md

+92-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,93 @@
1-
CCCC
2-
====
1+
README.TXT for CCCC version 3.1.5-alert
2+
========================================
3+
4+
This is a fork of the program CCCC (C and C++ Code Counter) for
5+
the ALERT project. It includes minor modifications that allow to
6+
the platform to retrieve information about modules/classes and
7+
functions/methods.
8+
For more information about ALERT project please visit: http://www.alert-project.eu
9+
10+
This program exists to analyze and report measurements on
11+
source code in C, C++ and Java. The languages Ada83 and Ada95, which were
12+
supported in previous versions are presently not supported.
13+
14+
CCCC is a command line tool, originally implemented for Linux and other
15+
POSIX-style platforms, but also buildable on the Win32 platform.
16+
Files to be analyzed are listed (typically on the command line, although
17+
support does exist for the list of files to be read from standard input.
18+
The program analyzes the files and generates a one or more reports in HTML
19+
or XML format on the content.
20+
21+
This distribution is intended to be a single package containing everything
22+
which is required to compile and install CCCC on either a POSIX or Win32
23+
platform. Whereas previous distributions contained only a single directory,
24+
containing the source code of CCCC, this distribution is divided into a
25+
number of subdirectories, with the following contents:
26+
* A full distribution of the Purdue Compiler Construction Toolset (PCCTS) by
27+
Terence Parr and others, now maintained by Tom Moog of Polhode Inc.
28+
PCCTS is required to compile CCCC: in the past the distribution has relied
29+
on the existence of a PCCTS package on the compilation platform, while this
30+
distribution chooses to include it as part of CCCC's own package.
31+
* The source of a new version of CCCC, which I hope will turn out to be more
32+
efficient, accurate and useful than previous versions, although it is very
33+
similar in spirit and interface.
34+
* The source of an accessory program called CcccDevStudioAddIn.dll which
35+
provides integration between the command line CCCC program and the
36+
Microsoft Visual Studio IDE (version 5.0 or 6.0).
37+
* A directory of minimal test cases for the command line CCCC tool.
38+
* Miscellaneous batch files, makefiles and Microsoft Visual Studio workspace
39+
and project files to support building, testing and installing the software
40+
under POSIX and Win32.
41+
42+
The pccts directory contains software for which I am not the original
43+
author. The software has been placed in the public domain, with
44+
the expectation that appropriate credit will be given for use.
45+
46+
Since version 3.pre63, the recommended way of building the software is by
47+
using the BAT and SH scripts in the top directory of the distribution as
48+
appropriate for your platform. On Win32, the script build_w32vc.bat
49+
builds the software with Microsoft Visual C++ version 5 or 6 (locations
50+
within the script may need to be modified according to which you have
51+
and whether it is installed at the default position in the filesystem).
52+
On Linux and similar platforms the shell script build_posixgcc.sh should work.
53+
54+
Previous versions of CCCC have been released like PCCTS into the public
55+
domain with no restrictions, other than the pious hope that should anyone
56+
base a derivative work on it I will be given due credit. The current version
57+
is released under the GNU Public License.
58+
59+
CCCC was originally developed as a proof-of-concept tool for some ideas
60+
relating to software metrics which I was investigating as an academic
61+
research project. I have now completed the project and been awarded
62+
my PhD.
63+
64+
With this release, I am choosing to declare the project in a dormant
65+
state. I have no plans to do further releases, either to add new features
66+
or to correct existing defects. I am happy to provide advice to users of
67+
CCCC via email, and I encourage all users to exercise the rights granted
68+
them under the GPL to tinker with the code if this helps the software
69+
to meet their needs better.
70+
71+
I am grateful to a number of people for assistance on this project, including
72+
Terence Parr and his co-workers, and Tom Moog for the development and ongoing
73+
maintenance of the excellent PCCTS tool; my academic supervisor, Dr Thomas
74+
O'Neill; a number of developers who have contributed source patches; and
75+
many people who have mailed me with constructive suggestions or merely to
76+
confirm that they were using the tool. Feedback on the value or otherwise
77+
of CCCC will always be welcome.
78+
79+
80+
Tim Littlefair (tim_littlefair@hotmail.com)
81+
updated January 2005
82+
--------------
83+
84+
Santiago Dueñas (sduenas@libresoft.es)
85+
updated January 2013
86+
--------------
87+
This distribution of CCCC is available from
88+
http://github.com/AlertProject/CCCC
89+
90+
Past distributions of CCCC and related tools should be
91+
available for the forseeable future from http://cccc.sourceforge.net
92+
The Internet site for the original CCCC development is: http://cccc.sourceforge.net.
393

4-
C and C++ Code Counter, a software metrics tool. This is a fork of the original CCCC for ALERT project.

Diff for: bug_reports/prn10.html

+506
Large diffs are not rendered by default.

Diff for: bug_reports/prn11.html

+513
Large diffs are not rendered by default.

Diff for: bug_reports/prn12.html

+517
Large diffs are not rendered by default.

Diff for: bug_reports/prn8.html

+518
Large diffs are not rendered by default.

Diff for: bug_reports/prn9.html

+559
Large diffs are not rendered by default.

Diff for: build_posixgcc.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#! /bin/sh
2+
# build_posixgcc.sh
3+
4+
# This file builds and tests CCCC on a POSIX platform using the
5+
# GNU C++ compiler.
6+
7+
cd pccts
8+
make clean
9+
make
10+
cd ..
11+
12+
cd cccc
13+
make -f posixgcc.mak clean
14+
make -f posixgcc.mak
15+
cd ..
16+
17+
cd test
18+
make -f posix.mak
19+
cd ..
20+
21+

Diff for: build_w32bcc.PIF

967 Bytes
Binary file not shown.

Diff for: build_w32bcc.bat

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@rem build_w32bcc.bat
2+
@echo off
3+
4+
rem This file builds and tests CCCC under the Borland Command line
5+
rem C++ compiler.
6+
rem Path to Microsoft Visual Studio standard edition release 6.0
7+
set BCDIR=c:\Program Files\Borland\bcc55
8+
if not exist "%BCDIR%\bin\bcc32.exe" goto no_bcc
9+
10+
PATH "%BCDIR%\bin";%PATH%
11+
12+
rem One day there I will do Borland Makefiles for ANTLR and DLG.
13+
rem For the moment I will rely on versions precompiled under MSVC.
14+
if not exist pccts\bin\antlr.exe goto no_pccts
15+
if not exist pccts\bin\dlg.exe goto no_pccts
16+
17+
cd cccc
18+
if exist *.obj del *.obj
19+
if exist *.cpp del *.cpp
20+
make -f w32bcc.mak
21+
cd ..
22+
23+
cd test
24+
make -f w32bcc.mak
25+
cd ..
26+
27+
goto end
28+
29+
:no_bcc
30+
echo This script expects Borland C++ command line compiler to be in
31+
echo %VCDIR%\bin\bcc32.exe.
32+
echo Please modify the script if the location is different.
33+
goto end
34+
35+
:no_pccts
36+
echo This script expects precompiled versions of PCCTS binaries
37+
echo DLG and ANTLR to be in pccts\bin.
38+
echo The CCCC package contains makefiles to build these under
39+
echo MSVC, otherwise you can write and contribute makefiles for
40+
echo BCC32.
41+
42+
:end
43+

Diff for: build_w32vc.PIF

967 Bytes
Binary file not shown.

Diff for: build_w32vc.bat

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@rem build_w32vc.bat
2+
@echo off
3+
4+
rem This file builds and tests CCCC under Microsoft Visual Studio.
5+
rem Path to Microsoft Visual Studio standard edition release 6.0
6+
set VCDIR=c:\Program Files\Microsoft Visual Studio\vc98
7+
if not exist "%VCDIR%\bin\vcvars32.bat" goto no_vc
8+
9+
call "%VCDIR%\bin\vcvars32.bat"
10+
if not exist pccts\bin mkdir pccts\bin
11+
12+
cd pccts\dlg
13+
if exist *.obj del *.obj
14+
nmake -f DlgMS.mak
15+
copy dlg.exe ..\bin
16+
cd ..\..
17+
18+
cd pccts\antlr
19+
if exist *.obj del *.obj
20+
nmake -f AntlrMS.mak
21+
copy antlr.exe ..\bin
22+
cd ..\..
23+
24+
cd cccc
25+
if exist *.obj del *.obj
26+
if exist *.cpp del *.cpp
27+
nmake -f w32vc.mak
28+
cd ..
29+
30+
cd test
31+
nmake -f w32vc.mak
32+
cd ..
33+
34+
cd vcaddin
35+
nmake -f CcccDevStudioAddIn.mak CFG="CcccDevStudioAddIn - Win32 Release"
36+
cd ..
37+
38+
39+
goto end
40+
41+
:no_vc
42+
echo This script expects MS Visual C++ to be in %VCDIR%
43+
echo Please modify the script if the location is different.
44+
45+
46+
47+
:end
48+
49+
50+
51+
52+

0 commit comments

Comments
 (0)