kumar8600 / flycheck-clangcheck

A Flycheck checker difinition for ClangCheck.
11 stars 7 forks source link

JSON Compilation Database not work #9

Open juvasquezg opened 8 years ago

juvasquezg commented 8 years ago

Hi, I have a JSON Database Compilation and it works well from the terminal.

[
    {
        "directory": "./",
        "command": "clang ./src/lab14.c -std=c99 -Wall  -I./include -o ./bin/setup.exe",
        "file": "C:/Users/nxjulian/Documents/lab14/src/lab14.c"
    }
]

Terminal

clang-check -analyze src/lab14.c

With emacs

(require 'flycheck-clangcheck)
(defun my-select-clangcheck-for-checker ()
  "Select clang-check for flycheck's checker."
  (flycheck-mode 1)
  (flycheck-set-checker-executable 'c/c++-clangcheck
                                   "C:/Program Files/LLVM/bin/clang-check.exe")
  (flycheck-select-checker 'c/c++-clangcheck))

The problem is in emacs with flycheck-clangcheck not recognize "./include".

Help me please.