Skip to content

Tokenizer: added missing end token in __typeof matching in setVarIDPass1()#7952

Merged
firewave merged 1 commit intodanmar:mainfrom
firewave:decl-tok
Nov 10, 2025
Merged

Tokenizer: added missing end token in __typeof matching in setVarIDPass1()#7952
firewave merged 1 commit intodanmar:mainfrom
firewave:decl-tok

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave
Copy link
Copy Markdown
Collaborator Author

Observed in common/file.c from https://github.com/neutrinolabs/xrdp,

Clang 19 - 1,309,274,453 -> 1,087,882,577

CC @ludviggunne

@firewave firewave requested a review from ludviggunne November 10, 2025 00:31
@firewave firewave changed the title Tokenizer: add missing end token in __typeof matching in `setVarIDPass1() Tokenizer: add missing end token in __typeof matching in setVarIDPass1() Nov 10, 2025
@sonarqubecloud
Copy link
Copy Markdown

@firewave firewave changed the title Tokenizer: add missing end token in __typeof matching in setVarIDPass1() Tokenizer: added missing end token in __typeof matching in setVarIDPass1() Nov 10, 2025
@firewave
Copy link
Copy Markdown
Collaborator Author

The code in question was introduced in a4faec0.

@firewave firewave merged commit 2af570d into danmar:main Nov 10, 2025
55 checks passed
@firewave firewave deleted the decl-tok branch November 10, 2025 15:15
@firewave
Copy link
Copy Markdown
Collaborator Author

On a side note.

__typeof is only matched <= C23 - shouldn't that be matched for C unconditionally?

And MSVC also has __typeof__ - see https://learn.microsoft.com/en-us/cpp/c-language/typeof-c.

@ludviggunne
Copy link
Copy Markdown
Collaborator

Hm, I'll take a look at that. It was a while ago that I wrote that code.

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

Successfully merging this pull request may close these issues.

2 participants