Skip to content

Ghost1995/Valgrind

Repository files navigation

Valgrind Exercise

Build Status Coverage Status

Overview

Using Valgrind to find and correct errors.

Standard install via command-line

git clone --recursive https://github.com/Ghost1995/Valgrind.git
cd <path to repository>
mkdir build
cd build
cmake ..
make
Run tests: ./test/cpp-test
Run program: ./app/shell-app

Building for code coverage

sudo apt-get install lcov
cmake -D COVERAGE=ON -D CMAKE_BUILD_TYPE=Debug ../
make
make code_coverage

This generates a index.html page in the build/coverage sub-directory that can be viewed locally in a web browser.

Plugins

  • CppChEclipse

    To install and run cppcheck in Terminal

    1. cd
    2. Run cppcheck --enable=all --std=c++11 -I include/ --suppress=missingIncludeSystem $( find . -name *.cpp | grep -vE -e "^./build/" -e "^./vendor/" )
  • Google C++ Sytle

    To include and use Google C++ Style formatter in Terminal

    1. cd
    2. Run cpplint $( find . -name *.h -or -name *.cpp | grep -vE -e "^./build/" -e "^./vendor/" -e "^./docs/" -e "^./results" )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published