Commit Graph

4 Commits

Author SHA1 Message Date
Wyatt Hepler
2cbb313f93 pw_status: [[nodiscard]] functions, comment update
- The return values of the Status member functions should not be
  ignored, so add [[nodiscard]].
- Reorder Status values and update the comments to match Abseil's
  status/status.h.

Change-Id: Ie91f4f5fbb98353caf1df905a6bf5ce5da4ecaf9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/19360
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2020-10-06 19:59:25 +00:00
Wyatt Hepler
421a81034b pw_status: C version of Status
- Create pw_Status enum with all of the status codes.
- Have pw::Status implicitly convert to and from pw_Status to make
  transitioning between the plain enum and Status class seamless.

Change-Id: If4dd659ecfd24d031c838d304298e1a3ae385b63
2020-01-14 01:24:05 +00:00
Wyatt Hepler
1a96094ce6 Fix copyright notices
- Add missing copright header in conf.py.
- Fix inconsistent copyright notice line breaking.

Change-Id: Ib78f7768643069c49ff986a48a176df9fd06e891
2019-11-27 22:34:02 +00:00
Alexei Frolov
1a82c146ff
Initial Pigweed modules
This change adds Pigweed's first few (incomplete) modules: pw_build,
pw_status, and pw_toolchain. The main scaffolding for Pigweed's GN-based
build system is also included, with a root BUILDCONFIG and BUILD.gn file
defining a top-level modules build target.

Change-Id: I09599443d50696343d6c5b85853cb5cee3ce0026
2019-10-31 17:43:53 -07:00