Code Style Format

General

We have agreed on using the code style from Google and introduce the procedure to apply the style on individual IDEs below.

Code Style for CLion

CLion has built-in support for different kind of code styling formats and also for Google code style. To set the code style follow these steps:

  1. Go to the Setting window: FileSettings
  2. Jump to C/C++ code style: EditorCode StyleC/C++
  3. Apply the C++ code style: Set fromGoogle
  4. Click Apply and OK.

💡 To apply the code style either use the keyboard shortcut or go to the menu CodeReformat Code.

Code Style for Eclipse

Eclipse has built-in support for importing any external template defining the code style to the project. You can select if you want to use the code style by default or for a specific project. To enable the code style from Google for NebulaStream follow these steps:

  1. Download the code style file.
  2. Import the downloaded file: WindowPreferencesC/C++Code StyleFormatter
  3. Click on Import … and supply the downloaded file.
  4. Click on Apply and Close.

💡 To apply the code style either click the keyboard shortcut or go to menu SourceFormat.