Files
visor/examples
Xin ZhongandgVisor bot f5d3ac2cf3 seccheck: updates examples/seccheck/server.cc to comply with the Style Guide
- Wraps all non-main helper functions, structs, and variables in an anonymous
namespace to avoid One Definition Rule (ODR) violations.
- Capitalizes function names to follow CamelCase conventions (e.g., Unpack,
ReadAndUnpack, PollLoop, Handshake).
- Renames struct and macro variables (e.g., struct header -> struct Header,
maxEventSize -> kMaxEventSize).
- Modernizes ParseFromArray calls by replacing them with ParseFromString.
- Adds missing standard library includes (<cerrno>, <cstdint>, <array>,
<functional>).
- Renames the non-templated Unpack front-door function to DispatchMessage to
clarify its routing purpose and avoid naming collisions.
- Resolves a strict aliasing violation in PollLoop by explicitly casting the
file descriptor through intptr_t.

PiperOrigin-RevId: 953469340
2026-07-24 11:28:05 -07:00
..