Repository navigation
Do not skip past decls_end() for an empty tag in GetAllCppNames - #1079
Open
conrade-ctc wants to merge 1 commit into
Open
conrade-ctc wants to merge 1 commit into
conrade-ctc wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1079 +/- ##
=======================================
Coverage 88.86% 88.86%
=======================================
Files 24 24
Lines 7014 7015 +1
=======================================
+ Hits 6233 6234 +1
Misses 781 781
🚀 New features to boost your workflow:
|
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
vgvassilev
force-pushed
the
conrade/getallcppnames-empty-tag
branch
from
August 20, 2026 14:17
df9b7e7 to
7a7cdd6
Compare
Contributor
|
clang-tidy review says "All clean, LGTM! 👍" |
conrade-ctc
force-pushed
the
conrade/getallcppnames-empty-tag
branch
2 times, most recently
from
September 15, 2026 16:15
1fcf981 to
477d582
Compare
The increment that skips a tag's injected class name ran before the loop's end check, so an enum with no enumerators advanced a past-the-end iterator.
conrade-ctc
force-pushed
the
conrade/getallcppnames-empty-tag
branch
from
November 30, 2026 22:08
477d582 to
bbaf9e9
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The increment that skips a tag's injected class name ran before the loop's end check, so an enum with no enumerators advanced a past-the-end iterator and crashed the process.
The existing test's tag cases are all
CXXRecordDecls, which always contain the injected class name, so they never reach an empty context.Part of #1078.