Skip to content

sideshowcoder/knr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KNR Excercises

Setup for CMake and Clang adapted from cmake-boilerplate

Ubuntu

install cmake, llvm and clang

Build

$ cmake . && make

Test

Is done via minunit

$ cmake . && make && make check

use make check for verbose output make test to get a simple fail or success.

Getting irony-mode to fine the headers

Irony will not by default pickup the knr.h header when looking at knr_tests.c to make this work cmake needs to output a compile_commands.json in the root.

$ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .

in the root of the project will do that, this likely does not need to be rebuild often.

Compileing with Debug Symbols

Debug information is included by default via

set(CMAKE_BUILD_TYPE Debug)

in the ./CMakeLists.txt. For more on CMake and debug

For using LLDB see this gist and LLDB Tutorial.

About

Solving the KnR Exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published