More info

QuantLib Style Guidelines

The standard style for QuantLib code is shown in the following
listing. You can write in your own style if you don't feel
comfortable with this one; however, keep in mind that consistency
would enhance readability for developers accustomed to the existing
body of code. Also, there should be no real tabs in the code; four
spaces should be used instead. If you don't follow this convention,
other developers are likely to see your code with the wrong
indentation.