Coder Social home page Coder Social logo

Static code analysis about openage HOT 5 OPEN

sfttech avatar sfttech commented on April 28, 2024
Static code analysis

from openage.

Comments (5)

jamesmintram avatar jamesmintram commented on April 28, 2024

I have used CPPCheck on other projects - it is good for hooking into CI too: http://cppcheck.sourceforge.net/

from openage.

franciscod avatar franciscod commented on April 28, 2024

this looks nice for code style too:
http://nsiqcppstyle.appspot.com/rule_doc

from openage.

rnestler avatar rnestler commented on April 28, 2024

clang-analyzer is really nice:
http://clang-analyzer.llvm.org/
Compared to CPPCheck it has the advantage of really understanding C++.

from openage.

mic-e avatar mic-e commented on April 28, 2024

Regarding code style: C++ is so feature-rich that I doubt we'll ever be able to translate our style guidelines to even semi-complete machine-readable code, so at the very most, we might check stuff like the capitalization of identifiers...
Regarding clang-analyzer: Looks promising... but the travis build times won't be happy: While the Clang Static Analyzer is being designed to be as fast and light-weight as possible, please do not expect it to be as fast as compiling a program

from openage.

TheJJ avatar TheJJ commented on April 28, 2024

http://baptiste-wicht.com/posts/2014/04/install-use-clang-static-analyzer-cmake.html
So we should just integrate that into the ./configure script.

mkdir /tmp/openage-analysis
cd /tmp/openage-analysis
export CCC_CXX=clang++ CXX=clang++
scan-build cmake /path/to/git/repo
scan-build make
scan-view /tmp/scan-build-....

also: https://redmine.lighttpd.net/projects/lighttpd2/wiki/ClangAnalyzer

from openage.

Related Issues (20)

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.