From 31c5ef1bc32fcff6ecd1d774852a2f5506a65aea Mon Sep 17 00:00:00 2001
From: Marko Mikulicic <mkm@cesanta.com>
Date: Mon, 17 Oct 2016 19:50:28 +0300
Subject: [PATCH] Don't clang-format non checked out things

mbed-os is a directory that gets checked out by the mbed cli
(a tool similar in spirit to miot) and it contains a lot of
.c sources, so many of them that clang-format burns your CPU.

While we're at it, also fix check_no_ifdefs when running under a commit
hook.

PUBLISHED_FROM=e5dd457ea3c4f9bd880f2491fb322dffa7abf70a
---
 examples/api_server/sqlite3.c | 1 +
 examples/api_server/sqlite3.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/examples/api_server/sqlite3.c b/examples/api_server/sqlite3.c
index a49c83c59..96fbe0659 100644
--- a/examples/api_server/sqlite3.c
+++ b/examples/api_server/sqlite3.c
@@ -1,3 +1,4 @@
+/* clang-format off */
 /******************************************************************************
 ** This file is an amalgamation of many separate C source files from SQLite
 ** version 3.7.17.  By combining all the individual C code files into this 
diff --git a/examples/api_server/sqlite3.h b/examples/api_server/sqlite3.h
index 1367d6aae..c99f81406 100644
--- a/examples/api_server/sqlite3.h
+++ b/examples/api_server/sqlite3.h
@@ -1,3 +1,4 @@
+/* clang-format off */
 /*
 ** 2001 September 15
 **
-- 
GitLab