Skip to content

kurotych/modern-cpp-lib

Repository files navigation

Modern cpp library

Investigates best way to build modern project for develop UNIX C++ library based on C API for binding any language

Codacy Badge Docker Cloud Build Status codecov

Build status Systems / Compilers
Build Status Linux (gcc) OSX (XCode 10.2 clang)

Features

Libraries used

Build and Run

git clone https://github.com/armatusmiles/modern-cpp-lib.git \
    && cd modern-cpp-lib \
    && mkdir build && cd build \
    && cmake ../ \
    && make moderncpp_coverage
cppcheck simple example
cppcheck ./src/

Checking src/interface.cpp ...
[src/interface.cpp:11]: (error) Array 'a[5]' accessed at index 6, which is out of bounds.
Notice: For choose catch2 test framework. Should add var -DTEST_TYPE="catch2"
Exmaple : cmake ../ -DTEST_TYPE="catch2"

"make moderncpp_coverage" builds library, runs gtest and generate code coverage(html) report

References