Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline miss some symbols if the C code has macro define #12493

Open
taotaoli opened this issue Jul 22, 2024 · 0 comments
Open

Outline miss some symbols if the C code has macro define #12493

taotaoli opened this issue Jul 22, 2024 · 0 comments

Comments

@taotaoli
Copy link

Environment

  • OS and Version: Linux x64 5.15.0-113-generic snap
  • VS Code Version: 1.91.1
  • C/C Extension Version: v1.20.5
  • If using SSH remote, specify OS of remote machine: No

Bug Summary and Steps to Reproduce

Bug Summary:
Outline miss some symbols if the test.h has macro define,
if I delete the macro define "#ifdef __cplusplus" , all Symbols will show in the outline
test.zip

Steps to reproduce:

  1. open test.h with VS Code
  2. not all symbols in outline

Expected behavior:
show all symbols in outline
Screenshot from 2024-07-22 16-31-55

Screenshot from 2024-07-22 16-32-23

Configuration and Logs

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/clang",
            "cStandard": "c17",
            "cppStandard": "c  14",
            "intelliSenseMode": "linux-clang-x64"
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant