Giter VIP home page Giter VIP logo

cppchecker's Introduction

CPPChecker

CPPChecker is an automated C++ program designed to thoroughly examine provided C++ code for the presence of classes, functions, variables, and their corresponding data types, along with verifying the output. The main objective of CPPChecker is to validate the given code after ensuring its independent functionality, guaranteeing that it runs smoothly without encountering errors during the checking process. To achieve this robustness, the program leverages SFINAE (Substitution Failure Is Not An Error) techniques and hides certain elements within namespaces, effectively circumventing compiler errors that might occur when classes, functions, or other components are absent. The provided code should be placed inside a namespace named "STUDENT" for the program not to fail. Overall, CPPChecker serves as a powerful tool for code verification.

Download

This program is designed to be dependency-free, meaning no third-party libraries are used. To use the code, include "iostream" and "sstream". If there's an error, include "type_traits". You can easily copy and paste the code since the program runs on its own.

Setup

  • The program has been tested with GCC C++23 and compiled on the GitHub Server with C++20 (August 2023)
  • For a better comments experience, consider downloading "Better Comments" by Aaron Bond (VS Code)
  • To add more color to the code, you can download "Better C++ Syntax" by Jeff Hykin (VS Code)

Important

  1. There's a Github Action in place that tests if "CPPChecker.cpp" compiles. If it fails, DO NOT DOWNLOAD IT!
  2. There is a Unit Test for "cppchecker.hpp" and if the Github Action for this fails, DO NOT DOWNLOAD IT!

Wiki (old)

For more information click here

Purpose

This tool is designed to facilitate the thorough evaluation of students' code, ensuring that they have successfully adhered to the specified task requirements. With the Tool, instructors can systematically assess the submitted code for accuracy, completeness, and alignment with the given assignment.

Next Steps

  • open for suggestions

cppchecker's People

Contributors

nguyen-vh avatar ulricheisenecker avatar

Stargazers

Janik Eriksson avatar

Watchers

 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.