From a729c15e9dce9f5116a38afc66329ab2ca4cea54 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 13:59:28 +0800 Subject: preparation for clang format (#5422) * Clang-format excludes * Add .clang-format * Don't clang-format in external * Missing includes and forward declarations * Replace wonky include-once macro name * neaten include naming * Add clang-format to formatting script * Add xargs and diff to required binaries * add clang-format to ci formatting check * Add max version check to formatting script * temporarily disable checking formatting for cpp files --- source/core/slang-common.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source/core/slang-common.h') diff --git a/source/core/slang-common.h b/source/core/slang-common.h index 8c84894ca..2952eccd2 100644 --- a/source/core/slang-common.h +++ b/source/core/slang-common.h @@ -1,7 +1,6 @@ -#ifndef SLANG_CORE_COMMON_H -#define SLANG_CORE_COMMON_H +#pragma once -#include "../../include/slang.h" +#include "slang.h" #include @@ -237,7 +236,6 @@ template void slang_use_obj(T&) {} #define SLANG_UNREFERENCED_PARAMETER(P) slang_use_obj(P) #define SLANG_UNREFERENCED_VARIABLE(P) slang_use_obj(P) -#endif #if defined(SLANG_RT_DYNAMIC) #if defined(_MSC_VER) -- cgit v1.2.3