blob: d27aff7ad8c2f04a66eafd00b3d33e11d7549239 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Ast Dumper - static code analyser for C/C++
This is [gcc](https://gcc.gnu.org) plugin for dump AST tree and search possible null pointers.
Version 1.0 Date: 2015-06-22
## Build deps
- gcc 5 with plugin includes. (gcc-5-plugin)
For older gcc build possible, but need change make file.
- automake/autoconf.
## Run time deps
- gcc 5 / g++ 5 or older.
## Features
- Dump AST tree from gcc.
- Search missing basic null pointer checks for function input parameters.
- Dont check parameters with attribute [NONNULL](https://gcc.gnu.org/onlinedocs/gcc-5.1.0/gcc/Function-Attributes.html#index-g_t_0040code_007bnonnull_007d-function-attribute-3189).
- In future probably other checks...
## Build
- Run build.sh
- You will get astdumper.so for gcc binary
and cppastdumper.so for g++ binary
## Usage examples
In directory [examples](examples) present two examples one for C++ and other for C.
Readme on russian [README.ru.md](README.ru.md)
|