Skip to content

Fix #15007: isAttributeNoreturn not set for _Noreturn - #8823

Open
ludviggunne wants to merge 4 commits into
cppcheck-opensource:mainfrom
ludviggunne:15007-_Noreturn
Open

Fix #15007: isAttributeNoreturn not set for _Noreturn#8823
ludviggunne wants to merge 4 commits into
cppcheck-opensource:mainfrom
ludviggunne:15007-_Noreturn

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/tokenize.cpp Outdated
Comment thread lib/tokenize.cpp Outdated
}
}

if (isC() && tok->str() == "_Noreturn" || tok->str() == "noreturn") {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noreturn is technically a macro but adding it to std.cfg would mess up [[noreturn]].

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