Skip to content

Missing quote when preprocessor macro contains expression.  #2002

@Hadatko

Description

@Hadatko

OS: Kubuntu 21.04
VSC:1.58.0
extension: 1.5.1

Hello,
in my CMakeList i have this configuration:
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -D__FILENAME__='\"$(notdir $(abspath $<))\"'")
I can build applicaiton with gcc 10. In PROBLEMS section i see "errors" with missing end quoting ". This is due to you parser is reading above option as "$(notdir.

Disabling this worked "C_Cpp.errorSquiggles". But is it the only option? Are you able to support this case better?
Screenshot_20210711_085209
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions