Git Product home page Git Product logo

flycheck-clangcheck's Introduction

flycheck-clangcheck

http://melpa.org/packages/flycheck-clangcheck-badge.svg

A Flycheck checker difinition for ClangCheck.

Installation

Prerequisites

  • clang-check (this is part of clang.)

Setup

  1. Install:

    MELPA:

    http://melpa.org/packages/flycheck-clangcheck-badge.svg

    or clone this repository:

    $ git clone https://github.com/kumar8600/flycheck-clangcheck
        
  2. Add settings for ~/.emacs.d/init.el:
    (add-to-list 'load-path "/path/to/flycheck-clangcheck") ;; if you installed manually
    (require 'flycheck-clangcheck)
    
    (defun my-select-clangcheck-for-checker ()
      "Select clang-check for flycheck's checker."
      (flycheck-set-checker-executable 'c/c++-clangcheck
                                       "/path/to/clang-check")
      (flycheck-select-checker 'c/c++-clangcheck))
    
    (add-hook 'c-mode-hook #'my-select-clangcheck-for-checker)
    (add-hook 'c++-mode-hook #'my-select-clangcheck-for-checker)
    
    ;; enable static analysis
    (setq flycheck-clangcheck-analyze t)
        

Customizable variables

flycheck-clangcheck-analyze
Whether to enable Static Analysis to C/C++ in ClangCheck.
flycheck-clangcheck-extra-arg
Additional argument to append to the compiler command line for ClangCheck.
flycheck-clangcheck-extra-arg-before
Additional argument to prepend to the compiler command line for ClangCheck.
flycheck-clangcheck-fatal-assembler-warnings
Whether to enable Considering warning as error to C/C++ in ClangCheck.
flycheck-clangcheck-dbname
The name of the JSON Compilation Database (default compile_commands.json).
flycheck-clangcheck-build-path
Build directory for ClangCheck. If this is defined, a JSON Compilation Database (flycheck-clangcheck-dbname) must be placed to there.

flycheck-clangcheck's People

Contributors

kumar8600 avatar rolandmarchand avatar stsquad 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.