summaryrefslogtreecommitdiff
path: root/tools/inspector_protocol/.clang-format
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2019-05-19 09:54:52 +0200
committerRich Trott <rtrott@gmail.com>2019-06-01 09:28:34 +0200
commit5aaa7fee2e4a075d9123b885f9e8cda3de2a780a (patch)
tree119e5d320745d7381ab225cd6a55aaaf17606b4b /tools/inspector_protocol/.clang-format
parentaa8b820aaa4d36085baaf8beb1187b2b9955fffb (diff)
downloadandroid-node-v8-5aaa7fee2e4a075d9123b885f9e8cda3de2a780a.tar.gz
android-node-v8-5aaa7fee2e4a075d9123b885f9e8cda3de2a780a.tar.bz2
android-node-v8-5aaa7fee2e4a075d9123b885f9e8cda3de2a780a.zip
tools: update inspector_protocol to 0aafd2
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/nodejs/node/pull/27770 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/inspector_protocol/.clang-format')
-rw-r--r--tools/inspector_protocol/.clang-format36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/inspector_protocol/.clang-format b/tools/inspector_protocol/.clang-format
new file mode 100644
index 0000000000..fcbc9c321a
--- /dev/null
+++ b/tools/inspector_protocol/.clang-format
@@ -0,0 +1,36 @@
+# 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_MSG_MAP|\
+BEGIN_MSG_MAP_EX|\
+BEGIN_SAFE_MSG_MAP_EX|\
+CR_BEGIN_MSG_MAP_EX|\
+IPC_BEGIN_MESSAGE_MAP|\
+IPC_BEGIN_MESSAGE_MAP_WITH_PARAM|\
+IPC_PROTOBUF_MESSAGE_TRAITS_BEGIN|\
+IPC_STRUCT_BEGIN|\
+IPC_STRUCT_BEGIN_WITH_PARENT|\
+IPC_STRUCT_TRAITS_BEGIN|\
+POLPARAMS_BEGIN|\
+PPAPI_BEGIN_MESSAGE_MAP$"
+MacroBlockEnd: "^\
+CR_END_MSG_MAP|\
+END_MSG_MAP|\
+IPC_END_MESSAGE_MAP|\
+IPC_PROTOBUF_MESSAGE_TRAITS_END|\
+IPC_STRUCT_END|\
+IPC_STRUCT_TRAITS_END|\
+POLPARAMS_END|\
+PPAPI_END_MESSAGE_MAP$"