Closed ClemensLinnhoff closed 1 year ago
clang-tidy
```cpp union Addrconv ^ ```
```cpp myaddr.base.lo = lo; ^ ```
```cpp myaddr.base.hi = hi; ^ ```
```cpp
return reinterpret_cast
```cpp
return reinterpret_cast
```cpp union Addrconv ^ ```
```cpp
myaddr.address = reinterpret_cast
```cpp
myaddr.address = reinterpret_cast
```cpp hi = myaddr.base.hi; ^ ```
```cpp lo = myaddr.base.lo; ^ ```
```cpp fmi2Status HelloWorldSensor::DoStart(fmi2Boolean tolerance_defined, fmi2Real tolerance, fmi2Real start_time, fmi2Boolean stop_time_defined, fmi2Real stop_time) ^ ```
```cpp fmi2Status HelloWorldSensor::DoEnterInitializationMode() ^ ```
```cpp if ((distance <= actual_range) && (rel_x / distance > 0.866025)) ^ ```
```cpp obj->mutable_header()->set_existence_probability(cos((2.0 * distance - actual_range) / actual_range)); ^ ```
```cpp fmi2Status HelloWorldSensor::DoTerm() ^ ```
```cpp HelloWorldSensor::HelloWorldSensor(fmi2String theinstance_name, ^ ```
```cpp auto* myc = new HelloWorldSensor(instance_name, fmu_type, fmu_guid, fmu_resource_location, functions, visible, logging_on); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
```cpp delete myc; ^ ~~~ /home/runner/work/sl-1-0-sensor-model-repository-template/sl-1-0-sensor-model-repository-template/src/HelloWorldSensor.cpp:506:5: note: variable declared here auto* myc = new HelloWorldSensor(instance_name, fmu_type, fmu_guid, fmu_resource_location, functions, visible, logging_on); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
```cpp value[i] = real_vars_[vr[i]]; ^ ```
```cpp value[i] = integer_vars_[vr[i]]; ^ ```
```cpp value[i] = boolean_vars_[vr[i]]; ^ ```
```cpp value[i] = string_vars_[vr[i]].c_str(); ^ ```
```cpp real_vars_[vr[i]] = value[i]; ^ ```
```cpp integer_vars_[vr[i]] = value[i]; ^ ```
```cpp boolean_vars_[vr[i]] = value[i]; ^ ```
```cpp string_vars_[vr[i]] = value[i]; ^ ```
```cpp delete myc; ^ ~~~ /home/runner/work/sl-1-0-sensor-model-repository-template/sl-1-0-sensor-model-repository-template/src/HelloWorldSensor.cpp:813:5: note: variable declared here auto* myc = (HelloWorldSensor*)c; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Reference to a related issue in the repository
16, #19
Add a description
Take this checklist as orientation for yourself, if this PR is ready for Maintainer Review