Skip to content

Token pasting/concatenation with ## leads to invalid result #373

Open

Description

@chrchr-github

Input: __attribute()##8;

gcc/clang -E: __attribute()##8;
cppcheck -E: __attribute ( )8 ; ==> )8 is one token
https://trac.cppcheck.net/ticket/13165

Activity

  1. chrchr-github commented on Oct 2, 2024

    @chrchr-github
    ContributorAuthor

    There is unchecked ## processing here (as opposed to Macro::expandHashHash(): https://github.com/danmar/simplecpp/blob/3588ca804f80e1f0abbcaaf15afdf65c7c9d630e/simplecpp.cpp#L3742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions