Page MenuHomePhabricator

[Services] Clang fixes for services/lib/src
ClosedPublic

Authored by jon on Aug 5 2022, 4:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 6:36 AM
Unknown Object (File)
Sun, Oct 27, 6:36 AM
Unknown Object (File)
Sun, Oct 27, 6:35 AM
Unknown Object (File)
Sun, Oct 27, 6:30 AM
Unknown Object (File)
Oct 7 2024, 7:03 AM
Unknown Object (File)
Oct 6 2024, 5:38 AM
Unknown Object (File)
Oct 3 2024, 11:41 AM
Unknown Object (File)
Oct 2 2024, 10:43 PM

Details

Summary

Clang is a bit more pedantic. Make it happy.

Occurred to me that this was never an existing workflow.
So I made it into another diff.

Allows for D4489 to be built from a MacOS device

Test Plan

Follow nix test plan from D4489 on a mac device

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jon retitled this revision from [Services] Clang fixes services/lib/src to [Services] Clang fixes for services/lib/src.Aug 6 2022, 10:17 AM
atul added inline comments.
services/lib/src/ReactorStatusHolder.h
25

Could we do

std::atomic<ReactorState> state{ReactorState::NONE};

here?

Screen_Shot_2022-08-04_at_4.29.45_PM.png (1×902 px, 226 KB)

This revision is now accepted and ready to land.Aug 8 2022, 10:29 AM
jon added inline comments.
services/lib/src/ReactorStatusHolder.h
25

I'm not going to act like I know best practices in C++

cc @max

Looks like they are equivalent: https://stackoverflow.com/questions/40378205/c-initialising-fields-directly-vs-initialisation-list-in-default-constructor

services/lib/src/ReactorStatusHolder.h
25

Gotcha, seems reasonable to leave as is

Also don't know much C++, just been blindly following that braced initialization rule.

This revision is now accepted and ready to land.Aug 8 2022, 11:04 AM