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, Jun 23, 4:41 PM
Unknown Object (File)
Sun, Jun 23, 4:41 PM
Unknown Object (File)
Sun, Jun 23, 4:41 PM
Unknown Object (File)
Sun, Jun 23, 4:29 PM
Unknown Object (File)
Fri, Jun 21, 7:34 PM
Unknown Object (File)
Thu, Jun 20, 10:18 PM
Unknown Object (File)
Thu, Jun 20, 6:39 PM
Unknown Object (File)
Wed, Jun 19, 12:23 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #15387)

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 ↗(On Diff #15387)

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 ↗(On Diff #15387)

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