Skip to content

Incorrect generation with quoted macros #131

Open
@Sigmanificient

Description

@Sigmanificient

Hello, when using compiledb on my project, the generated output in incorrect.
In fact, i am getting a "-DPROG_NAME=waffle" isntead of "-DPROG_NAME=\"waffle\"".

[
{
  "directory": "/home/sigmanificient/dev/waffle",
  "arguments": [
   "cc",
   "-MMD",
   "-MP",
   "-O2",
   "-march=native",
   "-iquote",
   "./include",
   "-U_FORTIFY_SOURCE",
   "-DPROG_NAME=waffle",
   "-c",
   "src/cursor_events.c",
   "-o",
   ".build/release/cursor_events.o"
  ],
  "file": "src/cursor_events.c"
 }
]

This makes thinks my lsp, that there is an invalid identifier called "waffle" all around.

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