Follow the coding style described in: http://www.webkit.org/coding/coding-style.html If possible, use clang-format tool to format your code: // in-place formatting clang-format -i --style="WebKit" INPUT_FILE // out-of-place formatting clang-format --style="WebKit" INPUT_FILE > OUTPUT_FILE