Skip to content

ComplexTextController: Avoid unsafe forward declaration #43675

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rdar://148631147
https://bugs.webkit.org/show_bug.cgi?id=291117

Reviewed by NOBODY (OOPS!).

* Source/WebCore/SaferCPPExpectations/ForwardDeclCheckerExpectations:
* Source/WebCore/platform/graphics/ComplexTextController.h:
@vitorroriz vitorroriz self-assigned this Apr 5, 2025
@vitorroriz vitorroriz added the Text For bugs in text layout and rendering, including international text support. label Apr 5, 2025
@webkit-ews-buildbot
Copy link
Collaborator

Safer C++ Build #30674 (1af38de)

❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming.
(cc @rniwa)

Copy link
Contributor

@geoffreygaren geoffreygaren left a comment

Choose a reason for hiding this comment

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

Looks like there’s a Safer CPP failure.

@vitorroriz
Copy link
Contributor Author

Looks like there’s a Safer CPP failure.

@geoffreygaren I believe this might be a false positive as we already include WeakHashSet.h which includes WeakPtr.h which defines SingleThreadWeakHashSet.

I wrote @rniwa about it.

@geoffreygaren
Copy link
Contributor

Looks like there’s a Safer CPP failure.

@geoffreygaren I believe this might be a false positive as we already include WeakHashSet.h which includes WeakPtr.h which defines SingleThreadWeakHashSet.

I wrote @rniwa about it.

Makes sense. In the meantime we’ll need to figure out how to keep the bot green despite the false positive.

@rniwa
Copy link
Member

rniwa commented Apr 6, 2025

@geoffreygaren I believe this might be a false positive as we already include WeakHashSet.h which includes WeakPtr.h which defines SingleThreadWeakHashSet.
I wrote @rniwa about it.

Makes sense. In the meantime we’ll need to figure out how to keep the bot green despite the false positive.

We should probably suppress it for now. Here's a clang PR to fix this issue in the checker: llvm/llvm-project#134545.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Text For bugs in text layout and rendering, including international text support.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants