Coder Social home page Coder Social logo

list's Introduction

List

This is my implementation of List with LinkedList for the C ++ course

Table of Contents

Getting Started

This code was tested on Ubuntu 18.04 with GCC

Dependencies

A compiler with C++14 support (clang-3.4+, gcc-5.1+), cmake 3.1+, (git)

$ sudo apt install clang cmake git

Optional dependencies:

  • doxygen required for generating documentation
  • clang-format 6.0 required for formatting code
  • clang-tidy required for using a linter
  • scan-build required for static analysis
  • cloc required for counting lines of code
  • valgrind required for detecting many memory management and threading bugs
  • lizard required for cyclomatic complexity analysis
$ sudo apt install doxygen clang-format clang-tidy clang-tools cloc valgrind
$ sudo apt install python-pip
$ pip install lizard

Building from source

Run this:

$ git clone https://github.com/Envq/List.git
$ cd List
$ mkdir -p build
$ cd build
$ cmake ..
$ make

There's also a helper script available in the root folder:

$ ./build.sh

Installing

After building project run:

$ make install-lib

Running tests

After building project run:

$ make test
$ ./list_test

Using tools

After building project:

  • To clean
$ make clean-all
  • To count line
$ make stats
  • To analyze clyclomatic complexity
$ make cyclo
  • To generate documentation
$ make doc
  • To format code
$ make format

Only for clang building:

  • To static scan
$ make scan
  • To use linter
$ make tidy

Author

Enrico Sgarbanti @Envq
id: VR408621

License

This project is licensed under the GPL v3 License - see the LICENSE.md file for details

list's People

Contributors

envq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.