GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `#` in macro left in original location · Issue #491 · cppcheck-opensource/simplecpp

# in macro left in original location #491

New issue
Copy link
New issue
Copy link
Open
Open
# in macro left in original location#491
Copy link
Labels
bug

Description

@firewave
firewave
opened on Aug 12, 2025
Issue body actions

From testsuite/clang-preprocessor-tests/hash_space.c and uncovered by #490.

#define HASH #
HASH define foo bar

gcc -E output:

# 0 "testsuite/clang-preprocessor-tests/hash_space.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "testsuite/clang-preprocessor-tests/hash_space.c"

 # define foo bar

actual:

1: #
2: define foo bar

Activity

  1. firewave
    added
    bug
    on Aug 12, 2025
  2. firewave commented on Aug 12, 2025

    @firewave
    firewave
    on Aug 12, 2025
    CollaboratorAuthor
    More actions

    Looks like this is also the issue with testsuite/clang-preprocessor-tests/macro_not_define.c.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.