ClangFormat: apply to source, most of intern
[blender.git] / source / blender / blenkernel / intern / autoexec.c
index 1444c2c..1616c46 100644 (file)
@@ -34,7 +34,7 @@
 #  include "BLI_string.h"
 #endif
 
-#include "BKE_autoexec.h"  /* own include */
+#include "BKE_autoexec.h" /* own include */
 
 /**
  * \param path: The path to check against.
  */
 bool BKE_autoexec_match(const char *path)
 {
-       bPathCompare *path_cmp;
+  bPathCompare *path_cmp;
 
 #ifdef WIN32
-       const int fnmatch_flags = FNM_CASEFOLD;
+  const int fnmatch_flags = FNM_CASEFOLD;
 #else
-       const int fnmatch_flags = 0;
+  const int fnmatch_flags = 0;
 #endif
 
-       BLI_assert((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0);
+  BLI_assert((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0);
 
-       for (path_cmp = U.autoexec_paths.first; path_cmp; path_cmp = path_cmp->next) {
-               if (path_cmp->path[0] == '\0') {
-                       /* pass */
-               }
-               else if ((path_cmp->flag & USER_PATHCMP_GLOB)) {
-                       if (fnmatch(path_cmp->path, path, fnmatch_flags) == 0) {
-                               return true;
-                       }
-               }
-               else if (BLI_path_ncmp(path_cmp->path, path, strlen(path_cmp->path)) == 0) {
-                       return true;
-               }
-       }
+  for (path_cmp = U.autoexec_paths.first; path_cmp; path_cmp = path_cmp->next) {
+    if (path_cmp->path[0] == '\0') {
+      /* pass */
+    }
+    else if ((path_cmp->flag & USER_PATHCMP_GLOB)) {
+      if (fnmatch(path_cmp->path, path, fnmatch_flags) == 0) {
+        return true;
+      }
+    }
+    else if (BLI_path_ncmp(path_cmp->path, path, strlen(path_cmp->path)) == 0) {
+      return true;
+    }
+  }
 
-       return false;
+  return false;
 }