Skip to content

Following C Core Guidelines in Processing Module

Prachi Sheth edited this page Jan 16, 2025 · 2 revisions
  1. biquadratic.cpp

Some of the C++ core guidelines that are followed in biquadratic.cpp are :

  • The use of std::vector instead of raw pointers helps. Resource.1
  • All member variables (a0, a1, a2, b1, b2) are initialized in the constructor to prevent undefined behavior. Philosophy.2
  • The functions like filter, setSamplingRate, and setBandWidth are clearly defined. Function.1

Clang-Tidy Test -

Screenshot from 2024-12-15 22-01-01

  1. butterworthBandNoch.cpp

C++ core guidelines that are followed in butterworthBandNoch.cpp are :

Clang-Tidy Test(Before) -

Screenshot from 2025-01-16 14-22-16

Clang-Tidy Test(After) -

Screenshot from 2025-01-16 14-21-10