blob: 6503c7448843dfea4850bd9140c2e2f6178c5400 [file] [log] [blame]
/*
* Copyright (c) 2021 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_
#define ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_
#define __no_optimization __attribute__((optnone))
#if __clang_major__ >= 10
#define __fallthrough __attribute__((fallthrough))
#endif
#define TOOLCHAIN_CLANG_VERSION \
((__clang_major__ * 10000) + (__clang_minor__ * 100) + \
__clang_patchlevel__)
#define TOOLCHAIN_HAS_PRAGMA_DIAG 1
#if TOOLCHAIN_CLANG_VERSION >= 30800
#define TOOLCHAIN_HAS_C_GENERIC 1
#define TOOLCHAIN_HAS_C_AUTO_TYPE 1
#endif
#include <zephyr/toolchain/gcc.h>
#endif /* ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_ */