Netbeans C/C++ generic project
Find a file
2025-05-30 16:46:59 +02:00
nbproject Add default compile database 2025-05-30 10:28:10 +02:00
src Netbeans C/C++ generic project 2025-04-05 12:30:41 +02:00
compile_commands.json Generic config for clang-tidy 2025-05-30 16:23:13 +02:00
LICENSE Add licence file 2025-05-30 16:18:46 +02:00
Makefile Add default compile database 2025-05-30 10:28:10 +02:00
Readme.txt Add Readme.txt 2025-05-30 16:46:59 +02:00

Generic C++ project for NetBeans.

After cloning this repo, the directory can be loaded into NetBeans.
However, the associated script, nb_create.sh, also here in this repository, can
be used to create a NetBeans project from the command line without having to
start NetBeans. (Try nb_create.sh -h for more details.) 

This NetBeans C++ project contains a number of targets:
    debug
    release
    check1
    check2

check1 uses the cppcheck static analysis tool, https://cppcheck.sourceforge.io/,
with output to a NetBeans buffer.
See the Makefile to configure flags.

check2 uses clang-tidy to perform static analysis on the project. clang-tidy
requires a compilation database file: compile_commands.json. A default file is
provided. However if, you add files, modify compile flags, ... you must
generate such a file yourself using bear, https://github.com/rizsotto/Bear.git.
To generate yoour own compile_comands.json, do the following from the top-level
project directory:
    bear -- make