Skip to content

musman2012/static-analysis-clang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Analysis of Code using Clang

This repository is build to implement a static analysis using Clang (https://clang.llvm.org/) that warns the developer if they have any method in their C++ code that has more than 3 parameters.

Follow these steps to test Attribute checker code:

  • % git clone https://github.com/musman2012/static-analysis-clang.git
  • % cd static-analysis-clang/llvm
  • % mkdir build && cd build/
  • % cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
  • % make check-clang-tools
  • % export PATH=$PWD/bin:$PATH
  • % cd ../..
  • % clang-tidy -checks='-*,misc-attr-checker' code.cpp --