This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add missing includes #6670
Merged
Merged
Add missing includes #6670
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,9 @@ | |
| #ifndef MINIKIN_GRAPHEME_BREAK_H | ||
| #define MINIKIN_GRAPHEME_BREAK_H | ||
|
|
||
| #include <stddef.h> | ||
| #include <unicode/utf16.h> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this include needed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using size_t and uint16_t constructs. Not available without these imports. Internally we have checks that make sure each header can be parsed/compiled individually. If this is still weird, let's chat. |
||
|
|
||
| namespace minikin { | ||
|
|
||
| class GraphemeBreak { | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is C++,
#include <cstddef>would be more appropriate.But since this is in third_party, is this the appropriate place to make this change? Should it not be further upstreamed elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used
<stddef.h>because other files use it too. Let's be consistent. Migration can be done but that's not the point of this PR.I agree on the third_party directory. It was odd to me at first as well. I believe despite this being under "third_party" it is managed by Flutter team. I see lots of direct PRs on it and we rename it internally to root it under flutter_engine while keeping all the license files intact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
third_party/txtis a weird case since there isn't an upstream repository. As far as I know, libtxt is totally contained and maintained in this repository. @jason-simmons would know more.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Within
third_party/txt, thesrc/minikintree is derived from a component of Android. Thesrc/txttree is specific to Flutter.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we still don't roll minikin, right? It is a fork. I see direct commits there as well: 058edef#diff-af8af38ff27b8f206b45f42a2a3f2f2b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently it's effectively a fork. We might want to do a roll at some point, but we also have local patches that would need to be merged.