Project Idea | (Static Code Checker for C++) Last Updated : 08 Aug, 2021 Comments Improve Suggest changes Like Article Like Report The biggest problem that students face when they join big corporates is difficulty in writing high quality code that these corporates demand. The prime reason for this difficulty is because their minds have been trained in college to just make things work somehow, even if it means using dirty hacks. To help coders in general and fellow college students in particular, building a tool which can run static code checks on a given code can help improve the quality of code to a great extend. Features: Static code checker can check and warn the programmer about best practices, possible mistakes, loopholes without even executing the code. For example. Memory leaks Unused variables Undeclared variables Array’s bound checks Dead code Research: There are lots of best practices which should be followed in language like C++ to ensure that written code is of high quality. More research can be done about what are the various best practices, loopholes, obvious errors which the project can take into consideration. Implementation: Static code checker could be written as a plugin to any existing IDE like Eclipse/Codeblocks (recommended) or it can be in the form of any website where you paste your code and run static code checks. References: There are a lot of existing static code checkers available. For example the best static code checkers available for Javascript are JsLint and JsHint. http://www.jslint.com/ http://jshint.com/ About the author: “Harshit is a technology enthusiast and has keen interest in programming. He holds a B.Tech. degree in Computer Science from JIIT, Noida and currently works as Front-end Developer at SAP. He is also a state level table tennis player. Apart from this he likes to unwind by watching movies and English sitcoms. He is based out of Delhi and you can reach out to him at https://in.linkedin.com/pub/harshit-jain/2a/129/bb5 Comment More infoAdvertise with us Next Article Project Idea | (Static Code Checker for C++) K kartik Follow Improve Article Tags : C++ Practice Tags : CPP Similar Reads Top 50 C++ Project Ideas For Beginners & Advanced C++ is one of the most popular programming languages widely used in the software industry for projects in different domains like games, operating systems, web browsers, DBMS, etc due to its fast speed, versatility, lower-level memory access, and many more. Many top companies like Microsoft, Google, 15+ min read Convert C/C++ program to Preprocessor code We use g++ compiler to turn provided Cpp code into preprocessor code. To see the preprocessor code generated by the CPP compiler, we can use the â-Eâ option on the command line: Preprocessor include all the # directives in the code. and also expands MACRO function. Syntax: g++ -E filename.cpp CPP // 1 min read Count the number of objects using Static member function Prerequisite : Static variables , Static Functions Write a program to design a class having static member function named showcount() which has the property of displaying the number of objects created of the class. Explanation: In this program we are simply explaining the approach of static member fu 2 min read âstatic constâ vs â#defineâ vs âenumâ In this article, we will be analyzing "static const", "#define" and "enum". These three are often confusing and choosing which one to use can sometimes be a difficult task. static const static const : "static const" is basically a combination of static(a storage specifier) and const(a type qualifier 4 min read Setting up C++ Development Environment C++ is a general-purpose programming language and is widely used nowadays for competitive programming. It has imperative, object-oriented, and generic programming features. C++ runs on lots of platforms like Windows, Linux, Unix, Mac, etc. Before we start programming with C++. We will need an enviro 8 min read Like