Commit Graph

2150 Commits

Author SHA1 Message Date
Joshua Haberman
4a6dc34d3a Sync from Piper @365872496
PROTOBUF_SYNC_PIPER
2021-03-30 12:37:31 -07:00
Joshua Haberman
96307d28f6 Sync from Piper @364389596
PROTOBUF_SYNC_PIPER
2021-03-22 13:05:55 -07:00
Joshua Haberman
77334e39a7 Merge tag 'refs/tags/sync-piper' into sync-stage 2021-03-22 13:05:55 -07:00
Adam Cozzette
617e255617
Merge pull request #8409 from srago/protoc-fix
add error returns missing from protoc to prevent it from exiting with…
2021-03-18 14:11:58 -07:00
Adam Cozzette
f57940391c
Merge pull request #8408 from PatriosTheGreat/master
Fix -Wsuggest-destructor-override for generated C++ proto classes.
2021-03-18 08:46:19 -07:00
Levon Ter-Grigoryan
53b0cce27b Fix -Wsuggest-destructor-override for generated C++ proto classes. 2021-03-17 20:17:06 +01:00
Steve Rago
57e09ad848 add error returns missing from protoc to prevent it from exiting with a successful return value when writing the zip file fails 2021-03-17 10:31:03 -04:00
Adam Cozzette
4c5465e5fe
Merge pull request #8402 from acozzette/merge-3-15-x
Merge 3.15.x into master branch
2021-03-16 11:01:34 -07:00
Adam Cozzette
146d579738
Merge pull request #8405 from Yannic/status-del-error
Make util::Status more similar to absl::Status
2021-03-15 13:37:06 -07:00
Adam Cozzette
28dbe3b09b
Merge pull request #8285 from s1341/master
Fix missing -llog when compiling for android
2021-03-15 11:34:59 -07:00
Yannic Bonenberger
3a7bd9c236 Make util::Status more similar to absl::Status
Progress on #3688
2021-03-14 13:47:33 +01:00
Adam Cozzette
9db84d08fb Merge branch '3.15.x' into merge-3-15-x 2021-03-12 15:05:10 -08:00
Adam Cozzette
9ad97629be
Merge pull request #8354 from Yannic/refactor_status
[C++] Refactor util::Status
2021-03-12 11:01:00 -08:00
Adam Cozzette
6aa539bf01 Update protobuf version 2021-03-10 14:53:26 -08:00
Per Lundberg
c7a6160a87 Fixes to make the --fatal_warnings flag work with current master 2021-03-09 14:21:18 -08:00
Nikhil Benesch
dedbd63306 Add --fatal_warnings flag to treat warnings as errors
Add a --fatal_warnings flag that requests that protoc exit with a
failing status code if any warnings are generated during compilation.

Partially address #3980.
2021-03-09 14:21:18 -08:00
Yannic Bonenberger
baef01b756 Fix build error 2021-03-09 22:18:43 +01:00
Yannic Bonenberger
de53e1afff Revert moving status.cc 2021-03-09 22:09:28 +01:00
Yannic Bonenberger
59ea5c8f19 [C++] Refactor util::Status
This change refactors util::Status to have a similar shape as the
recently open-sourced absl::Status. This will allow Protobuf to
eventually use absl::Status and reduce the codesize.

Note that there is more work required before absl::Status can be used.
2021-03-09 22:09:28 +01:00
Adam Cozzette
673971834c
Merge branch 'master' into 3.15.x 2021-03-04 17:53:03 -08:00
Adam Cozzette
4fff47a418 Update protobuf version 2021-03-04 13:35:04 -08:00
Adam Cozzette
541b1735a8
Merge branch 'master' into 3.15.x-202103031418 2021-03-03 15:01:11 -08:00
Joshua Haberman
27f4e8b5d9
Merge pull request #8350 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2021-03-03 14:59:34 -08:00
Adam Cozzette
13fa25013a Merge branch '3.15.x' into 3.15.x-202103031418 2021-03-03 14:29:11 -08:00
Adam Cozzette
fd8aabf32d Update protobuf version 2021-03-03 11:37:48 -08:00
Po-Chuan Hsieh
3172ab8ff9 Fix endian.h location on FreeBSD 2021-03-02 11:10:46 -08:00
Romain Geissler
9d203953a9 Fix gcc error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
This fixes the following build error:
In file included from no_warning_test.cc:7:
../../src/google/protobuf/parse_context.h: In instantiation of 'const char* google::protobuf::internal::EpsCopyInputStream::AppendUntilEnd(const char*, const A&) [with A = google::protobuf::internal::EpsCopyInputStream::AppendString(const char*, std::string*)::<lambda(const char*, ptrdiff_t)>]':
../../src/google/protobuf/parse_context.h:366:70:   required from here
../../src/google/protobuf/stubs/logging.h:161:48: error: comparison of unsigned expression in '>= 0' is always true [-Werror=type-limits]
  161 | #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
      |                                                ^
