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)
Mon, Dec 16, 6:38 PM
Unknown Object (File)
Mon, Dec 16, 6:38 PM
Unknown Object (File)
Mon, Dec 16, 6:38 PM
Unknown Object (File)
Sun, Dec 15, 10:21 PM
Unknown Object (File)
Wed, Dec 11, 7:31 PM
Unknown Object (File)
Sun, Dec 1, 12:26 PM
Unknown Object (File)
Fri, Nov 29, 4:01 AM
Unknown Object (File)
Oct 27 2024, 6:36 AM

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