From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: ClangFormat: apply to source, most of intern Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat --- source/blender/blenkernel/intern/autoexec.c | 38 ++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'source/blender/blenkernel/intern/autoexec.c') diff --git a/source/blender/blenkernel/intern/autoexec.c b/source/blender/blenkernel/intern/autoexec.c index 1444c2cccbc..1616c46d05b 100644 --- a/source/blender/blenkernel/intern/autoexec.c +++ b/source/blender/blenkernel/intern/autoexec.c @@ -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. @@ -42,29 +42,29 @@ */ 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; } -- cgit v1.2.3