../../src/google/protobuf/stubs/logging.h:151:5: note: in definition of macro 'GOOGLE_LOG_IF'
  151 |   !(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
      |     ^~~~~~~~~
../../src/google/protobuf/stubs/logging.h:161:31: note: in expansion of macro 'GOOGLE_CHECK'
  161 | #define GOOGLE_CHECK_GE(A, B) GOOGLE_CHECK((A) >= (B))
      |                               ^~~~~~~~~~~~
../../src/google/protobuf/stubs/logging.h:201:26: note: in expansion of macro 'GOOGLE_CHECK_GE'
  201 | #define GOOGLE_DCHECK_GE GOOGLE_CHECK_GE
      |                          ^~~~~~~~~~~~~~~
../../src/google/protobuf/parse_context.h:351:7: note: in expansion of macro 'GOOGLE_DCHECK_GE'
  351 |       GOOGLE_DCHECK_GE(chunk_size, static_cast<size_t>(0));
      |       ^~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
2021-03-01 16:38:00 -08:00
Yannic
88367afa1f
[C++] Delete StringPiecePod (#8353)
Protobuf no longer supports C++ < 11, so this type is no longer
required.
2021-03-01 16:29:00 -08:00
Joshua Haberman
f645c7ed07 Fixed spelling errors surfaced by CodeSpell. 2021-02-26 10:54:13 -08:00
Joshua Haberman
899c276248 Merge tag 'refs/tags/sync-piper' into sync-stage 2021-02-26 10:37:38 -08:00
Joshua Haberman
9df42757f9 Sync from Piper @359788468
PROTOBUF_SYNC_PIPER
2021-02-26 10:37:37 -08:00
Adam Cozzette
983d115bd9 Update protobuf version 2021-02-25 09:20:20 -08:00
Adam Cozzette
d7e943b8d2 Update protobuf version 2021-02-23 13:21:42 -08:00
Yuriy Chernyshov
09f94e7311 Fix PROTOBUF_CONSTINIT macro redifinition
The #ifdef block is duplicated with the above (which was fixed in 3.15.1).

It would be great to have this fix backported to 3.15.1 (and released as 3.15.2).
2021-02-23 13:21:27 -08:00
Adam Cozzette
052dc799d2 Update protobuf version 2021-02-19 15:12:24 -08:00
Adam Cozzette
d721e36ecc Made some small fixes for MinGW and for C++20 with GCC
Our use of constinit does not seem to work with GCC yet (see
https://github.com/protocolbuffers/protobuf/issues/8310), so this
commit disables it on GCC for now.

This commit also updates mutex.h to work around the fact that MinGW's
std::mutex apparently does not have a constexpr constructor. We already
have this kind of workaround for MSVC, so we can just use the same
workaround.
2021-02-19 15:11:34 -08:00
Adam Cozzette
ae50d9b990 Update protobuf version 2021-02-18 11:50:15 -08:00
Adam Cozzette
8260126500 Update protobuf version 2021-02-17 10:51:33 -08:00
Yuhanun Citgez
c741c46604 Resovled issue in the .pb.cc files 2021-02-17 10:51:21 -08:00
Yuhanun Citgez
eef276412e Resolved an issue where NO_DESTROY and CONSTINIT were in incorrect order 2021-02-17 10:51:21 -08:00
Brecht Sanders
1e924efa90 Update port_def.inc
Fix for Windows build with MinGW-w64 compiler which has __has_attribute but has issues with __attribute__((weak)).
2021-02-11 20:25:25 -08:00
Brecht Sanders
9a80cf1225 Update coded_stream.h
Fix for Windows build with MinGW-w64 compiler. Windows is assumed to always be little endian.
2021-02-11 20:25:25 -08:00
s1341
ee05cc11db Fix missing -llog when compiling for android 2021-02-11 10:39:53 +02:00
Adam Cozzette
e9f2ef308c Update protobuf version 2021-02-05 15:37:10 -08:00
Joshua Haberman
beb70bb83e Change is_trivially_copy_assignable -> is_trivial too. 2021-02-04 15:04:17 -08:00
Joshua Haberman
fc1cfb0174 Also change is_trivially_copy_constructible to std::is_trivial. 2021-02-04 14:42:12 -08:00
Joshua Haberman
fae6773539 Fixed misspelling. 2021-02-04 14:34:26 -08:00
Joshua Haberman
b74892e9c3 Replace is_trivially_default_constructible with is_trivial for old libstdc++. 2021-02-04 14:33:20 -08:00
Joshua Haberman
51daaba638 Sync from Piper @355707933
PROTOBUF_SYNC_PIPER
2021-02-04 14:09:49 -08:00
deannagarcia
868b712916
Remove unused variable 2021-01-27 13:29:04 -08:00