Skip to content

Commit

Permalink
Add .clang-format file to the root.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Kumorek authored and sorinj committed Jun 13, 2019
1 parent 8bd27b7 commit 87a0936
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .clang-format
@@ -0,0 +1,28 @@
# Defines the Chromium style for automatic reformatting.
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
# This defaults to 'Auto'. Explicitly set it for a while, so that
# 'vector<vector<int> >' in existing files gets formatted to
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use
# 'int>>' if the file already contains at least one such instance.)
Standard: Cpp11

# Make sure code like:
# IPC_BEGIN_MESSAGE_MAP()
# IPC_MESSAGE_HANDLER(WidgetHostViewHost_Update, OnUpdate)
# IPC_END_MESSAGE_MAP()
# gets correctly indented.
MacroBlockBegin: "^\
BEGIN_COM_MAP|\
BEGIN_MSG_MAP|\
BEGIN_OBJECT_MAP|\
BEGIN_PROP_MAP|\
BEGIN_REGISTRY_MAP|\"
BEGIN_SERVICE_MAP$"
MacroBlockEnd: "^\
END_COM_MAP|\
END_MSG_MAP|\
END_OBJECT_MAP|\
END_PROP_MAP|\
END_REGISTRY_MAP|\"
END_SERVICE_MAP$"

0 comments on commit 87a0936

Please sign in to comment.