| commit | 92b9629a433e872aaf669dce72822086e77d6d82 | [log] [tgz] |
|---|---|---|
| author | Andrew Jeffery <andrew@aj.id.au> | Thu May 27 16:41:31 2021 +0930 |
| committer | Andrew Jeffery <andrew@aj.id.au> | Thu Jun 03 10:48:27 2021 +0930 |
| tree | 7008dc227cb4dad6301718ad36cf89a73c161f64 | |
| parent | 7279f93db0dfc52802e56a1bcaee052f833514b3 [diff] |
Suppress clang-tidy warning for C++20
clang-tidy-11 -p=build-clang src/ExternalSensor.cpp
./src/ExternalSensor.cpp:148:29: error: use nullptr [modernize-use-nullptr,-warnings-as-errors]
return (ageElapsed(now) < writeTimeout);
^
nullptr
clang-tidy-11 -p=build-clang src/CPUSensorMain.cpp
./src/CPUSensorMain.cpp:80:22: error: use nullptr [modernize-use-nullptr,-warnings-as-errors]
return (name < rhs.name);
^
nullptr
These are false positives fixed by:
https://reviews.llvm.org/D95714?id=320393
For now, suppress the lint.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie839608819681476ba3c22201aeaaba7c22e4c05
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access