A lightweight development container for C and C++ development with tools for compiling, linting, formatting, and debugging!
Contains:
ClangandClang-Extra-Toolsfor compilation and additional tooling.Valgrindfor memory debugging.CMakeandNinjafor efficient build automation.CppcheckandCpplintfor static code analysis.ZshwithOh My Zshand plugins: Syntax highlighting, Autosuggestions, You-Should-Use for alias suggestionsgccandg++for C and C++ compilation (musl version only)
Windows :
docker run --name c-devbox -v ".\code:/code" -it yungbricocoop/c-devboxLinux :
docker run --name c-devbox -v "./code:/code" -it yungbricocoop/c-devboxWindows :
docker run --name c-devbox -v ".\code:/code" -it yungbricocoop/c-devbox:glibLinux :
docker run --name c-devbox -v "./code:/code" -it yungbricocoop/c-devbox:glib- Compile C++:
xcompiles main.cpp and runs the output. - Compile C:
cxcompiles main.c and runs the output. - Format Code:
cformatapplies clang-format to all .cpp and .h files. - Run Static Analysis:
ccheckruns cppcheck on all files.