• Stars
    star
    176
  • Rank 209,597 (Top 5 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

C code refactoring browser

Build Status Coverity Scan Build Status

CScout is a source code analyzer and refactoring browser for collections of C programs. It can process workspaces of multiple projects (a project is defined as a collection of C source files that are linked together) mapping the complexity introduced by the C preprocessor back into the original C source code files. CScout takes advantage of modern hardware (fast processors and large memory capacities) to analyze C source code beyond the level of detail and accuracy provided by current compilers and linkers. The analysis CScout performs takes into account the identifier scopes introduced by the C preprocessor and the C language proper scopes and namespaces. CScout has already been applied on projects of tens of thousands of lines to millions of lines, like the Linux, OpenSolaris, and FreeBSD kernels, and the Apache web server.

For more details, examples, and documentation visit the project's web site.

Building, Testing, Installing, Using

CScout has been compiled and tested on GNU/Linux (Debian jessie), Apple OS X (El Capitan), FreeBSD (11.0), and Cygwin. In order to build and use CScout you need a Unix (like) system with a modern C++ compiler, GNU make, and Perl. To test CScout you also need to be able to run Java from the command line, in order to use the HSQLDB database. To view CScout's diagrams you must have the GraphViz dot command in your executable file path.

  • To build run make. You can also use the -j make option to increase the build's speed.
  • To build and test, run make test.
  • To install (typically after building and testing), run sudo make install.
  • To see CScout in action run make example.

Under FreeBSD use gmake rather than make.

Testing requires an installed version of HSQLDB. If this is already installed in your system, specify to make the absolute path of the hsqldb directory, e.g. make HSQLDB_DIR=/usr/local/lib/hsqldb-2.3.3/hsqldb. Otherwise, make will automatically download and unpack a local copy of HSQLDB in the current directory.

Contributing

  • You can contribute to any of the open issues or you can open a new one describing what you want to do.
  • For small-scale improvements and fixes simply submit a GitHub pull request. Each pull request should cover only a single feature or bug fix. The changed code should follow the code style of the rest of the program. If you're contributing a feature don't forget to update the documentation. If you're submitting a bug fix, open a corresponding GitHub issue, and refer to the issue in your commit. Avoid gratuitous code changes. Ensure that the tests continue to pass after your change. If you're fixing a bug or adding a feature related to the language, add a corresponding test case.
  • Before embarking on a large-scale contribution, please open a GitHub issue.

More Repositories

1

unix-history-repo

Continuous Unix commit history from 1970 until today
Assembly
6,318
star
2

latex-advice

Advice for writing LaTeX documents
TeX
1,042
star
3

git-issue

Git-based decentralized issue management
Shell
711
star
4

awesome-msr

A curated repository of software engineering repository mining data sets
374
star
5

UMLGraph

Declarative specification and drawing of UML diagrams
Java
336
star
6

unix-history-make

Code and data to create a git repository representing the Unix source code history
Roff
317
star
7

dgsh

Shell supporting pipelines to and from multiple processes
C
316
star
8

pmonitor

Progress monitor: monitor a job's progress
Shell
185
star
9

unix-v4man

Typeset the Fourth Research Edition Unix Programmer's Manual
Roff
137
star
10

ai-cli-lib

Add AI capabilities to any readline-enabled command-line program
C
109
star
11

ckjm

Chidamber and Kemerer Java Metrics
HTML
84
star
12

unix-architecture

Unix architecture evolution diagrams
Python
80
star
13

alexandria3k

Local relational access to openly-available publication data sets
Python
71
star
14

tokenizer

Convert source code into numerical tokens
C++
61
star
15

cqmetrics

C Quality Metrics
C++
56
star
16

effective-debugging

Code examples used in the book Effective Debugging (Addison-Wesley, 2016)
Java
42
star
17

bib2xhtml

Convert BibTeX references into XHTML
HTML
34
star
18

speak

Reviving the Research Edition Unix speak command
Rust
34
star
19

awesome-rest-apis

Currated collaborative list of open RESTful API web services
32
star
20

simple-rolap

Simple relational online analytical processing
Shell
27
star
21

unix-history-man

Manual page availability across major Unix releases
Perl
25
star
22

greek-vat-data

Retrieve the registration data associated with a Greek VAT number
Java
25
star
23

rdbunit

Unit testing for relational database queries
Python
23
star
24

unix-v3man

Typeset the Third Research Edition Unix Programmer's Manual
Roff
22
star
25

outwit

Command-line tools for accessing the Windows clipboard, registry, databases, document properties, and links.
C
20
star
26

lego-power-scratch

Control Lego power functions from Scratch
Python
17
star
27

oral-history-of-unix

Work by the late Michael Sean Mahoney, Professor of the History of Science at Princeton University, to create a history of Unix
HTML
16
star
28

kbd-layout-fix

Auto-correct text entered with the wrong keyboard layout
AutoHotkey
13
star
29

holiday-card

Simple Java AWT application to draw a Christmas card
Java
12
star
30

linux-history-repo

Reconstruction of the Linux kernel history with correct dates; see https://github.com/dspinellis/linux-history-make
C
11
star
31

socketpipe

Super efficient TCP connection between remote processes
C
11
star
32

manview

Unix man pages online viewer
CSS
10
star
33

OpenMIC

Open source implementation of the maximal information coefficient measure
C++
10
star
34

git-subst

Git plugin for substituting a regular expression with some text across all files under revision control
Shell
10
star
35

dostrace

A tool for logging MS-DOS system calls
C
9
star
36

word-master-ancient-greek

Ancient Greek version of the Wordly look-alike Word Master
JavaScript
9
star
37

greek-classifier

Classify surnames as Greek
Emacs Lisp
8
star
38

fileprune

Prune a file set according to a given age distribution
Roff
8
star
39

Kerberos

DSL-Configurable burglar alarm system for the Raspberry Pi
C
8
star
40

alt-truth

Alternative version of truth
C
7
star
41

linux-history-make

Reconstruct the Linux kernel history with correct dates
Shell
7
star
42

inaugural-analysis

Analysis of US inaugural presidential addresses
Python
7
star
43

Secrets-for-Java-SE

Decode Secrets for Android files on a Java SE platform
Java
6
star
44

cas2svg

Visualize Graphic 2 terminal .cas character descriptions
Perl
6
star
45

dgcmodem

Code fixes for the linuxant dgc modem drivers for 3.x kernels.
Shell
5
star
46

bibtools

Extract BibTeX records to standalone file for sharing with others
Perl
5
star
47

montty

Monitor input coming on a serial port
C
4
star
48

phd-reading-list

A reading list for research students (and their supervisors)
4
star
49

swill

Embedded web server interface library by S. Lampoudi and D. Beazley
C
4
star
50

PPS-monitor

Monitor a point-to-point (PPS) heating automation network link
Python
4
star
51

win32-bitmap-print

Demonstration of Win32 bitmap printing issue
C++
3
star
52

top-trumps-cards

"Top Trumps" cards for chemical elements
Perl
3
star
53

fast-libc

Improve C library performance (currently qsort) through multi-threading
C
3
star
54

mpcd

mpcd: Modular Performant Clone Detector
C++
3
star
55

madplay-playlist

Fork of MAD with a few extra features (see the commits)
C
3
star
56

athens-visitor-info

Information for Athens visitors
2
star
57

taru

Process and display space usage in tar files
Python
2
star
58

grconv

Greek character set converter
C++
2
star
59

git-mine-briefing

Presentation and handouts for MSR briefing on Git mining
HTML
2
star
60

rat-name

Rational C++ Naming Conventions
2
star
61

leap-sec

Leap second testing and visualization
C
2
star
62

gi-example

2
star
63

jit-binary

On demand compile and run programs distributed in source code form
Makefile
2
star
64

code-lifetime

Tools for analyzing the lifetime of code lines and tokens
Perl
2
star
65

sandbox

1
star
66

pcsecrets

Desktop client for the Secrets for Android password manager app
Java
1
star
67

bioinformatics

Adventures on Bioinformatics
1
star
68

CAGR

Compound Annual Growth Rate for Software
Perl
1
star
69

BlogRoll

BlogRoll of Software Data Analytics Blog and Mining Software Repositories
1
star
70

ax-178-logger

AXIO MET AX-178 multimeter logger
Python
1
star
71

elf-notes

Verify operation of ELF note section on Travis
C
1
star
72

scratch-joystick

Code that allows Scratch to read a joystick's values
Python
1
star
73

gi-issues

Issue management repository for gi
1
star
74

Favourite-movies

1
star