mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-26 05:31:36 +00:00
feat(tidy): add fairmq-modernize-progoptions-accessors
- Replace GetValue<T>(key) with GetProperty<T>(key, {}) and
GetStringValue(key) with GetPropertyAsString(key, {}). The {} default
keeps the old result for an unknown key, where the property API throws.
- Replace SetValue() with SetProperty() only where its always-zero
result is unused, because SetProperty() returns void.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,8 @@ add_library(fairmq-tidy-module OBJECT
|
||||
NonNamespacedTypesCheck.h
|
||||
PartsApiCheck.cxx
|
||||
PartsApiCheck.h
|
||||
ProgOptionsAccessorsCheck.cxx
|
||||
ProgOptionsAccessorsCheck.h
|
||||
)
|
||||
target_compile_features(fairmq-tidy-module PUBLIC cxx_std_17)
|
||||
target_include_directories(fairmq-tidy-module
|
||||
|
||||
Reference in New Issue
Block a user