Skip to content

JSON Compilation Database not work #9

Description

@juvasquezg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions