iPlug2 - C++ Audio Plug-in Framework
Code Style

These guidelines exist in order to try and tidy up the IPlug code base. Every developer has their own preferences, here we are stuck with some legacy choices that may not be the best/most modern approaches, but are used widely. We want to aim for consistency across the code base.

Todo:
Expand this

An example class:

class MyClass
{
public:
MyClass()
{
}
~MyClass()
{
}
void MyFunction(const char* str, IControl* pControl, WDL_String& fileName) const
{
const double myVarible = 0.5; // const where relevant
//single line if statements should look like this
if (0.5 > 0.4)
printf("hello world\n");
}
private:
IControl* mControl; // member variables have prefix mCamelCase
}