Chris Bracken
08dabe9601
Clean up C++ includes ( #21127 )
...
Cleans up header order/grouping for consistency: associated header, C/C++ system/standard library headers, library headers, platform-specific #includes.
Adds <cstring> where strlen, memcpy are being used: there are a bunch of places we use them transitively.
Applies linter-required cleanups. Disables linter on one file due to included RapidJson header. See https://github.com/flutter/flutter/issues/65676
This patch does not cover flutter/shell/platform/darwin. There's a separate, slightly more intensive cleanup for those in progress.
2020-09-11 21:18:35 -07:00
Damian Wrobel
e831433a20
Add missing <cstring> header ( #21069 )
...
Fixes the following compilation errors:
../../flutter/shell/platform/linux/fl_value.cc:267:3: error: use of undeclared identifier 'memcpy'
memcpy(self->values, data, sizeof(uint8_t) * data_length);
^
../../flutter/shell/platform/linux/fl_value.cc:284:3: error: use of undeclared identifier 'memcpy'
memcpy(self->values, data, sizeof(int32_t) * data_length);
^
../../flutter/shell/platform/linux/fl_value.cc:294:3: error: use of undeclared identifier 'memcpy'
memcpy(self->values, data, sizeof(int64_t) * data_length);
^
../../flutter/shell/platform/linux/fl_value.cc:304:3: error: use of undeclared identifier 'memcpy'
memcpy(self->values, data, sizeof(double) * data_length);
^
../../flutter/shell/platform/linux/fl_string_codec.cc:29:28: error: use of undeclared identifier 'strlen'
return g_bytes_new(text, strlen(text));
^
../../flutter/shell/platform/linux/fl_standard_message_codec.cc:512:23: error: use of undeclared identifier 'strlen'
size_t length = strlen(text);
^
Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-09-10 09:24:54 -07:00
Robert Ancell
ab23dc3a74
Update code style to pass clang-tidy checks
2020-08-05 10:35:03 +12:00
Robert Ancell
6589dcb2d4
Add missing full stops on the end of comments. ( #18634 )
2020-06-03 06:21:46 +12:00
Robert Ancell
8c8c7b06d0
Fix FlValue functions not marked for export ( #18641 )
2020-06-02 09:38:10 +12:00
Robert Ancell
680eb90a42
Add fl_value_to_string ( #18540 )
2020-05-22 10:57:21 +12:00
Robert Ancell
f321613e5a
Add guards on FlValue methods to check for NULL values ( #18226 )
2020-05-14 09:02:51 +12:00
Robert Ancell
403931ff22
Add FlValue ( #18185 )
...
FlValue is a lightweight object used to contain the value types that Flutter
uses on platform channels.
2020-05-08 13:48:41 +12:00