[libclc] [libclc] Reorganize OpenCL builtins (PR #140557)

via cfe-commits cfe-commits at lists.llvm.org
Mon May 19 08:06:27 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions h,cl,inc -- libclc/opencl/include/clc/opencl/clc.h libclc/opencl/include/clc/opencl/as_type.h libclc/opencl/include/clc/opencl/async/async_work_group_copy.h libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.h libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.inc libclc/opencl/include/clc/opencl/async/prefetch.h libclc/opencl/include/clc/opencl/async/prefetch.inc libclc/opencl/include/clc/opencl/async/wait_group_events.h libclc/opencl/include/clc/opencl/atomic/atom_add.h libclc/opencl/include/clc/opencl/atomic/atom_and.h libclc/opencl/include/clc/opencl/atomic/atom_cmpxchg.h libclc/opencl/include/clc/opencl/atomic/atom_dec.h libclc/opencl/include/clc/opencl/atomic/atom_decl_int32.inc libclc/opencl/include/clc/opencl/atomic/atom_decl_int64.inc libclc/opencl/include/clc/opencl/atomic/atom_inc.h libclc/opencl/include/clc/opencl/atomic/atom_max.h libclc/opencl/include/clc/opencl/atomic/atom_min.h libclc/opencl/include/clc/opencl/atomic/atom_or.h libclc/opencl/include/clc/opencl/atomic/atom_sub.h libclc/opencl/include/clc/opencl/atomic/atom_xchg.h libclc/opencl/include/clc/opencl/atomic/atom_xor.h libclc/opencl/include/clc/opencl/atomic/atomic_add.h libclc/opencl/include/clc/opencl/atomic/atomic_and.h libclc/opencl/include/clc/opencl/atomic/atomic_cmpxchg.h libclc/opencl/include/clc/opencl/atomic/atomic_dec.h libclc/opencl/include/clc/opencl/atomic/atomic_decl.inc libclc/opencl/include/clc/opencl/atomic/atomic_inc.h libclc/opencl/include/clc/opencl/atomic/atomic_max.h libclc/opencl/include/clc/opencl/atomic/atomic_min.h libclc/opencl/include/clc/opencl/atomic/atomic_or.h libclc/opencl/include/clc/opencl/atomic/atomic_sub.h libclc/opencl/include/clc/opencl/atomic/atomic_xchg.h libclc/opencl/include/clc/opencl/atomic/atomic_xor.h libclc/opencl/include/clc/opencl/common/degrees.h libclc/opencl/include/clc/opencl/common/mix.h libclc/opencl/include/clc/opencl/common/mix.inc libclc/opencl/include/clc/opencl/common/radians.h libclc/opencl/include/clc/opencl/common/sign.h libclc/opencl/include/clc/opencl/common/smoothstep.h libclc/opencl/include/clc/opencl/common/smoothstep.inc libclc/opencl/include/clc/opencl/common/step.h libclc/opencl/include/clc/opencl/common/step.inc libclc/opencl/include/clc/opencl/convert.h libclc/opencl/include/clc/opencl/explicit_fence/explicit_memory_fence.h libclc/opencl/include/clc/opencl/geometric/cross.h libclc/opencl/include/clc/opencl/geometric/distance.h libclc/opencl/include/clc/opencl/geometric/dot.h libclc/opencl/include/clc/opencl/geometric/fast_distance.h libclc/opencl/include/clc/opencl/geometric/fast_length.h libclc/opencl/include/clc/opencl/geometric/fast_normalize.h libclc/opencl/include/clc/opencl/geometric/length.h libclc/opencl/include/clc/opencl/geometric/normalize.h libclc/opencl/include/clc/opencl/image/image.h libclc/opencl/include/clc/opencl/image/image_defines.h libclc/opencl/include/clc/opencl/integer/abs.h libclc/opencl/include/clc/opencl/integer/abs.inc libclc/opencl/include/clc/opencl/integer/abs_diff.h libclc/opencl/include/clc/opencl/integer/abs_diff.inc libclc/opencl/include/clc/opencl/integer/add_sat.h libclc/opencl/include/clc/opencl/integer/clz.h libclc/opencl/include/clc/opencl/integer/ctz.h libclc/opencl/include/clc/opencl/integer/hadd.h libclc/opencl/include/clc/opencl/integer/mad24.h libclc/opencl/include/clc/opencl/integer/mad_hi.h libclc/opencl/include/clc/opencl/integer/mad_sat.h libclc/opencl/include/clc/opencl/integer/mul24.h libclc/opencl/include/clc/opencl/integer/mul_hi.h libclc/opencl/include/clc/opencl/integer/popcount.h libclc/opencl/include/clc/opencl/integer/rhadd.h libclc/opencl/include/clc/opencl/integer/rotate.h libclc/opencl/include/clc/opencl/integer/sub_sat.h libclc/opencl/include/clc/opencl/integer/upsample.h libclc/opencl/include/clc/opencl/math/acos.h libclc/opencl/include/clc/opencl/math/acosh.h libclc/opencl/include/clc/opencl/math/acospi.h libclc/opencl/include/clc/opencl/math/asin.h libclc/opencl/include/clc/opencl/math/asinh.h libclc/opencl/include/clc/opencl/math/asinpi.h libclc/opencl/include/clc/opencl/math/atan.h libclc/opencl/include/clc/opencl/math/atan2.h libclc/opencl/include/clc/opencl/math/atan2pi.h libclc/opencl/include/clc/opencl/math/atanh.h libclc/opencl/include/clc/opencl/math/atanpi.h libclc/opencl/include/clc/opencl/math/cbrt.h libclc/opencl/include/clc/opencl/math/ceil.h libclc/opencl/include/clc/opencl/math/copysign.h libclc/opencl/include/clc/opencl/math/cos.h libclc/opencl/include/clc/opencl/math/cosh.h libclc/opencl/include/clc/opencl/math/cospi.h libclc/opencl/include/clc/opencl/math/erf.h libclc/opencl/include/clc/opencl/math/erfc.h libclc/opencl/include/clc/opencl/math/exp.h libclc/opencl/include/clc/opencl/math/exp10.h libclc/opencl/include/clc/opencl/math/exp2.h libclc/opencl/include/clc/opencl/math/expm1.h libclc/opencl/include/clc/opencl/math/fabs.h libclc/opencl/include/clc/opencl/math/fdim.h libclc/opencl/include/clc/opencl/math/floor.h libclc/opencl/include/clc/opencl/math/fma.h libclc/opencl/include/clc/opencl/math/fmax.h libclc/opencl/include/clc/opencl/math/fmin.h libclc/opencl/include/clc/opencl/math/fmod.h libclc/opencl/include/clc/opencl/math/fract.h libclc/opencl/include/clc/opencl/math/frexp.h libclc/opencl/include/clc/opencl/math/frexp.inc libclc/opencl/include/clc/opencl/math/half_cos.h libclc/opencl/include/clc/opencl/math/half_divide.h libclc/opencl/include/clc/opencl/math/half_exp.h libclc/opencl/include/clc/opencl/math/half_exp10.h libclc/opencl/include/clc/opencl/math/half_exp2.h libclc/opencl/include/clc/opencl/math/half_log.h libclc/opencl/include/clc/opencl/math/half_log10.h libclc/opencl/include/clc/opencl/math/half_log2.h libclc/opencl/include/clc/opencl/math/half_powr.h libclc/opencl/include/clc/opencl/math/half_recip.h libclc/opencl/include/clc/opencl/math/half_rsqrt.h libclc/opencl/include/clc/opencl/math/half_sin.h libclc/opencl/include/clc/opencl/math/half_sqrt.h libclc/opencl/include/clc/opencl/math/half_tan.h libclc/opencl/include/clc/opencl/math/hypot.h libclc/opencl/include/clc/opencl/math/ilogb.h libclc/opencl/include/clc/opencl/math/ldexp.h libclc/opencl/include/clc/opencl/math/ldexp.inc libclc/opencl/include/clc/opencl/math/lgamma.h libclc/opencl/include/clc/opencl/math/lgamma_r.h libclc/opencl/include/clc/opencl/math/log.h libclc/opencl/include/clc/opencl/math/log10.h libclc/opencl/include/clc/opencl/math/log1p.h libclc/opencl/include/clc/opencl/math/log2.h libclc/opencl/include/clc/opencl/math/logb.h libclc/opencl/include/clc/opencl/math/mad.h libclc/opencl/include/clc/opencl/math/maxmag.h libclc/opencl/include/clc/opencl/math/minmag.h libclc/opencl/include/clc/opencl/math/modf.h libclc/opencl/include/clc/opencl/math/nan.h libclc/opencl/include/clc/opencl/math/nan.inc libclc/opencl/include/clc/opencl/math/native_cos.h libclc/opencl/include/clc/opencl/math/native_divide.h libclc/opencl/include/clc/opencl/math/native_exp.h libclc/opencl/include/clc/opencl/math/native_exp10.h libclc/opencl/include/clc/opencl/math/native_exp2.h libclc/opencl/include/clc/opencl/math/native_log.h libclc/opencl/include/clc/opencl/math/native_log10.h libclc/opencl/include/clc/opencl/math/native_log2.h libclc/opencl/include/clc/opencl/math/native_powr.h libclc/opencl/include/clc/opencl/math/native_recip.h libclc/opencl/include/clc/opencl/math/native_rsqrt.h libclc/opencl/include/clc/opencl/math/native_sin.h libclc/opencl/include/clc/opencl/math/native_sqrt.h libclc/opencl/include/clc/opencl/math/native_tan.h libclc/opencl/include/clc/opencl/math/nextafter.h libclc/opencl/include/clc/opencl/math/pow.h libclc/opencl/include/clc/opencl/math/pown.h libclc/opencl/include/clc/opencl/math/powr.h libclc/opencl/include/clc/opencl/math/remainder.h libclc/opencl/include/clc/opencl/math/remquo.h libclc/opencl/include/clc/opencl/math/rint.h libclc/opencl/include/clc/opencl/math/rootn.h libclc/opencl/include/clc/opencl/math/round.h libclc/opencl/include/clc/opencl/math/rsqrt.h libclc/opencl/include/clc/opencl/math/sin.h libclc/opencl/include/clc/opencl/math/sincos.h libclc/opencl/include/clc/opencl/math/sinh.h libclc/opencl/include/clc/opencl/math/sinpi.h libclc/opencl/include/clc/opencl/math/sqrt.h libclc/opencl/include/clc/opencl/math/tan.h libclc/opencl/include/clc/opencl/math/tanh.h libclc/opencl/include/clc/opencl/math/tanpi.h libclc/opencl/include/clc/opencl/math/tgamma.h libclc/opencl/include/clc/opencl/math/trunc.h libclc/opencl/include/clc/opencl/misc/shuffle.h libclc/opencl/include/clc/opencl/misc/shuffle2.h libclc/opencl/include/clc/opencl/relational/all.h libclc/opencl/include/clc/opencl/relational/any.h libclc/opencl/include/clc/opencl/relational/bitselect.h libclc/opencl/include/clc/opencl/relational/bitselect.inc libclc/opencl/include/clc/opencl/relational/isequal.h libclc/opencl/include/clc/opencl/relational/isfinite.h libclc/opencl/include/clc/opencl/relational/isgreater.h libclc/opencl/include/clc/opencl/relational/isgreaterequal.h libclc/opencl/include/clc/opencl/relational/isinf.h libclc/opencl/include/clc/opencl/relational/isless.h libclc/opencl/include/clc/opencl/relational/islessequal.h libclc/opencl/include/clc/opencl/relational/islessgreater.h libclc/opencl/include/clc/opencl/relational/isnan.h libclc/opencl/include/clc/opencl/relational/isnormal.h libclc/opencl/include/clc/opencl/relational/isnotequal.h libclc/opencl/include/clc/opencl/relational/isordered.h libclc/opencl/include/clc/opencl/relational/isunordered.h libclc/opencl/include/clc/opencl/relational/select.h libclc/opencl/include/clc/opencl/relational/signbit.h libclc/opencl/include/clc/opencl/shared/clamp.h libclc/opencl/include/clc/opencl/shared/clamp.inc libclc/opencl/include/clc/opencl/shared/max.h libclc/opencl/include/clc/opencl/shared/max.inc libclc/opencl/include/clc/opencl/shared/min.h libclc/opencl/include/clc/opencl/shared/min.inc libclc/opencl/include/clc/opencl/shared/vload.h libclc/opencl/include/clc/opencl/shared/vstore.h libclc/opencl/include/clc/opencl/synchronization/barrier.h libclc/opencl/include/clc/opencl/synchronization/cl_mem_fence_flags.h libclc/opencl/include/clc/opencl/workitem/get_global_id.h libclc/opencl/include/clc/opencl/workitem/get_global_offset.h libclc/opencl/include/clc/opencl/workitem/get_global_size.h libclc/opencl/include/clc/opencl/workitem/get_group_id.h libclc/opencl/include/clc/opencl/workitem/get_local_id.h libclc/opencl/include/clc/opencl/workitem/get_local_size.h libclc/opencl/include/clc/opencl/workitem/get_num_groups.h libclc/opencl/include/clc/opencl/workitem/get_work_dim.h libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl libclc/opencl/lib/amdgcn/mem_fence/fence.cl libclc/opencl/lib/amdgcn/synchronization/barrier.cl libclc/opencl/lib/amdgcn/workitem/get_global_offset.cl libclc/opencl/lib/amdgcn/workitem/get_global_size.cl libclc/opencl/lib/amdgcn/workitem/get_group_id.cl libclc/opencl/lib/amdgcn/workitem/get_local_id.cl libclc/opencl/lib/amdgcn/workitem/get_local_size.cl libclc/opencl/lib/amdgcn/workitem/get_num_groups.cl libclc/opencl/lib/amdgcn/workitem/get_work_dim.cl libclc/opencl/lib/clspv/math/fma.cl libclc/opencl/lib/clspv/shared/vstore_half.cl libclc/opencl/lib/clspv/shared/vstore_half.inc libclc/opencl/lib/clspv/subnormal_config.cl libclc/opencl/lib/generic/async/async_work_group_copy.cl libclc/opencl/lib/generic/async/async_work_group_copy.inc libclc/opencl/lib/generic/async/async_work_group_strided_copy.cl libclc/opencl/lib/generic/async/async_work_group_strided_copy.inc libclc/opencl/lib/generic/async/prefetch.cl libclc/opencl/lib/generic/async/prefetch.inc libclc/opencl/lib/generic/async/wait_group_events.cl libclc/opencl/lib/generic/atomic/atom_add.cl libclc/opencl/lib/generic/atomic/atom_and.cl libclc/opencl/lib/generic/atomic/atom_cmpxchg.cl libclc/opencl/lib/generic/atomic/atom_dec.cl libclc/opencl/lib/generic/atomic/atom_inc.cl libclc/opencl/lib/generic/atomic/atom_int32_binary.inc libclc/opencl/lib/generic/atomic/atom_max.cl libclc/opencl/lib/generic/atomic/atom_min.cl libclc/opencl/lib/generic/atomic/atom_or.cl libclc/opencl/lib/generic/atomic/atom_sub.cl libclc/opencl/lib/generic/atomic/atom_xchg.cl libclc/opencl/lib/generic/atomic/atom_xor.cl libclc/opencl/lib/generic/atomic/atomic_add.cl libclc/opencl/lib/generic/atomic/atomic_and.cl libclc/opencl/lib/generic/atomic/atomic_cmpxchg.cl libclc/opencl/lib/generic/atomic/atomic_dec.cl libclc/opencl/lib/generic/atomic/atomic_inc.cl libclc/opencl/lib/generic/atomic/atomic_max.cl libclc/opencl/lib/generic/atomic/atomic_min.cl libclc/opencl/lib/generic/atomic/atomic_or.cl libclc/opencl/lib/generic/atomic/atomic_sub.cl libclc/opencl/lib/generic/atomic/atomic_xchg.cl libclc/opencl/lib/generic/atomic/atomic_xor.cl libclc/opencl/lib/generic/common/degrees.cl libclc/opencl/lib/generic/common/mix.cl libclc/opencl/lib/generic/common/mix.inc libclc/opencl/lib/generic/common/radians.cl libclc/opencl/lib/generic/common/sign.cl libclc/opencl/lib/generic/common/smoothstep.cl libclc/opencl/lib/generic/common/step.cl libclc/opencl/lib/generic/geometric/cross.cl libclc/opencl/lib/generic/geometric/distance.cl libclc/opencl/lib/generic/geometric/dot.cl libclc/opencl/lib/generic/geometric/fast_distance.cl libclc/opencl/lib/generic/geometric/fast_length.cl libclc/opencl/lib/generic/geometric/fast_normalize.cl libclc/opencl/lib/generic/geometric/fast_normalize.inc libclc/opencl/lib/generic/geometric/length.cl libclc/opencl/lib/generic/geometric/normalize.cl libclc/opencl/lib/generic/integer/abs.cl libclc/opencl/lib/generic/integer/abs.inc libclc/opencl/lib/generic/integer/abs_diff.cl libclc/opencl/lib/generic/integer/abs_diff.inc libclc/opencl/lib/generic/integer/add_sat.cl libclc/opencl/lib/generic/integer/clz.cl libclc/opencl/lib/generic/integer/ctz.cl libclc/opencl/lib/generic/integer/hadd.cl libclc/opencl/lib/generic/integer/mad24.cl libclc/opencl/lib/generic/integer/mad_hi.cl libclc/opencl/lib/generic/integer/mad_sat.cl libclc/opencl/lib/generic/integer/mul24.cl libclc/opencl/lib/generic/integer/mul_hi.cl libclc/opencl/lib/generic/integer/popcount.cl libclc/opencl/lib/generic/integer/rhadd.cl libclc/opencl/lib/generic/integer/rotate.cl libclc/opencl/lib/generic/integer/sub_sat.cl libclc/opencl/lib/generic/integer/upsample.cl libclc/opencl/lib/generic/math/acos.cl libclc/opencl/lib/generic/math/acosh.cl libclc/opencl/lib/generic/math/acospi.cl libclc/opencl/lib/generic/math/asin.cl libclc/opencl/lib/generic/math/asinh.cl libclc/opencl/lib/generic/math/asinpi.cl libclc/opencl/lib/generic/math/atan.cl libclc/opencl/lib/generic/math/atan2.cl libclc/opencl/lib/generic/math/atan2pi.cl libclc/opencl/lib/generic/math/atanh.cl libclc/opencl/lib/generic/math/atanpi.cl libclc/opencl/lib/generic/math/cbrt.cl libclc/opencl/lib/generic/math/ceil.cl libclc/opencl/lib/generic/math/copysign.cl libclc/opencl/lib/generic/math/cos.cl libclc/opencl/lib/generic/math/cosh.cl libclc/opencl/lib/generic/math/cospi.cl libclc/opencl/lib/generic/math/erf.cl libclc/opencl/lib/generic/math/erfc.cl libclc/opencl/lib/generic/math/exp.cl libclc/opencl/lib/generic/math/exp10.cl libclc/opencl/lib/generic/math/exp2.cl libclc/opencl/lib/generic/math/expm1.cl libclc/opencl/lib/generic/math/fabs.cl libclc/opencl/lib/generic/math/fdim.cl libclc/opencl/lib/generic/math/floor.cl libclc/opencl/lib/generic/math/fma.cl libclc/opencl/lib/generic/math/fmax.cl libclc/opencl/lib/generic/math/fmax.inc libclc/opencl/lib/generic/math/fmin.cl libclc/opencl/lib/generic/math/fmin.inc libclc/opencl/lib/generic/math/fmod.cl libclc/opencl/lib/generic/math/fract.cl libclc/opencl/lib/generic/math/frexp.cl libclc/opencl/lib/generic/math/half_cos.cl libclc/opencl/lib/generic/math/half_divide.cl libclc/opencl/lib/generic/math/half_exp.cl libclc/opencl/lib/generic/math/half_exp10.cl libclc/opencl/lib/generic/math/half_exp2.cl libclc/opencl/lib/generic/math/half_log.cl libclc/opencl/lib/generic/math/half_log10.cl libclc/opencl/lib/generic/math/half_log2.cl libclc/opencl/lib/generic/math/half_powr.cl libclc/opencl/lib/generic/math/half_recip.cl libclc/opencl/lib/generic/math/half_rsqrt.cl libclc/opencl/lib/generic/math/half_sin.cl libclc/opencl/lib/generic/math/half_sqrt.cl libclc/opencl/lib/generic/math/half_tan.cl libclc/opencl/lib/generic/math/hypot.cl libclc/opencl/lib/generic/math/ilogb.cl libclc/opencl/lib/generic/math/ldexp.cl libclc/opencl/lib/generic/math/ldexp.inc libclc/opencl/lib/generic/math/lgamma.cl libclc/opencl/lib/generic/math/lgamma_r.cl libclc/opencl/lib/generic/math/log.cl libclc/opencl/lib/generic/math/log10.cl libclc/opencl/lib/generic/math/log1p.cl libclc/opencl/lib/generic/math/log2.cl libclc/opencl/lib/generic/math/logb.cl libclc/opencl/lib/generic/math/mad.cl libclc/opencl/lib/generic/math/maxmag.cl libclc/opencl/lib/generic/math/minmag.cl libclc/opencl/lib/generic/math/modf.cl libclc/opencl/lib/generic/math/nan.cl libclc/opencl/lib/generic/math/nan.inc libclc/opencl/lib/generic/math/native_cos.cl libclc/opencl/lib/generic/math/native_divide.cl libclc/opencl/lib/generic/math/native_exp.cl libclc/opencl/lib/generic/math/native_exp10.cl libclc/opencl/lib/generic/math/native_exp2.cl libclc/opencl/lib/generic/math/native_log.cl libclc/opencl/lib/generic/math/native_log10.cl libclc/opencl/lib/generic/math/native_log2.cl libclc/opencl/lib/generic/math/native_powr.cl libclc/opencl/lib/generic/math/native_recip.cl libclc/opencl/lib/generic/math/native_rsqrt.cl libclc/opencl/lib/generic/math/native_sin.cl libclc/opencl/lib/generic/math/native_sqrt.cl libclc/opencl/lib/generic/math/native_tan.cl libclc/opencl/lib/generic/math/nextafter.cl libclc/opencl/lib/generic/math/pow.cl libclc/opencl/lib/generic/math/pown.cl libclc/opencl/lib/generic/math/powr.cl libclc/opencl/lib/generic/math/remainder.cl libclc/opencl/lib/generic/math/remquo.cl libclc/opencl/lib/generic/math/remquo.inc libclc/opencl/lib/generic/math/rint.cl libclc/opencl/lib/generic/math/rootn.cl libclc/opencl/lib/generic/math/round.cl libclc/opencl/lib/generic/math/rsqrt.cl libclc/opencl/lib/generic/math/sin.cl libclc/opencl/lib/generic/math/sincos.cl libclc/opencl/lib/generic/math/sinh.cl libclc/opencl/lib/generic/math/sinpi.cl libclc/opencl/lib/generic/math/sqrt.cl libclc/opencl/lib/generic/math/tan.cl libclc/opencl/lib/generic/math/tanh.cl libclc/opencl/lib/generic/math/tanpi.cl libclc/opencl/lib/generic/math/tgamma.cl libclc/opencl/lib/generic/math/trunc.cl libclc/opencl/lib/generic/misc/shuffle.cl libclc/opencl/lib/generic/misc/shuffle2.cl libclc/opencl/lib/generic/relational/all.cl libclc/opencl/lib/generic/relational/any.cl libclc/opencl/lib/generic/relational/binary_def.inc libclc/opencl/lib/generic/relational/bitselect.cl libclc/opencl/lib/generic/relational/bitselect.inc libclc/opencl/lib/generic/relational/isequal.cl libclc/opencl/lib/generic/relational/isfinite.cl libclc/opencl/lib/generic/relational/isgreater.cl libclc/opencl/lib/generic/relational/isgreaterequal.cl libclc/opencl/lib/generic/relational/isinf.cl libclc/opencl/lib/generic/relational/isless.cl libclc/opencl/lib/generic/relational/islessequal.cl libclc/opencl/lib/generic/relational/islessgreater.cl libclc/opencl/lib/generic/relational/isnan.cl libclc/opencl/lib/generic/relational/isnormal.cl libclc/opencl/lib/generic/relational/isnotequal.cl libclc/opencl/lib/generic/relational/isordered.cl libclc/opencl/lib/generic/relational/isunordered.cl libclc/opencl/lib/generic/relational/select.cl libclc/opencl/lib/generic/relational/signbit.cl libclc/opencl/lib/generic/relational/unary_def.inc libclc/opencl/lib/generic/shared/clamp.cl libclc/opencl/lib/generic/shared/clamp.inc libclc/opencl/lib/generic/shared/max.cl libclc/opencl/lib/generic/shared/max.inc libclc/opencl/lib/generic/shared/min.cl libclc/opencl/lib/generic/shared/min.inc libclc/opencl/lib/generic/shared/vload.cl libclc/opencl/lib/generic/shared/vload_half.inc libclc/opencl/lib/generic/shared/vstore.cl libclc/opencl/lib/generic/shared/vstore_half.inc libclc/opencl/lib/generic/subnormal_config.cl libclc/opencl/lib/generic/workitem/get_global_id.cl libclc/opencl/lib/generic/workitem/get_global_size.cl libclc/opencl/lib/ptx-nvidiacl/mem_fence/fence.cl libclc/opencl/lib/ptx-nvidiacl/synchronization/barrier.cl libclc/opencl/lib/ptx-nvidiacl/workitem/get_global_id.cl libclc/opencl/lib/ptx-nvidiacl/workitem/get_group_id.cl libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_id.cl libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl libclc/opencl/lib/r600/image/get_image_channel_data_type.cl libclc/opencl/lib/r600/image/get_image_channel_order.cl libclc/opencl/lib/r600/image/get_image_depth.cl libclc/opencl/lib/r600/image/get_image_dim.cl libclc/opencl/lib/r600/image/get_image_height.cl libclc/opencl/lib/r600/image/get_image_width.cl libclc/opencl/lib/r600/image/read_imagef.cl libclc/opencl/lib/r600/image/read_imagei.cl libclc/opencl/lib/r600/image/read_imageui.cl libclc/opencl/lib/r600/image/write_imagef.cl libclc/opencl/lib/r600/image/write_imagei.cl libclc/opencl/lib/r600/image/write_imageui.cl libclc/opencl/lib/r600/synchronization/barrier.cl libclc/opencl/lib/r600/workitem/get_global_offset.cl libclc/opencl/lib/r600/workitem/get_global_size.cl libclc/opencl/lib/r600/workitem/get_group_id.cl libclc/opencl/lib/r600/workitem/get_local_id.cl libclc/opencl/lib/r600/workitem/get_local_size.cl libclc/opencl/lib/r600/workitem/get_num_groups.cl libclc/opencl/lib/r600/workitem/get_work_dim.cl libclc/opencl/lib/spirv/math/fma.cl libclc/opencl/lib/spirv/subnormal_config.cl
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc b/libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc
index 502c79f41..cc4174970 100644
--- a/libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc
+++ b/libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc
@@ -6,8 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL event_t async_work_group_copy(
-  __CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst,
-  const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src,
-  size_t num_gentypes,
-  event_t event);
+_CLC_OVERLOAD _CLC_DECL event_t
+async_work_group_copy(__CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst,
+                      const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src,
+                      size_t num_gentypes, event_t event);
diff --git a/libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.inc b/libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.inc
index d5a582d9a..9df894e4f 100644
--- a/libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.inc
+++ b/libclc/opencl/include/clc/opencl/async/async_work_group_strided_copy.inc
@@ -7,8 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 _CLC_OVERLOAD _CLC_DECL event_t async_work_group_strided_copy(
-  __CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst,
-  const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src,
-  size_t num_gentypes,
-  size_t stride,
-  event_t event);
+    __CLC_DST_ADDR_SPACE __CLC_GENTYPE *dst,
+    const __CLC_SRC_ADDR_SPACE __CLC_GENTYPE *src, size_t num_gentypes,
+    size_t stride, event_t event);
diff --git a/libclc/opencl/include/clc/opencl/async/prefetch.inc b/libclc/opencl/include/clc/opencl/async/prefetch.inc
index 6439e721a..4a78778fa 100644
--- a/libclc/opencl/include/clc/opencl/async/prefetch.inc
+++ b/libclc/opencl/include/clc/opencl/async/prefetch.inc
@@ -6,4 +6,5 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL void prefetch(const global __CLC_GENTYPE *p, size_t num_gentypes);
+_CLC_OVERLOAD _CLC_DECL void prefetch(const global __CLC_GENTYPE *p,
+                                      size_t num_gentypes);
diff --git a/libclc/opencl/include/clc/opencl/atomic/atomic_cmpxchg.h b/libclc/opencl/include/clc/opencl/atomic/atomic_cmpxchg.h
index f49269777..fc7975910 100644
--- a/libclc/opencl/include/clc/opencl/atomic/atomic_cmpxchg.h
+++ b/libclc/opencl/include/clc/opencl/atomic/atomic_cmpxchg.h
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL int atomic_cmpxchg (volatile local int *, int, int);
-_CLC_OVERLOAD _CLC_DECL int atomic_cmpxchg (volatile global int *, int, int);
-_CLC_OVERLOAD _CLC_DECL uint atomic_cmpxchg (volatile local uint *, uint, uint);
-_CLC_OVERLOAD _CLC_DECL uint atomic_cmpxchg (volatile global uint *, uint, uint);
+_CLC_OVERLOAD _CLC_DECL int atomic_cmpxchg(volatile local int *, int, int);
+_CLC_OVERLOAD _CLC_DECL int atomic_cmpxchg(volatile global int *, int, int);
+_CLC_OVERLOAD _CLC_DECL uint atomic_cmpxchg(volatile local uint *, uint, uint);
+_CLC_OVERLOAD _CLC_DECL uint atomic_cmpxchg(volatile global uint *, uint, uint);
diff --git a/libclc/opencl/include/clc/opencl/atomic/atomic_dec.h b/libclc/opencl/include/clc/opencl/atomic/atomic_dec.h
index aca1b9592..354a72100 100644
--- a/libclc/opencl/include/clc/opencl/atomic/atomic_dec.h
+++ b/libclc/opencl/include/clc/opencl/atomic/atomic_dec.h
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL int atomic_dec (volatile local int *);
-_CLC_OVERLOAD _CLC_DECL int atomic_dec (volatile global int *);
-_CLC_OVERLOAD _CLC_DECL uint atomic_dec (volatile local uint *);
-_CLC_OVERLOAD _CLC_DECL uint atomic_dec (volatile global uint *);
+_CLC_OVERLOAD _CLC_DECL int atomic_dec(volatile local int *);
+_CLC_OVERLOAD _CLC_DECL int atomic_dec(volatile global int *);
+_CLC_OVERLOAD _CLC_DECL uint atomic_dec(volatile local uint *);
+_CLC_OVERLOAD _CLC_DECL uint atomic_dec(volatile global uint *);
diff --git a/libclc/opencl/include/clc/opencl/atomic/atomic_decl.inc b/libclc/opencl/include/clc/opencl/atomic/atomic_decl.inc
index b6540b37d..0cfd4c3ea 100644
--- a/libclc/opencl/include/clc/opencl/atomic/atomic_decl.inc
+++ b/libclc/opencl/include/clc/opencl/atomic/atomic_decl.inc
@@ -6,12 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define __CLC_DECLARE_ATOMIC(ADDRSPACE, TYPE) \
-	_CLC_OVERLOAD _CLC_DECL TYPE __CLC_FUNCTION (volatile ADDRSPACE TYPE *, TYPE);
+#define __CLC_DECLARE_ATOMIC(ADDRSPACE, TYPE)                                  \
+  _CLC_OVERLOAD _CLC_DECL TYPE __CLC_FUNCTION(volatile ADDRSPACE TYPE *, TYPE);
 
-#define __CLC_DECLARE_ATOMIC_ADDRSPACE(TYPE) \
-	__CLC_DECLARE_ATOMIC(global, TYPE) \
-	__CLC_DECLARE_ATOMIC(local, TYPE)
+#define __CLC_DECLARE_ATOMIC_ADDRSPACE(TYPE)                                   \
+  __CLC_DECLARE_ATOMIC(global, TYPE)                                           \
+  __CLC_DECLARE_ATOMIC(local, TYPE)
 
 __CLC_DECLARE_ATOMIC_ADDRSPACE(int)
 __CLC_DECLARE_ATOMIC_ADDRSPACE(uint)
diff --git a/libclc/opencl/include/clc/opencl/atomic/atomic_inc.h b/libclc/opencl/include/clc/opencl/atomic/atomic_inc.h
index daf1d8feb..2b81c23bf 100644
--- a/libclc/opencl/include/clc/opencl/atomic/atomic_inc.h
+++ b/libclc/opencl/include/clc/opencl/atomic/atomic_inc.h
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL int atomic_inc (volatile local int *);
-_CLC_OVERLOAD _CLC_DECL int atomic_inc (volatile global int *);
-_CLC_OVERLOAD _CLC_DECL uint atomic_inc (volatile local uint *);
-_CLC_OVERLOAD _CLC_DECL uint atomic_inc (volatile global uint *);
+_CLC_OVERLOAD _CLC_DECL int atomic_inc(volatile local int *);
+_CLC_OVERLOAD _CLC_DECL int atomic_inc(volatile global int *);
+_CLC_OVERLOAD _CLC_DECL uint atomic_inc(volatile local uint *);
+_CLC_OVERLOAD _CLC_DECL uint atomic_inc(volatile global uint *);
diff --git a/libclc/opencl/include/clc/opencl/atomic/atomic_xchg.h b/libclc/opencl/include/clc/opencl/atomic/atomic_xchg.h
index efad65567..ec322d56e 100644
--- a/libclc/opencl/include/clc/opencl/atomic/atomic_xchg.h
+++ b/libclc/opencl/include/clc/opencl/atomic/atomic_xchg.h
@@ -8,6 +8,6 @@
 
 #define __CLC_FUNCTION atomic_xchg
 
-_CLC_OVERLOAD _CLC_DECL float __CLC_FUNCTION (volatile local float *, float);
-_CLC_OVERLOAD _CLC_DECL float __CLC_FUNCTION (volatile global float *, float);
+_CLC_OVERLOAD _CLC_DECL float __CLC_FUNCTION(volatile local float *, float);
+_CLC_OVERLOAD _CLC_DECL float __CLC_FUNCTION(volatile global float *, float);
 #include <clc/opencl/atomic/atomic_decl.inc>
diff --git a/libclc/opencl/include/clc/opencl/clc.h b/libclc/opencl/include/clc/opencl/clc.h
index c23ad3354..0116a1293 100644
--- a/libclc/opencl/include/clc/opencl/clc.h
+++ b/libclc/opencl/include/clc/opencl/clc.h
@@ -36,13 +36,13 @@
 #include <clc/opencl/as_type.h>
 
 /* 6.11.1 Work-Item Functions */
-#include <clc/opencl/workitem/get_global_size.h>
 #include <clc/opencl/workitem/get_global_id.h>
-#include <clc/opencl/workitem/get_local_size.h>
+#include <clc/opencl/workitem/get_global_offset.h>
+#include <clc/opencl/workitem/get_global_size.h>
+#include <clc/opencl/workitem/get_group_id.h>
 #include <clc/opencl/workitem/get_local_id.h>
+#include <clc/opencl/workitem/get_local_size.h>
 #include <clc/opencl/workitem/get_num_groups.h>
-#include <clc/opencl/workitem/get_group_id.h>
-#include <clc/opencl/workitem/get_global_offset.h>
 #include <clc/opencl/workitem/get_work_dim.h>
 
 /* 6.11.2 Math Functions */
@@ -58,17 +58,17 @@
 #include <clc/opencl/math/atanh.h>
 #include <clc/opencl/math/atanpi.h>
 #include <clc/opencl/math/cbrt.h>
+#include <clc/opencl/math/ceil.h>
 #include <clc/opencl/math/copysign.h>
 #include <clc/opencl/math/cos.h>
 #include <clc/opencl/math/cosh.h>
 #include <clc/opencl/math/cospi.h>
-#include <clc/opencl/math/ceil.h>
 #include <clc/opencl/math/erf.h>
 #include <clc/opencl/math/erfc.h>
 #include <clc/opencl/math/exp.h>
-#include <clc/opencl/math/expm1.h>
 #include <clc/opencl/math/exp10.h>
 #include <clc/opencl/math/exp2.h>
+#include <clc/opencl/math/expm1.h>
 #include <clc/opencl/math/fabs.h>
 #include <clc/opencl/math/fdim.h>
 #include <clc/opencl/math/floor.h>
@@ -107,6 +107,20 @@
 #include <clc/opencl/math/minmag.h>
 #include <clc/opencl/math/modf.h>
 #include <clc/opencl/math/nan.h>
+#include <clc/opencl/math/native_cos.h>
+#include <clc/opencl/math/native_divide.h>
+#include <clc/opencl/math/native_exp.h>
+#include <clc/opencl/math/native_exp10.h>
+#include <clc/opencl/math/native_exp2.h>
+#include <clc/opencl/math/native_log.h>
+#include <clc/opencl/math/native_log10.h>
+#include <clc/opencl/math/native_log2.h>
+#include <clc/opencl/math/native_powr.h>
+#include <clc/opencl/math/native_recip.h>
+#include <clc/opencl/math/native_rsqrt.h>
+#include <clc/opencl/math/native_sin.h>
+#include <clc/opencl/math/native_sqrt.h>
+#include <clc/opencl/math/native_tan.h>
 #include <clc/opencl/math/nextafter.h>
 #include <clc/opencl/math/pow.h>
 #include <clc/opencl/math/pown.h>
@@ -116,6 +130,7 @@
 #include <clc/opencl/math/rint.h>
 #include <clc/opencl/math/rootn.h>
 #include <clc/opencl/math/round.h>
+#include <clc/opencl/math/rsqrt.h>
 #include <clc/opencl/math/sin.h>
 #include <clc/opencl/math/sincos.h>
 #include <clc/opencl/math/sinh.h>
@@ -126,21 +141,6 @@
 #include <clc/opencl/math/tanpi.h>
 #include <clc/opencl/math/tgamma.h>
 #include <clc/opencl/math/trunc.h>
-#include <clc/opencl/math/native_cos.h>
-#include <clc/opencl/math/native_divide.h>
-#include <clc/opencl/math/native_exp.h>
-#include <clc/opencl/math/native_exp10.h>
-#include <clc/opencl/math/native_exp2.h>
-#include <clc/opencl/math/native_log.h>
-#include <clc/opencl/math/native_log10.h>
-#include <clc/opencl/math/native_log2.h>
-#include <clc/opencl/math/native_powr.h>
-#include <clc/opencl/math/native_recip.h>
-#include <clc/opencl/math/native_sin.h>
-#include <clc/opencl/math/native_sqrt.h>
-#include <clc/opencl/math/native_rsqrt.h>
-#include <clc/opencl/math/native_tan.h>
-#include <clc/opencl/math/rsqrt.h>
 
 /* 6.11.2.1 Floating-point macros */
 #include <clc/float/definitions.h>
@@ -175,8 +175,8 @@
 
 /* 6.11.4 Common Functions */
 #include <clc/opencl/common/degrees.h>
-#include <clc/opencl/common/radians.h>
 #include <clc/opencl/common/mix.h>
+#include <clc/opencl/common/radians.h>
 #include <clc/opencl/common/sign.h>
 #include <clc/opencl/common/smoothstep.h>
 #include <clc/opencl/common/step.h>
@@ -212,8 +212,8 @@
 #include <clc/opencl/relational/signbit.h>
 
 /* 6.11.8 Synchronization Functions */
-#include <clc/opencl/synchronization/cl_mem_fence_flags.h>
 #include <clc/opencl/synchronization/barrier.h>
+#include <clc/opencl/synchronization/cl_mem_fence_flags.h>
 
 /* 6.11.9 Explicit Memory Fence Functions */
 #include <clc/opencl/explicit_fence/explicit_memory_fence.h>
@@ -259,8 +259,8 @@
 #include <clc/opencl/misc/shuffle2.h>
 
 /* 6.11.13 Image Read and Write Functions */
-#include <clc/opencl/image/image_defines.h>
 #include <clc/opencl/image/image.h>
+#include <clc/opencl/image/image_defines.h>
 
 #pragma OPENCL EXTENSION all : disable
 
diff --git a/libclc/opencl/include/clc/opencl/common/mix.inc b/libclc/opencl/include/clc/opencl/common/mix.inc
index 87167fcd1..2b8350f5b 100644
--- a/libclc/opencl/include/clc/opencl/common/mix.inc
+++ b/libclc/opencl/include/clc/opencl/common/mix.inc
@@ -6,8 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_GENTYPE c);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b,
+                                          __CLC_GENTYPE c);
 
 #ifndef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b, __CLC_SCALAR_GENTYPE c);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE mix(__CLC_GENTYPE a, __CLC_GENTYPE b,
+                                          __CLC_SCALAR_GENTYPE c);
 #endif
diff --git a/libclc/opencl/include/clc/opencl/common/smoothstep.inc b/libclc/opencl/include/clc/opencl/common/smoothstep.inc
index 2efaa2494..454748336 100644
--- a/libclc/opencl/include/clc/opencl/common/smoothstep.inc
+++ b/libclc/opencl/include/clc/opencl/common/smoothstep.inc
@@ -6,9 +6,13 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(__CLC_GENTYPE edge0, __CLC_GENTYPE edge1, __CLC_GENTYPE x);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(float edge0, float edge1, __CLC_GENTYPE x);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(__CLC_GENTYPE edge0,
+                                                 __CLC_GENTYPE edge1,
+                                                 __CLC_GENTYPE x);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(float edge0, float edge1,
+                                                 __CLC_GENTYPE x);
 
 #ifdef cl_khr_fp64
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(double edge0, double edge1, __CLC_GENTYPE x);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE smoothstep(double edge0, double edge1,
+                                                 __CLC_GENTYPE x);
 #endif
diff --git a/libclc/opencl/include/clc/opencl/image/image.h b/libclc/opencl/include/clc/opencl/image/image.h
index 555ec3904..6435f3430 100644
--- a/libclc/opencl/include/clc/opencl/image/image.h
+++ b/libclc/opencl/include/clc/opencl/image/image.h
@@ -8,41 +8,41 @@
 
 #if defined(__opencl_c_images)
 
-_CLC_OVERLOAD _CLC_DECL int get_image_width (image2d_t image);
-_CLC_OVERLOAD _CLC_DECL int get_image_width (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL int get_image_height (image2d_t image);
-_CLC_OVERLOAD _CLC_DECL int get_image_height (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL int get_image_depth (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type (image2d_t image);
-_CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL int get_image_channel_order (image2d_t image);
-_CLC_OVERLOAD _CLC_DECL int get_image_channel_order (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL int2 get_image_dim (image2d_t image);
-_CLC_OVERLOAD _CLC_DECL int4 get_image_dim (image3d_t image);
-
-_CLC_OVERLOAD _CLC_DECL void
-write_imagef(image2d_t image, int2 coord, float4 color);
-_CLC_OVERLOAD _CLC_DECL void
-write_imagei(image2d_t image, int2 coord, int4 color);
-_CLC_OVERLOAD _CLC_DECL void
-write_imageui(image2d_t image, int2 coord, uint4 color);
-
-_CLC_OVERLOAD _CLC_DECL float4
-read_imagef(image2d_t image, sampler_t sampler, int2 coord);
-_CLC_OVERLOAD _CLC_DECL float4
-read_imagef(image2d_t image, sampler_t sampler, float2 coord);
-_CLC_OVERLOAD _CLC_DECL int4
-read_imagei(image2d_t image, sampler_t sampler, int2 coord);
-_CLC_OVERLOAD _CLC_DECL int4
-read_imagei(image2d_t image, sampler_t sampler, float2 coord);
-_CLC_OVERLOAD _CLC_DECL uint4
-read_imageui(image2d_t image, sampler_t sampler, int2 coord);
-_CLC_OVERLOAD _CLC_DECL uint4
-read_imageui(image2d_t image, sampler_t sampler, float2 coord);
+_CLC_OVERLOAD _CLC_DECL int get_image_width(image2d_t image);
+_CLC_OVERLOAD _CLC_DECL int get_image_width(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL int get_image_height(image2d_t image);
+_CLC_OVERLOAD _CLC_DECL int get_image_height(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL int get_image_depth(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type(image2d_t image);
+_CLC_OVERLOAD _CLC_DECL int get_image_channel_data_type(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL int get_image_channel_order(image2d_t image);
+_CLC_OVERLOAD _CLC_DECL int get_image_channel_order(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL int2 get_image_dim(image2d_t image);
+_CLC_OVERLOAD _CLC_DECL int4 get_image_dim(image3d_t image);
+
+_CLC_OVERLOAD _CLC_DECL void write_imagef(image2d_t image, int2 coord,
+                                          float4 color);
+_CLC_OVERLOAD _CLC_DECL void write_imagei(image2d_t image, int2 coord,
+                                          int4 color);
+_CLC_OVERLOAD _CLC_DECL void write_imageui(image2d_t image, int2 coord,
+                                           uint4 color);
+
+_CLC_OVERLOAD _CLC_DECL float4 read_imagef(image2d_t image, sampler_t sampler,
+                                           int2 coord);
+_CLC_OVERLOAD _CLC_DECL float4 read_imagef(image2d_t image, sampler_t sampler,
+                                           float2 coord);
+_CLC_OVERLOAD _CLC_DECL int4 read_imagei(image2d_t image, sampler_t sampler,
+                                         int2 coord);
+_CLC_OVERLOAD _CLC_DECL int4 read_imagei(image2d_t image, sampler_t sampler,
+                                         float2 coord);
+_CLC_OVERLOAD _CLC_DECL uint4 read_imageui(image2d_t image, sampler_t sampler,
+                                           int2 coord);
+_CLC_OVERLOAD _CLC_DECL uint4 read_imageui(image2d_t image, sampler_t sampler,
+                                           float2 coord);
 
 #endif
diff --git a/libclc/opencl/include/clc/opencl/image/image_defines.h b/libclc/opencl/include/clc/opencl/image/image_defines.h
index 12fa43be8..f3589fdc4 100644
--- a/libclc/opencl/include/clc/opencl/image/image_defines.h
+++ b/libclc/opencl/include/clc/opencl/image/image_defines.h
@@ -7,51 +7,51 @@
 //===----------------------------------------------------------------------===//
 
 /* get_image_channel_data_type flags */
-#define CLK_SNORM_INT8               0x10D0
-#define CLK_SNORM_INT16              0x10D1
-#define CLK_UNORM_INT8               0x10D2
-#define CLK_UNORM_INT16              0x10D3
-#define CLK_UNORM_SHORT_565          0x10D4
-#define CLK_UNORM_SHORT_555          0x10D5
-#define CLK_UNORM_SHORT_101010       0x10D6
-#define CLK_SIGNED_INT8              0x10D7
-#define CLK_SIGNED_INT16             0x10D8
-#define CLK_SIGNED_INT32             0x10D9
-#define CLK_UNSIGNED_INT8            0x10DA
-#define CLK_UNSIGNED_INT16           0x10DB
-#define CLK_UNSIGNED_INT32           0x10DC
-#define CLK_HALF_FLOAT               0x10DD
-#define CLK_FLOAT                    0x10DE
+#define CLK_SNORM_INT8 0x10D0
+#define CLK_SNORM_INT16 0x10D1
+#define CLK_UNORM_INT8 0x10D2
+#define CLK_UNORM_INT16 0x10D3
+#define CLK_UNORM_SHORT_565 0x10D4
+#define CLK_UNORM_SHORT_555 0x10D5
+#define CLK_UNORM_SHORT_101010 0x10D6
+#define CLK_SIGNED_INT8 0x10D7
+#define CLK_SIGNED_INT16 0x10D8
+#define CLK_SIGNED_INT32 0x10D9
+#define CLK_UNSIGNED_INT8 0x10DA
+#define CLK_UNSIGNED_INT16 0x10DB
+#define CLK_UNSIGNED_INT32 0x10DC
+#define CLK_HALF_FLOAT 0x10DD
+#define CLK_FLOAT 0x10DE
 
 /* get_image_channel_order flags */
-#define CLK_R                        0x10B0
-#define CLK_A                        0x10B1
-#define CLK_RG                       0x10B2
-#define CLK_RA                       0x10B3
-#define CLK_RGB                      0x10B4
-#define CLK_RGBA                     0x10B5
-#define CLK_BGRA                     0x10B6
-#define CLK_ARGB                     0x10B7
-#define CLK_INTENSITY                0x10B8
-#define CLK_LUMINANCE                0x10B9
-#define CLK_Rx                       0x10BA
-#define CLK_RGx                      0x10BB
-#define CLK_RGBx                     0x10BC
+#define CLK_R 0x10B0
+#define CLK_A 0x10B1
+#define CLK_RG 0x10B2
+#define CLK_RA 0x10B3
+#define CLK_RGB 0x10B4
+#define CLK_RGBA 0x10B5
+#define CLK_BGRA 0x10B6
+#define CLK_ARGB 0x10B7
+#define CLK_INTENSITY 0x10B8
+#define CLK_LUMINANCE 0x10B9
+#define CLK_Rx 0x10BA
+#define CLK_RGx 0x10BB
+#define CLK_RGBx 0x10BC
 
 /* sampler normalized coords */
-#define CLK_NORMALIZED_COORDS_FALSE  0x0000
-#define CLK_NORMALIZED_COORDS_TRUE   0x0001
+#define CLK_NORMALIZED_COORDS_FALSE 0x0000
+#define CLK_NORMALIZED_COORDS_TRUE 0x0001
 #define __CLC_NORMALIZED_COORDS_MASK 0x0001
 
 /* sampler addressing mode */
-#define CLK_ADDRESS_NONE             0x0000
-#define CLK_ADDRESS_CLAMP_TO_EDGE    0x0002
-#define CLK_ADDRESS_CLAMP            0x0004
-#define CLK_ADDRESS_REPEAT           0x0006
-#define CLK_ADDRESS_MIRRORED_REPEAT  0x0008
-#define __CLC_ADDRESS_MASK           0x000E
+#define CLK_ADDRESS_NONE 0x0000
+#define CLK_ADDRESS_CLAMP_TO_EDGE 0x0002
+#define CLK_ADDRESS_CLAMP 0x0004
+#define CLK_ADDRESS_REPEAT 0x0006
+#define CLK_ADDRESS_MIRRORED_REPEAT 0x0008
+#define __CLC_ADDRESS_MASK 0x000E
 
 /* sampler filter mode */
-#define CLK_FILTER_NEAREST           0x0000
-#define CLK_FILTER_LINEAR            0x0010
-#define __CLC_FILTER_MASK            0x0010
+#define CLK_FILTER_NEAREST 0x0000
+#define CLK_FILTER_LINEAR 0x0010
+#define __CLC_FILTER_MASK 0x0010
diff --git a/libclc/opencl/include/clc/opencl/integer/abs_diff.inc b/libclc/opencl/include/clc/opencl/integer/abs_diff.inc
index e99f9d686..418738540 100644
--- a/libclc/opencl/include/clc/opencl/integer/abs_diff.inc
+++ b/libclc/opencl/include/clc/opencl/integer/abs_diff.inc
@@ -6,4 +6,5 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y);
+_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x,
+                                                 __CLC_GENTYPE y);
diff --git a/libclc/opencl/include/clc/opencl/math/fmax.h b/libclc/opencl/include/clc/opencl/math/fmax.h
index 6c943370e..2144bb334 100644
--- a/libclc/opencl/include/clc/opencl/math/fmax.h
+++ b/libclc/opencl/include/clc/opencl/math/fmax.h
@@ -12,4 +12,3 @@
 #include <clc/math/gentype.inc>
 
 #undef __CLC_FUNCTION
-
diff --git a/libclc/opencl/include/clc/opencl/math/fmin.h b/libclc/opencl/include/clc/opencl/math/fmin.h
index 45d83909c..5a2af3725 100644
--- a/libclc/opencl/include/clc/opencl/math/fmin.h
+++ b/libclc/opencl/include/clc/opencl/math/fmin.h
@@ -12,4 +12,3 @@
 #include <clc/math/gentype.inc>
 
 #undef __CLC_FUNCTION
-
diff --git a/libclc/opencl/include/clc/opencl/math/frexp.inc b/libclc/opencl/include/clc/opencl/math/frexp.inc
index 63fe3cb90..620db6063 100644
--- a/libclc/opencl/include/clc/opencl/math/frexp.inc
+++ b/libclc/opencl/include/clc/opencl/math/frexp.inc
@@ -6,6 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, global __CLC_INTN *iptr);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, local __CLC_INTN *iptr);
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x, private __CLC_INTN *iptr);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
+                                            global __CLC_INTN *iptr);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
+                                            local __CLC_INTN *iptr);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE frexp(__CLC_GENTYPE x,
+                                            private __CLC_INTN *iptr);
diff --git a/libclc/opencl/include/clc/opencl/misc/shuffle2.h b/libclc/opencl/include/clc/opencl/misc/shuffle2.h
index 93845f899..fa33f6058 100644
--- a/libclc/opencl/include/clc/opencl/misc/shuffle2.h
+++ b/libclc/opencl/include/clc/opencl/misc/shuffle2.h
@@ -6,24 +6,24 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_SHUFFLE2_DECL(TYPE, MASKTYPE, RETTYPE) \
+#define _CLC_SHUFFLE2_DECL(TYPE, MASKTYPE, RETTYPE)                            \
   _CLC_OVERLOAD _CLC_DECL RETTYPE shuffle2(TYPE x, TYPE y, MASKTYPE mask);
 
-//Return type is same base type as the input type, with the same vector size as the mask.
-//Elements in the mask must be the same size (number of bits) as the input value.
-//E.g. char8 ret = shuffle2(char2 x, char2 y, uchar8 mask);
+// Return type is same base type as the input type, with the same vector size as
+// the mask. Elements in the mask must be the same size (number of bits) as the
+// input value. E.g. char8 ret = shuffle2(char2 x, char2 y, uchar8 mask);
 
-#define _CLC_VECTOR_SHUFFLE2_MASKSIZE(INBASE, INTYPE, MASKTYPE) \
-  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##2, INBASE##2) \
-  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##4, INBASE##4) \
-  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##8, INBASE##8) \
-  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##16, INBASE##16) \
+#define _CLC_VECTOR_SHUFFLE2_MASKSIZE(INBASE, INTYPE, MASKTYPE)                \
+  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##2, INBASE##2)                           \
+  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##4, INBASE##4)                           \
+  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##8, INBASE##8)                           \
+  _CLC_SHUFFLE2_DECL(INTYPE, MASKTYPE##16, INBASE##16)
 
-#define _CLC_VECTOR_SHUFFLE2_INSIZE(TYPE, MASKTYPE) \
-  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##2, MASKTYPE) \
-  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##4, MASKTYPE) \
-  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##8, MASKTYPE) \
-  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##16, MASKTYPE) \
+#define _CLC_VECTOR_SHUFFLE2_INSIZE(TYPE, MASKTYPE)                            \
+  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##2, MASKTYPE)                       \
+  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##4, MASKTYPE)                       \
+  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##8, MASKTYPE)                       \
+  _CLC_VECTOR_SHUFFLE2_MASKSIZE(TYPE, TYPE##16, MASKTYPE)
 
 _CLC_VECTOR_SHUFFLE2_INSIZE(char, uchar)
 _CLC_VECTOR_SHUFFLE2_INSIZE(short, ushort)
diff --git a/libclc/opencl/include/clc/opencl/relational/all.h b/libclc/opencl/include/clc/opencl/relational/all.h
index a52afe813..31c8e895f 100644
--- a/libclc/opencl/include/clc/opencl/relational/all.h
+++ b/libclc/opencl/include/clc/opencl/relational/all.h
@@ -6,15 +6,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_ALL_DECL(TYPE) \
-  _CLC_OVERLOAD _CLC_DECL int all(TYPE v);
+#define _CLC_ALL_DECL(TYPE) _CLC_OVERLOAD _CLC_DECL int all(TYPE v);
 
-#define _CLC_VECTOR_ALL_DECL(TYPE) \
-  _CLC_ALL_DECL(TYPE)     \
-  _CLC_ALL_DECL(TYPE##2)  \
-  _CLC_ALL_DECL(TYPE##3)  \
-  _CLC_ALL_DECL(TYPE##4)  \
-  _CLC_ALL_DECL(TYPE##8)  \
+#define _CLC_VECTOR_ALL_DECL(TYPE)                                             \
+  _CLC_ALL_DECL(TYPE)                                                          \
+  _CLC_ALL_DECL(TYPE##2)                                                       \
+  _CLC_ALL_DECL(TYPE##3)                                                       \
+  _CLC_ALL_DECL(TYPE##4)                                                       \
+  _CLC_ALL_DECL(TYPE##8)                                                       \
   _CLC_ALL_DECL(TYPE##16)
 
 _CLC_VECTOR_ALL_DECL(char)
diff --git a/libclc/opencl/include/clc/opencl/relational/any.h b/libclc/opencl/include/clc/opencl/relational/any.h
index 4839135de..9c227e8f1 100644
--- a/libclc/opencl/include/clc/opencl/relational/any.h
+++ b/libclc/opencl/include/clc/opencl/relational/any.h
@@ -6,15 +6,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_ANY_DECL(TYPE) \
-  _CLC_OVERLOAD _CLC_DECL int any(TYPE v);
+#define _CLC_ANY_DECL(TYPE) _CLC_OVERLOAD _CLC_DECL int any(TYPE v);
 
-#define _CLC_VECTOR_ANY_DECL(TYPE) \
-  _CLC_ANY_DECL(TYPE)     \
-  _CLC_ANY_DECL(TYPE##2)  \
-  _CLC_ANY_DECL(TYPE##3)  \
-  _CLC_ANY_DECL(TYPE##4)  \
-  _CLC_ANY_DECL(TYPE##8)  \
+#define _CLC_VECTOR_ANY_DECL(TYPE)                                             \
+  _CLC_ANY_DECL(TYPE)                                                          \
+  _CLC_ANY_DECL(TYPE##2)                                                       \
+  _CLC_ANY_DECL(TYPE##3)                                                       \
+  _CLC_ANY_DECL(TYPE##4)                                                       \
+  _CLC_ANY_DECL(TYPE##8)                                                       \
   _CLC_ANY_DECL(TYPE##16)
 
 _CLC_VECTOR_ANY_DECL(char)
diff --git a/libclc/opencl/include/clc/opencl/relational/bitselect.inc b/libclc/opencl/include/clc/opencl/relational/bitselect.inc
index d7708da2a..d821bb86a 100644
--- a/libclc/opencl/include/clc/opencl/relational/bitselect.inc
+++ b/libclc/opencl/include/clc/opencl/relational/bitselect.inc
@@ -6,4 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE bitselect(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE bitselect(__CLC_GENTYPE x,
+                                                __CLC_GENTYPE y,
+                                                __CLC_GENTYPE z);
diff --git a/libclc/opencl/include/clc/opencl/relational/isequal.h b/libclc/opencl/include/clc/opencl/relational/isequal.h
index 29e5cf982..090b9928e 100644
--- a/libclc/opencl/include/clc/opencl/relational/isequal.h
+++ b/libclc/opencl/include/clc/opencl/relational/isequal.h
@@ -6,14 +6,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_ISEQUAL_DECL(TYPE, RETTYPE) \
+#define _CLC_ISEQUAL_DECL(TYPE, RETTYPE)                                       \
   _CLC_OVERLOAD _CLC_DECL RETTYPE isequal(TYPE x, TYPE y);
 
-#define _CLC_VECTOR_ISEQUAL_DECL(TYPE, RETTYPE) \
-  _CLC_ISEQUAL_DECL(TYPE##2, RETTYPE##2)  \
-  _CLC_ISEQUAL_DECL(TYPE##3, RETTYPE##3)  \
-  _CLC_ISEQUAL_DECL(TYPE##4, RETTYPE##4)  \
-  _CLC_ISEQUAL_DECL(TYPE##8, RETTYPE##8)  \
+#define _CLC_VECTOR_ISEQUAL_DECL(TYPE, RETTYPE)                                \
+  _CLC_ISEQUAL_DECL(TYPE##2, RETTYPE##2)                                       \
+  _CLC_ISEQUAL_DECL(TYPE##3, RETTYPE##3)                                       \
+  _CLC_ISEQUAL_DECL(TYPE##4, RETTYPE##4)                                       \
+  _CLC_ISEQUAL_DECL(TYPE##8, RETTYPE##8)                                       \
   _CLC_ISEQUAL_DECL(TYPE##16, RETTYPE##16)
 
 _CLC_ISEQUAL_DECL(float, int)
diff --git a/libclc/opencl/include/clc/opencl/relational/isinf.h b/libclc/opencl/include/clc/opencl/relational/isinf.h
index 4a026b4b0..da38b01e3 100644
--- a/libclc/opencl/include/clc/opencl/relational/isinf.h
+++ b/libclc/opencl/include/clc/opencl/relational/isinf.h
@@ -6,14 +6,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_ISINF_DECL(RET_TYPE, ARG_TYPE) \
+#define _CLC_ISINF_DECL(RET_TYPE, ARG_TYPE)                                    \
   _CLC_OVERLOAD _CLC_DECL RET_TYPE isinf(ARG_TYPE);
 
-#define _CLC_VECTOR_ISINF_DECL(RET_TYPE, ARG_TYPE) \
-  _CLC_ISINF_DECL(RET_TYPE##2, ARG_TYPE##2) \
-  _CLC_ISINF_DECL(RET_TYPE##3, ARG_TYPE##3) \
-  _CLC_ISINF_DECL(RET_TYPE##4, ARG_TYPE##4) \
-  _CLC_ISINF_DECL(RET_TYPE##8, ARG_TYPE##8) \
+#define _CLC_VECTOR_ISINF_DECL(RET_TYPE, ARG_TYPE)                             \
+  _CLC_ISINF_DECL(RET_TYPE##2, ARG_TYPE##2)                                    \
+  _CLC_ISINF_DECL(RET_TYPE##3, ARG_TYPE##3)                                    \
+  _CLC_ISINF_DECL(RET_TYPE##4, ARG_TYPE##4)                                    \
+  _CLC_ISINF_DECL(RET_TYPE##8, ARG_TYPE##8)                                    \
   _CLC_ISINF_DECL(RET_TYPE##16, ARG_TYPE##16)
 
 _CLC_ISINF_DECL(int, float)
diff --git a/libclc/opencl/include/clc/opencl/relational/isnan.h b/libclc/opencl/include/clc/opencl/relational/isnan.h
index e8033d60f..e712d6a5d 100644
--- a/libclc/opencl/include/clc/opencl/relational/isnan.h
+++ b/libclc/opencl/include/clc/opencl/relational/isnan.h
@@ -6,14 +6,14 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define _CLC_ISNAN_DECL(RET_TYPE, ARG_TYPE) \
+#define _CLC_ISNAN_DECL(RET_TYPE, ARG_TYPE)                                    \
   _CLC_OVERLOAD _CLC_DECL RET_TYPE isnan(ARG_TYPE);
 
-#define _CLC_VECTOR_ISNAN_DECL(RET_TYPE, ARG_TYPE) \
-  _CLC_ISNAN_DECL(RET_TYPE##2, ARG_TYPE##2) \
-  _CLC_ISNAN_DECL(RET_TYPE##3, ARG_TYPE##3) \
-  _CLC_ISNAN_DECL(RET_TYPE##4, ARG_TYPE##4) \
-  _CLC_ISNAN_DECL(RET_TYPE##8, ARG_TYPE##8) \
+#define _CLC_VECTOR_ISNAN_DECL(RET_TYPE, ARG_TYPE)                             \
+  _CLC_ISNAN_DECL(RET_TYPE##2, ARG_TYPE##2)                                    \
+  _CLC_ISNAN_DECL(RET_TYPE##3, ARG_TYPE##3)                                    \
+  _CLC_ISNAN_DECL(RET_TYPE##4, ARG_TYPE##4)                                    \
+  _CLC_ISNAN_DECL(RET_TYPE##8, ARG_TYPE##8)                                    \
   _CLC_ISNAN_DECL(RET_TYPE##16, ARG_TYPE##16)
 
 _CLC_ISNAN_DECL(int, float)
diff --git a/libclc/opencl/include/clc/opencl/shared/clamp.inc b/libclc/opencl/include/clc/opencl/shared/clamp.inc
index fdf7ac742..75dec9c25 100644
--- a/libclc/opencl/include/clc/opencl/shared/clamp.inc
+++ b/libclc/opencl/include/clc/opencl/shared/clamp.inc
@@ -6,8 +6,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y,
+                                            __CLC_GENTYPE z);
 
 #ifndef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_SCALAR_GENTYPE y, __CLC_SCALAR_GENTYPE z);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE clamp(__CLC_GENTYPE x,
+                                            __CLC_SCALAR_GENTYPE y,
+                                            __CLC_SCALAR_GENTYPE z);
 #endif
diff --git a/libclc/opencl/include/clc/opencl/shared/max.inc b/libclc/opencl/include/clc/opencl/shared/max.inc
index 19f3e2d17..98610dfdb 100644
--- a/libclc/opencl/include/clc/opencl/shared/max.inc
+++ b/libclc/opencl/include/clc/opencl/shared/max.inc
@@ -9,5 +9,6 @@
 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_GENTYPE b);
 
 #ifndef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE max(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE max(__CLC_GENTYPE a,
+                                          __CLC_SCALAR_GENTYPE b);
 #endif
diff --git a/libclc/opencl/include/clc/opencl/shared/min.inc b/libclc/opencl/include/clc/opencl/shared/min.inc
index e4e46c436..3140b637f 100644
--- a/libclc/opencl/include/clc/opencl/shared/min.inc
+++ b/libclc/opencl/include/clc/opencl/shared/min.inc
@@ -9,5 +9,6 @@
 _CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE min(__CLC_GENTYPE a, __CLC_GENTYPE b);
 
 #ifndef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE min(__CLC_GENTYPE a, __CLC_SCALAR_GENTYPE b);
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE min(__CLC_GENTYPE a,
+                                          __CLC_SCALAR_GENTYPE b);
 #endif
diff --git a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl
index eeac17a42..2d7fea912 100644
--- a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl
+++ b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_global_size.cl
@@ -20,7 +20,8 @@
 #define __dispatch_ptr __builtin_amdgcn_dispatch_ptr
 #else
 #define __dispatch_ptr __clc_amdgcn_dispatch_ptr
-CONST_AS uchar * __clc_amdgcn_dispatch_ptr(void) __asm("llvm.amdgcn.dispatch.ptr");
+CONST_AS uchar *
+__clc_amdgcn_dispatch_ptr(void) __asm("llvm.amdgcn.dispatch.ptr");
 #endif
 
 _CLC_DEF _CLC_OVERLOAD size_t get_global_size(uint dim) {
diff --git a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl
index 4781c400b..84552e2e0 100644
--- a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl
+++ b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_local_size.cl
@@ -20,7 +20,8 @@
 #define __dispatch_ptr __builtin_amdgcn_dispatch_ptr
 #else
 #define __dispatch_ptr __clc_amdgcn_dispatch_ptr
-CONST_AS char * __clc_amdgcn_dispatch_ptr(void) __asm("llvm.amdgcn.dispatch.ptr");
+CONST_AS char *
+__clc_amdgcn_dispatch_ptr(void) __asm("llvm.amdgcn.dispatch.ptr");
 #endif
 
 _CLC_DEF _CLC_OVERLOAD size_t get_local_size(uint dim) {
diff --git a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl
index 4fb088fb0..1ed167363 100644
--- a/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl
+++ b/libclc/opencl/lib/amdgcn-amdhsa/workitem/get_num_groups.cl
@@ -6,7 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-
 #include <clc/opencl/clc.h>
 
 _CLC_DEF _CLC_OVERLOAD size_t get_num_groups(uint dim) {
diff --git a/libclc/opencl/lib/amdgcn/mem_fence/fence.cl b/libclc/opencl/lib/amdgcn/mem_fence/fence.cl
index 5e0180dc1..5c5029a63 100644
--- a/libclc/opencl/lib/amdgcn/mem_fence/fence.cl
+++ b/libclc/opencl/lib/amdgcn/mem_fence/fence.cl
@@ -19,10 +19,10 @@ void __clc_amdgcn_s_waitcnt(unsigned flags);
 
 // Newer clang supports __builtin_amdgcn_s_waitcnt
 #if __clang_major__ >= 5
-#  define __waitcnt(x) __builtin_amdgcn_s_waitcnt(x)
+#define __waitcnt(x) __builtin_amdgcn_s_waitcnt(x)
 #else
-#  define __waitcnt(x) __clc_amdgcn_s_waitcnt(x)
-_CLC_DEF void __clc_amdgcn_s_waitcnt(unsigned)  __asm("llvm.amdgcn.s.waitcnt");
+#define __waitcnt(x) __clc_amdgcn_s_waitcnt(x)
+_CLC_DEF void __clc_amdgcn_s_waitcnt(unsigned) __asm("llvm.amdgcn.s.waitcnt");
 #endif
 
 _CLC_DEF _CLC_OVERLOAD void mem_fence(cl_mem_fence_flags flags) {
diff --git a/libclc/opencl/lib/clspv/math/fma.cl b/libclc/opencl/lib/clspv/math/fma.cl
index 014e311ff..272201812 100644
--- a/libclc/opencl/lib/clspv/math/fma.cl
+++ b/libclc/opencl/lib/clspv/math/fma.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/internal/math/clc_sw_fma.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_TERNARY_BUILTIN(float, fma, __clc_sw_fma, float, float, float)
diff --git a/libclc/opencl/lib/clspv/subnormal_config.cl b/libclc/opencl/lib/clspv/subnormal_config.cl
index 50997134b..77d60ab9c 100644
--- a/libclc/opencl/lib/clspv/subnormal_config.cl
+++ b/libclc/opencl/lib/clspv/subnormal_config.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_subnormal_config.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }
 
diff --git a/libclc/opencl/lib/generic/async/async_work_group_copy.inc b/libclc/opencl/lib/generic/async/async_work_group_copy.inc
index d21cc8e23..f238ae668 100644
--- a/libclc/opencl/lib/generic/async/async_work_group_copy.inc
+++ b/libclc/opencl/lib/generic/async/async_work_group_copy.inc
@@ -6,20 +6,16 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DEF event_t async_work_group_copy(
-    local __CLC_GENTYPE *dst,
-    const global __CLC_GENTYPE *src,
-    size_t num_gentypes,
-    event_t event) {
+_CLC_OVERLOAD _CLC_DEF event_t
+async_work_group_copy(local __CLC_GENTYPE *dst, const global __CLC_GENTYPE *src,
+                      size_t num_gentypes, event_t event) {
 
   return async_work_group_strided_copy(dst, src, num_gentypes, 1, event);
 }
 
-_CLC_OVERLOAD _CLC_DEF event_t async_work_group_copy(
-    global __CLC_GENTYPE *dst,
-    const local __CLC_GENTYPE *src,
-    size_t num_gentypes,
-    event_t event) {
+_CLC_OVERLOAD _CLC_DEF event_t
+async_work_group_copy(global __CLC_GENTYPE *dst, const local __CLC_GENTYPE *src,
+                      size_t num_gentypes, event_t event) {
 
   return async_work_group_strided_copy(dst, src, num_gentypes, 1, event);
 }
diff --git a/libclc/opencl/lib/generic/async/async_work_group_strided_copy.inc b/libclc/opencl/lib/generic/async/async_work_group_strided_copy.inc
index 218e7355e..3a3f36a7d 100644
--- a/libclc/opencl/lib/generic/async/async_work_group_strided_copy.inc
+++ b/libclc/opencl/lib/generic/async/async_work_group_strided_copy.inc
@@ -6,35 +6,27 @@
 //
 //===----------------------------------------------------------------------===//
 
-#define STRIDED_COPY(dst, src, num_gentypes, dst_stride, src_stride)       \
-  size_t size = get_local_size(0) * get_local_size(1) * get_local_size(2); \
-  size_t id = (get_local_size(1) * get_local_size(2) * get_local_id(0)) +  \
-              (get_local_size(2) * get_local_id(1)) +                      \
-              get_local_id(2);                                             \
-  size_t i;                                                                \
-                                                                           \
-  for (i = id; i < num_gentypes; i += size) {                              \
-    dst[i * dst_stride] = src[i * src_stride];                             \
+#define STRIDED_COPY(dst, src, num_gentypes, dst_stride, src_stride)           \
+  size_t size = get_local_size(0) * get_local_size(1) * get_local_size(2);     \
+  size_t id = (get_local_size(1) * get_local_size(2) * get_local_id(0)) +      \
+              (get_local_size(2) * get_local_id(1)) + get_local_id(2);         \
+  size_t i;                                                                    \
+                                                                               \
+  for (i = id; i < num_gentypes; i += size) {                                  \
+    dst[i * dst_stride] = src[i * src_stride];                                 \
   }
 
-
 _CLC_OVERLOAD _CLC_DEF event_t async_work_group_strided_copy(
-    local __CLC_GENTYPE *dst,
-    const global __CLC_GENTYPE *src,
-    size_t num_gentypes,
-    size_t src_stride,
-    event_t event) {
+    local __CLC_GENTYPE *dst, const global __CLC_GENTYPE *src,
+    size_t num_gentypes, size_t src_stride, event_t event) {
 
   STRIDED_COPY(dst, src, num_gentypes, 1, src_stride);
   return event;
 }
 
 _CLC_OVERLOAD _CLC_DEF event_t async_work_group_strided_copy(
-    global __CLC_GENTYPE *dst,
-    const local __CLC_GENTYPE *src,
-    size_t num_gentypes,
-    size_t dst_stride,
-    event_t event) {
+    global __CLC_GENTYPE *dst, const local __CLC_GENTYPE *src,
+    size_t num_gentypes, size_t dst_stride, event_t event) {
 
   STRIDED_COPY(dst, src, num_gentypes, dst_stride, 1);
   return event;
diff --git a/libclc/opencl/lib/generic/async/prefetch.inc b/libclc/opencl/lib/generic/async/prefetch.inc
index a9bca307c..b952c532d 100644
--- a/libclc/opencl/lib/generic/async/prefetch.inc
+++ b/libclc/opencl/lib/generic/async/prefetch.inc
@@ -6,4 +6,5 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DEF void prefetch(const global __CLC_GENTYPE *p, size_t num_gentypes) { }
+_CLC_OVERLOAD _CLC_DEF void prefetch(const global __CLC_GENTYPE *p,
+                                     size_t num_gentypes) {}
diff --git a/libclc/opencl/lib/generic/atomic/atomic_add.cl b/libclc/opencl/lib/generic/atomic/atomic_add.cl
index 775f7a684..cb3935cc4 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_add.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_add.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_add(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_add(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_add(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_add(p, val);                                       \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_and.cl b/libclc/opencl/lib/generic/atomic/atomic_and.cl
index eb99e551e..f5b6e9724 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_and.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_and.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_and(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_and(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_and(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_and(p, val);                                       \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_cmpxchg.cl b/libclc/opencl/lib/generic/atomic/atomic_cmpxchg.cl
index 44f40024e..c2227ea52 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_cmpxchg.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_cmpxchg.cl
@@ -8,10 +8,11 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_cmpxchg(volatile AS TYPE *p, TYPE cmp, TYPE val) { \
-  return __sync_val_compare_and_swap(p, cmp, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_cmpxchg(volatile AS TYPE *p, TYPE cmp,    \
+                                             TYPE val) {                       \
+    return __sync_val_compare_and_swap(p, cmp, val);                           \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_dec.cl b/libclc/opencl/lib/generic/atomic/atomic_dec.cl
index 42e0ac28e..d67f6382f 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_dec.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_dec.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_dec(volatile AS TYPE *p) { \
-  return __sync_fetch_and_sub(p, (TYPE)1); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_dec(volatile AS TYPE *p) {                \
+    return __sync_fetch_and_sub(p, (TYPE)1);                                   \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_inc.cl b/libclc/opencl/lib/generic/atomic/atomic_inc.cl
index d85c46a57..989c45c0e 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_inc.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_inc.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_inc(volatile AS TYPE *p) { \
-  return __sync_fetch_and_add(p, (TYPE)1); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_inc(volatile AS TYPE *p) {                \
+    return __sync_fetch_and_add(p, (TYPE)1);                                   \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_max.cl b/libclc/opencl/lib/generic/atomic/atomic_max.cl
index b29ccc569..dbd5aa049 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_max.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_max.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS, OP) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_max(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_##OP(p, val); \
-}
+#define IMPL(TYPE, AS, OP)                                                     \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_max(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_##OP(p, val);                                      \
+  }
 
 IMPL(int, global, max)
 IMPL(unsigned int, global, umax)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_min.cl b/libclc/opencl/lib/generic/atomic/atomic_min.cl
index a14595e45..d43f74c82 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_min.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_min.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS, OP) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_min(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_##OP(p, val); \
-}
+#define IMPL(TYPE, AS, OP)                                                     \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_min(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_##OP(p, val);                                      \
+  }
 
 IMPL(int, global, min)
 IMPL(unsigned int, global, umin)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_or.cl b/libclc/opencl/lib/generic/atomic/atomic_or.cl
index 3b044c97c..dac7eb660 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_or.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_or.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_or(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_or(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_or(volatile AS TYPE *p, TYPE val) {       \
+    return __sync_fetch_and_or(p, val);                                        \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_sub.cl b/libclc/opencl/lib/generic/atomic/atomic_sub.cl
index 4588d9d90..5ebe1f0b1 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_sub.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_sub.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_sub(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_sub(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_sub(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_sub(p, val);                                       \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_xchg.cl b/libclc/opencl/lib/generic/atomic/atomic_xchg.cl
index ab4db17f0..b3f631c21 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_xchg.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_xchg.cl
@@ -16,10 +16,10 @@ _CLC_OVERLOAD _CLC_DEF float atomic_xchg(volatile local float *p, float val) {
   return as_float(atomic_xchg((volatile local uint *)p, as_uint(val)));
 }
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_xchg(volatile AS TYPE *p, TYPE val) { \
-  return __sync_swap_4(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_xchg(volatile AS TYPE *p, TYPE val) {     \
+    return __sync_swap_4(p, val);                                              \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/atomic/atomic_xor.cl b/libclc/opencl/lib/generic/atomic/atomic_xor.cl
index 07e5b8bde..864e22b77 100644
--- a/libclc/opencl/lib/generic/atomic/atomic_xor.cl
+++ b/libclc/opencl/lib/generic/atomic/atomic_xor.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-#define IMPL(TYPE, AS) \
-_CLC_OVERLOAD _CLC_DEF TYPE atomic_xor(volatile AS TYPE *p, TYPE val) { \
-  return __sync_fetch_and_xor(p, val); \
-}
+#define IMPL(TYPE, AS)                                                         \
+  _CLC_OVERLOAD _CLC_DEF TYPE atomic_xor(volatile AS TYPE *p, TYPE val) {      \
+    return __sync_fetch_and_xor(p, val);                                       \
+  }
 
 IMPL(int, global)
 IMPL(unsigned int, global)
diff --git a/libclc/opencl/lib/generic/common/degrees.cl b/libclc/opencl/lib/generic/common/degrees.cl
index 9d6c8ff3d..8b17fe432 100644
--- a/libclc/opencl/lib/generic/common/degrees.cl
+++ b/libclc/opencl/lib/generic/common/degrees.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/common/clc_degrees.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_UNARY_BUILTIN(float, degrees, __clc_degrees, float)
 
diff --git a/libclc/opencl/lib/generic/common/mix.cl b/libclc/opencl/lib/generic/common/mix.cl
index b24cc2796..cc95dcd3b 100644
--- a/libclc/opencl/lib/generic/common/mix.cl
+++ b/libclc/opencl/lib/generic/common/mix.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_mad.h>
+#include <clc/opencl/clc.h>
 
 #define __CLC_BODY <mix.inc>
 #include <clc/math/gentype.inc>
diff --git a/libclc/opencl/lib/generic/common/radians.cl b/libclc/opencl/lib/generic/common/radians.cl
index 67f750165..1c58c6c4d 100644
--- a/libclc/opencl/lib/generic/common/radians.cl
+++ b/libclc/opencl/lib/generic/common/radians.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/common/clc_radians.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_UNARY_BUILTIN(float, radians, __clc_radians, float)
 
diff --git a/libclc/opencl/lib/generic/common/sign.cl b/libclc/opencl/lib/generic/common/sign.cl
index 38fa9270b..0acab050a 100644
--- a/libclc/opencl/lib/generic/common/sign.cl
+++ b/libclc/opencl/lib/generic/common/sign.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/common/clc_sign.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sign
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/common/smoothstep.cl b/libclc/opencl/lib/generic/common/smoothstep.cl
index 8bea015e7..30ed1451f 100644
--- a/libclc/opencl/lib/generic/common/smoothstep.cl
+++ b/libclc/opencl/lib/generic/common/smoothstep.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/common/clc_smoothstep.h>
+#include <clc/opencl/clc.h>
 
 #define SMOOTHSTEP_SINGLE_DEF(X_TYPE)                                          \
   _CLC_OVERLOAD _CLC_DEF X_TYPE smoothstep(X_TYPE edge0, X_TYPE edge1,         \
diff --git a/libclc/opencl/lib/generic/common/step.cl b/libclc/opencl/lib/generic/common/step.cl
index 581f83c2f..99e69963c 100644
--- a/libclc/opencl/lib/generic/common/step.cl
+++ b/libclc/opencl/lib/generic/common/step.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
+#include <clc/opencl/clc.h>
 
 _CLC_OVERLOAD _CLC_DEF float step(float edge, float x) {
   return x < edge ? 0.0f : 1.0f;
@@ -20,10 +20,10 @@ _CLC_V_S_V_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, step, float, float);
 #ifdef cl_khr_fp64
 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
 
-#define STEP_DEF(edge_type, x_type) \
-  _CLC_OVERLOAD _CLC_DEF x_type step(edge_type edge, x_type x) { \
-    return x < edge ? 0.0 : 1.0; \
- }
+#define STEP_DEF(edge_type, x_type)                                            \
+  _CLC_OVERLOAD _CLC_DEF x_type step(edge_type edge, x_type x) {               \
+    return x < edge ? 0.0 : 1.0;                                               \
+  }
 
 STEP_DEF(double, double);
 
diff --git a/libclc/opencl/lib/generic/geometric/cross.cl b/libclc/opencl/lib/generic/geometric/cross.cl
index ce16fadac..bd4f86bb1 100644
--- a/libclc/opencl/lib/generic/geometric/cross.cl
+++ b/libclc/opencl/lib/generic/geometric/cross.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_cross.h>
+#include <clc/opencl/clc.h>
 
 _CLC_OVERLOAD _CLC_DEF float3 cross(float3 p0, float3 p1) {
   return __clc_cross(p0, p1);
diff --git a/libclc/opencl/lib/generic/geometric/distance.cl b/libclc/opencl/lib/generic/geometric/distance.cl
index dfe0ed5bd..b2194abd6 100644
--- a/libclc/opencl/lib/generic/geometric/distance.cl
+++ b/libclc/opencl/lib/generic/geometric/distance.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_distance.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION distance
 #define __CLC_BODY <clc/geometric/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/geometric/dot.cl b/libclc/opencl/lib/generic/geometric/dot.cl
index 26b67c35a..72d30ea53 100644
--- a/libclc/opencl/lib/generic/geometric/dot.cl
+++ b/libclc/opencl/lib/generic/geometric/dot.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_dot.h>
+#include <clc/opencl/clc.h>
 
 _CLC_OVERLOAD _CLC_DEF float dot(float p0, float p1) {
   return __clc_dot(p0, p1);
diff --git a/libclc/opencl/lib/generic/geometric/fast_distance.cl b/libclc/opencl/lib/generic/geometric/fast_distance.cl
index 2f2931184..2a19418a1 100644
--- a/libclc/opencl/lib/generic/geometric/fast_distance.cl
+++ b/libclc/opencl/lib/generic/geometric/fast_distance.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_fast_distance.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION fast_distance
diff --git a/libclc/opencl/lib/generic/geometric/fast_length.cl b/libclc/opencl/lib/generic/geometric/fast_length.cl
index 45c8e7596..3af751af5 100644
--- a/libclc/opencl/lib/generic/geometric/fast_length.cl
+++ b/libclc/opencl/lib/generic/geometric/fast_length.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_fast_length.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION fast_length
diff --git a/libclc/opencl/lib/generic/geometric/fast_normalize.cl b/libclc/opencl/lib/generic/geometric/fast_normalize.cl
index 8701170d5..d6d140f3c 100644
--- a/libclc/opencl/lib/generic/geometric/fast_normalize.cl
+++ b/libclc/opencl/lib/generic/geometric/fast_normalize.cl
@@ -8,9 +8,7 @@
 
 #include <clc/opencl/clc.h>
 
-_CLC_OVERLOAD _CLC_DEF float fast_normalize(float p) {
-  return normalize(p);
-}
+_CLC_OVERLOAD _CLC_DEF float fast_normalize(float p) { return normalize(p); }
 
 #define __CLC_BODY <fast_normalize.inc>
 #define __FLOAT_ONLY
diff --git a/libclc/opencl/lib/generic/geometric/length.cl b/libclc/opencl/lib/generic/geometric/length.cl
index cb4aa5a81..5645ade4c 100644
--- a/libclc/opencl/lib/generic/geometric/length.cl
+++ b/libclc/opencl/lib/generic/geometric/length.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/geometric/clc_length.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION length
 #define __CLC_BODY <clc/geometric/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/geometric/normalize.cl b/libclc/opencl/lib/generic/geometric/normalize.cl
index 14c43cbd6..e1e51b306 100644
--- a/libclc/opencl/lib/generic/geometric/normalize.cl
+++ b/libclc/opencl/lib/generic/geometric/normalize.cl
@@ -8,9 +8,7 @@
 
 #include <clc/opencl/clc.h>
 
-_CLC_OVERLOAD _CLC_DEF float normalize(float p) {
-  return sign(p);
-}
+_CLC_OVERLOAD _CLC_DEF float normalize(float p) { return sign(p); }
 
 _CLC_OVERLOAD _CLC_DEF float2 normalize(float2 p) {
   if (all(p == (float2)0.0F))
@@ -76,9 +74,7 @@ _CLC_OVERLOAD _CLC_DEF float4 normalize(float4 p) {
 
 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
 
-_CLC_OVERLOAD _CLC_DEF double normalize(double p) {
-  return sign(p);
-}
+_CLC_OVERLOAD _CLC_DEF double normalize(double p) { return sign(p); }
 
 _CLC_OVERLOAD _CLC_DEF double2 normalize(double2 p) {
   if (all(p == (double2)0.0))
diff --git a/libclc/opencl/lib/generic/integer/abs.cl b/libclc/opencl/lib/generic/integer/abs.cl
index ca1435c58..5d354d97e 100644
--- a/libclc/opencl/lib/generic/integer/abs.cl
+++ b/libclc/opencl/lib/generic/integer/abs.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_abs.h>
+#include <clc/opencl/clc.h>
 
 #define __CLC_BODY <abs.inc>
 #include <clc/integer/gentype.inc>
diff --git a/libclc/opencl/lib/generic/integer/abs_diff.cl b/libclc/opencl/lib/generic/integer/abs_diff.cl
index 17efdc2e9..73d6631b3 100644
--- a/libclc/opencl/lib/generic/integer/abs_diff.cl
+++ b/libclc/opencl/lib/generic/integer/abs_diff.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_abs_diff.h>
+#include <clc/opencl/clc.h>
 
 #define __CLC_BODY <abs_diff.inc>
 #include <clc/integer/gentype.inc>
diff --git a/libclc/opencl/lib/generic/integer/abs_diff.inc b/libclc/opencl/lib/generic/integer/abs_diff.inc
index 57de34422..0f515202c 100644
--- a/libclc/opencl/lib/generic/integer/abs_diff.inc
+++ b/libclc/opencl/lib/generic/integer/abs_diff.inc
@@ -6,6 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x, __CLC_GENTYPE y) {
+_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs_diff(__CLC_GENTYPE x,
+                                                __CLC_GENTYPE y) {
   return __clc_abs_diff(x, y);
 }
diff --git a/libclc/opencl/lib/generic/integer/add_sat.cl b/libclc/opencl/lib/generic/integer/add_sat.cl
index 1d46cc9a9..8fe1d32a8 100644
--- a/libclc/opencl/lib/generic/integer/add_sat.cl
+++ b/libclc/opencl/lib/generic/integer/add_sat.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_add_sat.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION add_sat
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/clz.cl b/libclc/opencl/lib/generic/integer/clz.cl
index 7c4ba975a..cf12a9838 100644
--- a/libclc/opencl/lib/generic/integer/clz.cl
+++ b/libclc/opencl/lib/generic/integer/clz.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_clz.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION clz
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/ctz.cl b/libclc/opencl/lib/generic/integer/ctz.cl
index 5bf32a762..1b0470e08 100644
--- a/libclc/opencl/lib/generic/integer/ctz.cl
+++ b/libclc/opencl/lib/generic/integer/ctz.cl
@@ -8,8 +8,8 @@
 
 #if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_ctz.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION ctz
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/hadd.cl b/libclc/opencl/lib/generic/integer/hadd.cl
index 037f5c332..100cb7bf2 100644
--- a/libclc/opencl/lib/generic/integer/hadd.cl
+++ b/libclc/opencl/lib/generic/integer/hadd.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_hadd.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION hadd
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/mad24.cl b/libclc/opencl/lib/generic/integer/mad24.cl
index 15afc9843..d42873f1d 100644
--- a/libclc/opencl/lib/generic/integer/mad24.cl
+++ b/libclc/opencl/lib/generic/integer/mad24.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_mad24.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION mad24
 #define __CLC_BODY <clc/shared/ternary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/mad_hi.cl b/libclc/opencl/lib/generic/integer/mad_hi.cl
index 53070937c..68e610d40 100644
--- a/libclc/opencl/lib/generic/integer/mad_hi.cl
+++ b/libclc/opencl/lib/generic/integer/mad_hi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_mad_hi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION mad_hi
 #define __CLC_BODY <clc/shared/ternary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/mad_sat.cl b/libclc/opencl/lib/generic/integer/mad_sat.cl
index f083a9081..d9daf5663 100644
--- a/libclc/opencl/lib/generic/integer/mad_sat.cl
+++ b/libclc/opencl/lib/generic/integer/mad_sat.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_mad_sat.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION mad_sat
 #define __CLC_BODY <clc/shared/ternary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/mul24.cl b/libclc/opencl/lib/generic/integer/mul24.cl
index b538ae11f..b0a9ff80f 100644
--- a/libclc/opencl/lib/generic/integer/mul24.cl
+++ b/libclc/opencl/lib/generic/integer/mul24.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_mul24.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION mul24
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/mul_hi.cl b/libclc/opencl/lib/generic/integer/mul_hi.cl
index 8fb0d11db..40cb359f5 100644
--- a/libclc/opencl/lib/generic/integer/mul_hi.cl
+++ b/libclc/opencl/lib/generic/integer/mul_hi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_mul_hi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION mul_hi
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/popcount.cl b/libclc/opencl/lib/generic/integer/popcount.cl
index ae54980c2..a349f4548 100644
--- a/libclc/opencl/lib/generic/integer/popcount.cl
+++ b/libclc/opencl/lib/generic/integer/popcount.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_popcount.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION popcount
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/rhadd.cl b/libclc/opencl/lib/generic/integer/rhadd.cl
index b8dcbb620..539def845 100644
--- a/libclc/opencl/lib/generic/integer/rhadd.cl
+++ b/libclc/opencl/lib/generic/integer/rhadd.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_rhadd.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION rhadd
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/rotate.cl b/libclc/opencl/lib/generic/integer/rotate.cl
index 64eead067..a340ccf77 100644
--- a/libclc/opencl/lib/generic/integer/rotate.cl
+++ b/libclc/opencl/lib/generic/integer/rotate.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_rotate.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION rotate
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/sub_sat.cl b/libclc/opencl/lib/generic/integer/sub_sat.cl
index 9df2e44ec..465967243 100644
--- a/libclc/opencl/lib/generic/integer/sub_sat.cl
+++ b/libclc/opencl/lib/generic/integer/sub_sat.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_sub_sat.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sub_sat
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/integer/upsample.cl b/libclc/opencl/lib/generic/integer/upsample.cl
index c148e9a8b..32cb3cffc 100644
--- a/libclc/opencl/lib/generic/integer/upsample.cl
+++ b/libclc/opencl/lib/generic/integer/upsample.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/integer/clc_upsample.h>
+#include <clc/opencl/clc.h>
 
 #define __CLC_UPSAMPLE_IMPL(BGENTYPE, GENTYPE, UGENTYPE)                       \
   _CLC_OVERLOAD _CLC_DEF BGENTYPE upsample(GENTYPE hi, UGENTYPE lo) {          \
diff --git a/libclc/opencl/lib/generic/math/acos.cl b/libclc/opencl/lib/generic/math/acos.cl
index 37d9a717b..3d290225a 100644
--- a/libclc/opencl/lib/generic/math/acos.cl
+++ b/libclc/opencl/lib/generic/math/acos.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_acos.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION acos
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/acosh.cl b/libclc/opencl/lib/generic/math/acosh.cl
index bdef0b9aa..fea40caa3 100644
--- a/libclc/opencl/lib/generic/math/acosh.cl
+++ b/libclc/opencl/lib/generic/math/acosh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_acosh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION acosh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/acospi.cl b/libclc/opencl/lib/generic/math/acospi.cl
index 138d59aee..6c5ba2982 100644
--- a/libclc/opencl/lib/generic/math/acospi.cl
+++ b/libclc/opencl/lib/generic/math/acospi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_acospi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION acospi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/asin.cl b/libclc/opencl/lib/generic/math/asin.cl
index 3f3247000..b8d02cef7 100644
--- a/libclc/opencl/lib/generic/math/asin.cl
+++ b/libclc/opencl/lib/generic/math/asin.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_asin.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION asin
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/asinh.cl b/libclc/opencl/lib/generic/math/asinh.cl
index 48f7c273d..f043a33fe 100644
--- a/libclc/opencl/lib/generic/math/asinh.cl
+++ b/libclc/opencl/lib/generic/math/asinh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_asinh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION asinh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/asinpi.cl b/libclc/opencl/lib/generic/math/asinpi.cl
index 7d80a3f5f..688da9033 100644
--- a/libclc/opencl/lib/generic/math/asinpi.cl
+++ b/libclc/opencl/lib/generic/math/asinpi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_asinpi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION asinpi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/atan.cl b/libclc/opencl/lib/generic/math/atan.cl
index 13674753f..006fc9e65 100644
--- a/libclc/opencl/lib/generic/math/atan.cl
+++ b/libclc/opencl/lib/generic/math/atan.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_atan.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION atan
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/atan2.cl b/libclc/opencl/lib/generic/math/atan2.cl
index 748438e47..ae277e7dc 100644
--- a/libclc/opencl/lib/generic/math/atan2.cl
+++ b/libclc/opencl/lib/generic/math/atan2.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_atan2.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION atan2
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/atan2pi.cl b/libclc/opencl/lib/generic/math/atan2pi.cl
index 9a326aa68..06f0974d4 100644
--- a/libclc/opencl/lib/generic/math/atan2pi.cl
+++ b/libclc/opencl/lib/generic/math/atan2pi.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_atan2pi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION atan2pi
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/atanh.cl b/libclc/opencl/lib/generic/math/atanh.cl
index 075297b58..ad4c54b81 100644
--- a/libclc/opencl/lib/generic/math/atanh.cl
+++ b/libclc/opencl/lib/generic/math/atanh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_atanh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION atanh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/atanpi.cl b/libclc/opencl/lib/generic/math/atanpi.cl
index 9451058b4..3eba081d1 100644
--- a/libclc/opencl/lib/generic/math/atanpi.cl
+++ b/libclc/opencl/lib/generic/math/atanpi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_atanpi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION atanpi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/cbrt.cl b/libclc/opencl/lib/generic/math/cbrt.cl
index 4eadcf8a9..edccc1aaa 100644
--- a/libclc/opencl/lib/generic/math/cbrt.cl
+++ b/libclc/opencl/lib/generic/math/cbrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_cbrt.inc>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION cbrt
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/ceil.cl b/libclc/opencl/lib/generic/math/ceil.cl
index 52c5fd05d..981fa80a4 100644
--- a/libclc/opencl/lib/generic/math/ceil.cl
+++ b/libclc/opencl/lib/generic/math/ceil.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_ceil.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION ceil
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/copysign.cl b/libclc/opencl/lib/generic/math/copysign.cl
index eb6b1100d..9a34aa3ea 100644
--- a/libclc/opencl/lib/generic/math/copysign.cl
+++ b/libclc/opencl/lib/generic/math/copysign.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_copysign.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION copysign
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/cos.cl b/libclc/opencl/lib/generic/math/cos.cl
index ba1e541ed..01f419ebc 100644
--- a/libclc/opencl/lib/generic/math/cos.cl
+++ b/libclc/opencl/lib/generic/math/cos.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_cos.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION cos
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/cosh.cl b/libclc/opencl/lib/generic/math/cosh.cl
index 2945b9924..c2ee2375c 100644
--- a/libclc/opencl/lib/generic/math/cosh.cl
+++ b/libclc/opencl/lib/generic/math/cosh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_cosh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION cosh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/cospi.cl b/libclc/opencl/lib/generic/math/cospi.cl
index 3737716d4..05de33f74 100644
--- a/libclc/opencl/lib/generic/math/cospi.cl
+++ b/libclc/opencl/lib/generic/math/cospi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_cospi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION cospi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/erf.cl b/libclc/opencl/lib/generic/math/erf.cl
index f0ef39fbd..ba60e4c47 100644
--- a/libclc/opencl/lib/generic/math/erf.cl
+++ b/libclc/opencl/lib/generic/math/erf.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_erf.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION erf
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/erfc.cl b/libclc/opencl/lib/generic/math/erfc.cl
index 318c0ca3c..4624a0452 100644
--- a/libclc/opencl/lib/generic/math/erfc.cl
+++ b/libclc/opencl/lib/generic/math/erfc.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_erfc.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION erfc
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/exp.cl b/libclc/opencl/lib/generic/math/exp.cl
index efbed2298..8b20e2671 100644
--- a/libclc/opencl/lib/generic/math/exp.cl
+++ b/libclc/opencl/lib/generic/math/exp.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_exp.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION exp
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/exp10.cl b/libclc/opencl/lib/generic/math/exp10.cl
index cf0e1a582..d5bcf1960 100644
--- a/libclc/opencl/lib/generic/math/exp10.cl
+++ b/libclc/opencl/lib/generic/math/exp10.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_exp10.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION exp10
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/exp2.cl b/libclc/opencl/lib/generic/math/exp2.cl
index 3618f56e3..130dbbd77 100644
--- a/libclc/opencl/lib/generic/math/exp2.cl
+++ b/libclc/opencl/lib/generic/math/exp2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_exp2.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION exp2
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/expm1.cl b/libclc/opencl/lib/generic/math/expm1.cl
index 26aa2932a..26c3eac9e 100644
--- a/libclc/opencl/lib/generic/math/expm1.cl
+++ b/libclc/opencl/lib/generic/math/expm1.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_expm1.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION expm1
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/fabs.cl b/libclc/opencl/lib/generic/math/fabs.cl
index 461b9a56d..4f9cf117a 100644
--- a/libclc/opencl/lib/generic/math/fabs.cl
+++ b/libclc/opencl/lib/generic/math/fabs.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fabs.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fabs
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/fdim.cl b/libclc/opencl/lib/generic/math/fdim.cl
index f901c6010..6b9a46c1b 100644
--- a/libclc/opencl/lib/generic/math/fdim.cl
+++ b/libclc/opencl/lib/generic/math/fdim.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fdim.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fdim
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/floor.cl b/libclc/opencl/lib/generic/math/floor.cl
index 6cad3b333..9d5f5691a 100644
--- a/libclc/opencl/lib/generic/math/floor.cl
+++ b/libclc/opencl/lib/generic/math/floor.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_floor.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION floor
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/fma.cl b/libclc/opencl/lib/generic/math/fma.cl
index 0c43d2b02..ee3395bb2 100644
--- a/libclc/opencl/lib/generic/math/fma.cl
+++ b/libclc/opencl/lib/generic/math/fma.cl
@@ -6,10 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_fma.h>
 #include <clc/math/math.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_TERNARY_BUILTIN(float, fma, __clc_fma, float, float, float)
 
diff --git a/libclc/opencl/lib/generic/math/fmax.cl b/libclc/opencl/lib/generic/math/fmax.cl
index ff06226b3..6bc228237 100644
--- a/libclc/opencl/lib/generic/math/fmax.cl
+++ b/libclc/opencl/lib/generic/math/fmax.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fmax.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fmax
 #define __CLC_BODY <clc/shared/binary_def_with_scalar_second_arg.inc>
diff --git a/libclc/opencl/lib/generic/math/fmin.cl b/libclc/opencl/lib/generic/math/fmin.cl
index 9a6f0f79f..2aea160b9 100644
--- a/libclc/opencl/lib/generic/math/fmin.cl
+++ b/libclc/opencl/lib/generic/math/fmin.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fmin.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fmin
 #define __CLC_BODY <clc/shared/binary_def_with_scalar_second_arg.inc>
diff --git a/libclc/opencl/lib/generic/math/fmod.cl b/libclc/opencl/lib/generic/math/fmod.cl
index 59d90c77f..ddd071fda 100644
--- a/libclc/opencl/lib/generic/math/fmod.cl
+++ b/libclc/opencl/lib/generic/math/fmod.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fmod.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fmod
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/fract.cl b/libclc/opencl/lib/generic/math/fract.cl
index 43f164fff..c3e8b0afe 100644
--- a/libclc/opencl/lib/generic/math/fract.cl
+++ b/libclc/opencl/lib/generic/math/fract.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_fract.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION fract
 #define __CLC_BODY <clc/math/unary_def_with_ptr.inc>
diff --git a/libclc/opencl/lib/generic/math/frexp.cl b/libclc/opencl/lib/generic/math/frexp.cl
index 77c87467b..940a8e37b 100644
--- a/libclc/opencl/lib/generic/math/frexp.cl
+++ b/libclc/opencl/lib/generic/math/frexp.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_frexp.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION frexp
 #define __CLC_BODY <clc/math/unary_def_with_int_ptr.inc>
diff --git a/libclc/opencl/lib/generic/math/half_cos.cl b/libclc/opencl/lib/generic/math/half_cos.cl
index 9665626ec..5bb91b8ad 100644
--- a/libclc/opencl/lib/generic/math/half_cos.cl
+++ b/libclc/opencl/lib/generic/math/half_cos.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_cos.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_cos
diff --git a/libclc/opencl/lib/generic/math/half_divide.cl b/libclc/opencl/lib/generic/math/half_divide.cl
index 0c7519b34..8b5d8eddd 100644
--- a/libclc/opencl/lib/generic/math/half_divide.cl
+++ b/libclc/opencl/lib/generic/math/half_divide.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_divide.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_divide
diff --git a/libclc/opencl/lib/generic/math/half_exp.cl b/libclc/opencl/lib/generic/math/half_exp.cl
index be3567758..97507ab2e 100644
--- a/libclc/opencl/lib/generic/math/half_exp.cl
+++ b/libclc/opencl/lib/generic/math/half_exp.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_exp.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_exp
diff --git a/libclc/opencl/lib/generic/math/half_exp10.cl b/libclc/opencl/lib/generic/math/half_exp10.cl
index e47d955a4..6925035d0 100644
--- a/libclc/opencl/lib/generic/math/half_exp10.cl
+++ b/libclc/opencl/lib/generic/math/half_exp10.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_exp10.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_exp10
diff --git a/libclc/opencl/lib/generic/math/half_exp2.cl b/libclc/opencl/lib/generic/math/half_exp2.cl
index 100bc0298..5bd244482 100644
--- a/libclc/opencl/lib/generic/math/half_exp2.cl
+++ b/libclc/opencl/lib/generic/math/half_exp2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_exp2.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_exp2
diff --git a/libclc/opencl/lib/generic/math/half_log.cl b/libclc/opencl/lib/generic/math/half_log.cl
index b417a800b..28c696416 100644
--- a/libclc/opencl/lib/generic/math/half_log.cl
+++ b/libclc/opencl/lib/generic/math/half_log.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_log.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_log
diff --git a/libclc/opencl/lib/generic/math/half_log10.cl b/libclc/opencl/lib/generic/math/half_log10.cl
index 974e4b899..fcd0a8183 100644
--- a/libclc/opencl/lib/generic/math/half_log10.cl
+++ b/libclc/opencl/lib/generic/math/half_log10.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_log10.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_log10
diff --git a/libclc/opencl/lib/generic/math/half_log2.cl b/libclc/opencl/lib/generic/math/half_log2.cl
index 4e21d8f90..05214e6f5 100644
--- a/libclc/opencl/lib/generic/math/half_log2.cl
+++ b/libclc/opencl/lib/generic/math/half_log2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_log2.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_log2
diff --git a/libclc/opencl/lib/generic/math/half_powr.cl b/libclc/opencl/lib/generic/math/half_powr.cl
index 9b745313c..3562d3e28 100644
--- a/libclc/opencl/lib/generic/math/half_powr.cl
+++ b/libclc/opencl/lib/generic/math/half_powr.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_powr.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_powr
diff --git a/libclc/opencl/lib/generic/math/half_recip.cl b/libclc/opencl/lib/generic/math/half_recip.cl
index 9f0df658d..e26506623 100644
--- a/libclc/opencl/lib/generic/math/half_recip.cl
+++ b/libclc/opencl/lib/generic/math/half_recip.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_recip.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_recip
diff --git a/libclc/opencl/lib/generic/math/half_rsqrt.cl b/libclc/opencl/lib/generic/math/half_rsqrt.cl
index a4ea9100a..4f287d72d 100644
--- a/libclc/opencl/lib/generic/math/half_rsqrt.cl
+++ b/libclc/opencl/lib/generic/math/half_rsqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_rsqrt.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_rsqrt
diff --git a/libclc/opencl/lib/generic/math/half_sin.cl b/libclc/opencl/lib/generic/math/half_sin.cl
index 0756c5428..c1e569618 100644
--- a/libclc/opencl/lib/generic/math/half_sin.cl
+++ b/libclc/opencl/lib/generic/math/half_sin.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_sin.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_sin
diff --git a/libclc/opencl/lib/generic/math/half_sqrt.cl b/libclc/opencl/lib/generic/math/half_sqrt.cl
index 654a1ff12..c327881a5 100644
--- a/libclc/opencl/lib/generic/math/half_sqrt.cl
+++ b/libclc/opencl/lib/generic/math/half_sqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_sqrt.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_sqrt
diff --git a/libclc/opencl/lib/generic/math/half_tan.cl b/libclc/opencl/lib/generic/math/half_tan.cl
index d9c60576e..0d16b08dc 100644
--- a/libclc/opencl/lib/generic/math/half_tan.cl
+++ b/libclc/opencl/lib/generic/math/half_tan.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_half_tan.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION half_tan
diff --git a/libclc/opencl/lib/generic/math/hypot.cl b/libclc/opencl/lib/generic/math/hypot.cl
index c96e9243c..3ac2983ef 100644
--- a/libclc/opencl/lib/generic/math/hypot.cl
+++ b/libclc/opencl/lib/generic/math/hypot.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_hypot.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION hypot
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/ilogb.cl b/libclc/opencl/lib/generic/math/ilogb.cl
index bb38061ab..147f82d95 100644
--- a/libclc/opencl/lib/generic/math/ilogb.cl
+++ b/libclc/opencl/lib/generic/math/ilogb.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_ilogb.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION ilogb
 #define __CLC_BODY <clc/math/unary_def_with_int_return.inc>
diff --git a/libclc/opencl/lib/generic/math/ldexp.cl b/libclc/opencl/lib/generic/math/ldexp.cl
index 5911ec9d9..e3b9b2b3f 100644
--- a/libclc/opencl/lib/generic/math/ldexp.cl
+++ b/libclc/opencl/lib/generic/math/ldexp.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_ldexp.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_BINARY_BUILTIN_NO_SCALARIZE(float, ldexp, __clc_ldexp, float, int)
 
diff --git a/libclc/opencl/lib/generic/math/lgamma.cl b/libclc/opencl/lib/generic/math/lgamma.cl
index 0c95094d3..002a08153 100644
--- a/libclc/opencl/lib/generic/math/lgamma.cl
+++ b/libclc/opencl/lib/generic/math/lgamma.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_lgamma.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION lgamma
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/lgamma_r.cl b/libclc/opencl/lib/generic/math/lgamma_r.cl
index f20583b56..c44051cb4 100644
--- a/libclc/opencl/lib/generic/math/lgamma_r.cl
+++ b/libclc/opencl/lib/generic/math/lgamma_r.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_lgamma_r.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION lgamma_r
 #define __CLC_BODY <clc/math/unary_def_with_int_ptr.inc>
diff --git a/libclc/opencl/lib/generic/math/log.cl b/libclc/opencl/lib/generic/math/log.cl
index b41254c36..78430644a 100644
--- a/libclc/opencl/lib/generic/math/log.cl
+++ b/libclc/opencl/lib/generic/math/log.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_log.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION log
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/log10.cl b/libclc/opencl/lib/generic/math/log10.cl
index 41e43ea1a..01113e7c0 100644
--- a/libclc/opencl/lib/generic/math/log10.cl
+++ b/libclc/opencl/lib/generic/math/log10.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_log10.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION log10
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/log1p.cl b/libclc/opencl/lib/generic/math/log1p.cl
index 40bc5d9e6..26c4df015 100644
--- a/libclc/opencl/lib/generic/math/log1p.cl
+++ b/libclc/opencl/lib/generic/math/log1p.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_log1p.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION log1p
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/log2.cl b/libclc/opencl/lib/generic/math/log2.cl
index 861dfc189..d70f16d6f 100644
--- a/libclc/opencl/lib/generic/math/log2.cl
+++ b/libclc/opencl/lib/generic/math/log2.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_log2.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION log2
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/logb.cl b/libclc/opencl/lib/generic/math/logb.cl
index c3b9170e6..21046f2ac 100644
--- a/libclc/opencl/lib/generic/math/logb.cl
+++ b/libclc/opencl/lib/generic/math/logb.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_logb.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION logb
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/mad.cl b/libclc/opencl/lib/generic/math/mad.cl
index cee2a35c2..20e690309 100644
--- a/libclc/opencl/lib/generic/math/mad.cl
+++ b/libclc/opencl/lib/generic/math/mad.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_mad.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_TERNARY_BUILTIN(float, mad, __clc_mad, float, float, float)
 
diff --git a/libclc/opencl/lib/generic/math/maxmag.cl b/libclc/opencl/lib/generic/math/maxmag.cl
index ea31a8554..cf4cfc7de 100644
--- a/libclc/opencl/lib/generic/math/maxmag.cl
+++ b/libclc/opencl/lib/generic/math/maxmag.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_maxmag.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION maxmag
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/minmag.cl b/libclc/opencl/lib/generic/math/minmag.cl
index 6c7b61c56..e636ca7e2 100644
--- a/libclc/opencl/lib/generic/math/minmag.cl
+++ b/libclc/opencl/lib/generic/math/minmag.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_minmag.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION minmag
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/modf.cl b/libclc/opencl/lib/generic/math/modf.cl
index c7a404569..7ad3a2c75 100644
--- a/libclc/opencl/lib/generic/math/modf.cl
+++ b/libclc/opencl/lib/generic/math/modf.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_modf.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION modf
 #define __CLC_BODY <clc/math/unary_def_with_ptr.inc>
diff --git a/libclc/opencl/lib/generic/math/native_cos.cl b/libclc/opencl/lib/generic/math/native_cos.cl
index 933ebd251..d0df03771 100644
--- a/libclc/opencl/lib/generic/math/native_cos.cl
+++ b/libclc/opencl/lib/generic/math/native_cos.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_cos.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_cos
diff --git a/libclc/opencl/lib/generic/math/native_divide.cl b/libclc/opencl/lib/generic/math/native_divide.cl
index ac4ad17cc..6bcc5ecf4 100644
--- a/libclc/opencl/lib/generic/math/native_divide.cl
+++ b/libclc/opencl/lib/generic/math/native_divide.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_divide.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_divide
diff --git a/libclc/opencl/lib/generic/math/native_exp.cl b/libclc/opencl/lib/generic/math/native_exp.cl
index ddab9223d..23b72fc82 100644
--- a/libclc/opencl/lib/generic/math/native_exp.cl
+++ b/libclc/opencl/lib/generic/math/native_exp.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_exp.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_exp
diff --git a/libclc/opencl/lib/generic/math/native_exp10.cl b/libclc/opencl/lib/generic/math/native_exp10.cl
index 082591285..76cbc57cb 100644
--- a/libclc/opencl/lib/generic/math/native_exp10.cl
+++ b/libclc/opencl/lib/generic/math/native_exp10.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_exp10.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_exp10
diff --git a/libclc/opencl/lib/generic/math/native_exp2.cl b/libclc/opencl/lib/generic/math/native_exp2.cl
index a4ca5f5ec..107db022b 100644
--- a/libclc/opencl/lib/generic/math/native_exp2.cl
+++ b/libclc/opencl/lib/generic/math/native_exp2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_exp2.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_exp2
diff --git a/libclc/opencl/lib/generic/math/native_log.cl b/libclc/opencl/lib/generic/math/native_log.cl
index cc9018eda..3faf70674 100644
--- a/libclc/opencl/lib/generic/math/native_log.cl
+++ b/libclc/opencl/lib/generic/math/native_log.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_log.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_log
diff --git a/libclc/opencl/lib/generic/math/native_log10.cl b/libclc/opencl/lib/generic/math/native_log10.cl
index 75a019186..e71ac4448 100644
--- a/libclc/opencl/lib/generic/math/native_log10.cl
+++ b/libclc/opencl/lib/generic/math/native_log10.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_log10.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_log10
diff --git a/libclc/opencl/lib/generic/math/native_log2.cl b/libclc/opencl/lib/generic/math/native_log2.cl
index f54ea311e..c971013c4 100644
--- a/libclc/opencl/lib/generic/math/native_log2.cl
+++ b/libclc/opencl/lib/generic/math/native_log2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_log2.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_log2
diff --git a/libclc/opencl/lib/generic/math/native_powr.cl b/libclc/opencl/lib/generic/math/native_powr.cl
index 0d7a02202..ffc7e5a17 100644
--- a/libclc/opencl/lib/generic/math/native_powr.cl
+++ b/libclc/opencl/lib/generic/math/native_powr.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_powr.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_powr
diff --git a/libclc/opencl/lib/generic/math/native_recip.cl b/libclc/opencl/lib/generic/math/native_recip.cl
index b93cfaa88..cad339ecb 100644
--- a/libclc/opencl/lib/generic/math/native_recip.cl
+++ b/libclc/opencl/lib/generic/math/native_recip.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_recip.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_recip
diff --git a/libclc/opencl/lib/generic/math/native_rsqrt.cl b/libclc/opencl/lib/generic/math/native_rsqrt.cl
index d5506b335..69a387387 100644
--- a/libclc/opencl/lib/generic/math/native_rsqrt.cl
+++ b/libclc/opencl/lib/generic/math/native_rsqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_rsqrt.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_rsqrt
diff --git a/libclc/opencl/lib/generic/math/native_sin.cl b/libclc/opencl/lib/generic/math/native_sin.cl
index e201b8e7d..c1a3faed3 100644
--- a/libclc/opencl/lib/generic/math/native_sin.cl
+++ b/libclc/opencl/lib/generic/math/native_sin.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_sin.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_sin
diff --git a/libclc/opencl/lib/generic/math/native_sqrt.cl b/libclc/opencl/lib/generic/math/native_sqrt.cl
index eb0311caa..5b5487cfe 100644
--- a/libclc/opencl/lib/generic/math/native_sqrt.cl
+++ b/libclc/opencl/lib/generic/math/native_sqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_sqrt.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_sqrt
diff --git a/libclc/opencl/lib/generic/math/native_tan.cl b/libclc/opencl/lib/generic/math/native_tan.cl
index 337e8537f..000d6c5f3 100644
--- a/libclc/opencl/lib/generic/math/native_tan.cl
+++ b/libclc/opencl/lib/generic/math/native_tan.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_native_tan.h>
+#include <clc/opencl/clc.h>
 
 #define __FLOAT_ONLY
 #define FUNCTION native_tan
diff --git a/libclc/opencl/lib/generic/math/nextafter.cl b/libclc/opencl/lib/generic/math/nextafter.cl
index 3482f4f87..ecb187c53 100644
--- a/libclc/opencl/lib/generic/math/nextafter.cl
+++ b/libclc/opencl/lib/generic/math/nextafter.cl
@@ -6,9 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/math/clc_nextafter.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_BINARY_BUILTIN_NO_SCALARIZE(float, nextafter, __clc_nextafter,
                                         float, float)
diff --git a/libclc/opencl/lib/generic/math/pow.cl b/libclc/opencl/lib/generic/math/pow.cl
index 373025451..b3a77f5a2 100644
--- a/libclc/opencl/lib/generic/math/pow.cl
+++ b/libclc/opencl/lib/generic/math/pow.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_pow.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION pow
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/pown.cl b/libclc/opencl/lib/generic/math/pown.cl
index 38b1e9031..a2ed523a4 100644
--- a/libclc/opencl/lib/generic/math/pown.cl
+++ b/libclc/opencl/lib/generic/math/pown.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_pown.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION pown
 #define __CLC_BODY <clc/math/binary_def_with_int_second_arg.inc>
diff --git a/libclc/opencl/lib/generic/math/powr.cl b/libclc/opencl/lib/generic/math/powr.cl
index 1878f1ed8..87707198a 100644
--- a/libclc/opencl/lib/generic/math/powr.cl
+++ b/libclc/opencl/lib/generic/math/powr.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_powr.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION powr
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/remainder.cl b/libclc/opencl/lib/generic/math/remainder.cl
index 8ec049b10..aeba5d59e 100644
--- a/libclc/opencl/lib/generic/math/remainder.cl
+++ b/libclc/opencl/lib/generic/math/remainder.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_remainder.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION remainder
 #define __CLC_BODY <clc/shared/binary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/remquo.cl b/libclc/opencl/lib/generic/math/remquo.cl
index 097c9cdb7..94e7664ed 100644
--- a/libclc/opencl/lib/generic/math/remquo.cl
+++ b/libclc/opencl/lib/generic/math/remquo.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_remquo.h>
+#include <clc/opencl/clc.h>
 
 #define __CLC_BODY <remquo.inc>
 #define __CLC_ADDRESS_SPACE global
diff --git a/libclc/opencl/lib/generic/math/rint.cl b/libclc/opencl/lib/generic/math/rint.cl
index ff593bc3b..84ce99c4d 100644
--- a/libclc/opencl/lib/generic/math/rint.cl
+++ b/libclc/opencl/lib/generic/math/rint.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_rint.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION rint
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/rootn.cl b/libclc/opencl/lib/generic/math/rootn.cl
index a07569932..9f737151b 100644
--- a/libclc/opencl/lib/generic/math/rootn.cl
+++ b/libclc/opencl/lib/generic/math/rootn.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_rootn.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION rootn
 #define __CLC_BODY <clc/math/binary_def_with_int_second_arg.inc>
diff --git a/libclc/opencl/lib/generic/math/round.cl b/libclc/opencl/lib/generic/math/round.cl
index 0f0257bb4..0ce44e72b 100644
--- a/libclc/opencl/lib/generic/math/round.cl
+++ b/libclc/opencl/lib/generic/math/round.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_round.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION round
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/rsqrt.cl b/libclc/opencl/lib/generic/math/rsqrt.cl
index 72c8b5fc5..7d6dcfaa3 100644
--- a/libclc/opencl/lib/generic/math/rsqrt.cl
+++ b/libclc/opencl/lib/generic/math/rsqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_rsqrt.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION rsqrt
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/sin.cl b/libclc/opencl/lib/generic/math/sin.cl
index 864adfb1d..293a2636c 100644
--- a/libclc/opencl/lib/generic/math/sin.cl
+++ b/libclc/opencl/lib/generic/math/sin.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_sin.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sin
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/sincos.cl b/libclc/opencl/lib/generic/math/sincos.cl
index a2baf13ce..d87da4d7d 100644
--- a/libclc/opencl/lib/generic/math/sincos.cl
+++ b/libclc/opencl/lib/generic/math/sincos.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_sincos.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sincos
 #define __CLC_BODY <clc/math/unary_def_with_ptr.inc>
diff --git a/libclc/opencl/lib/generic/math/sinh.cl b/libclc/opencl/lib/generic/math/sinh.cl
index 70cfb4f53..aa559f933 100644
--- a/libclc/opencl/lib/generic/math/sinh.cl
+++ b/libclc/opencl/lib/generic/math/sinh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_sinh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sinh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/sinpi.cl b/libclc/opencl/lib/generic/math/sinpi.cl
index f09307b48..8b48426a0 100644
--- a/libclc/opencl/lib/generic/math/sinpi.cl
+++ b/libclc/opencl/lib/generic/math/sinpi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_sinpi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sinpi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/sqrt.cl b/libclc/opencl/lib/generic/math/sqrt.cl
index f553d54a7..fd031daf5 100644
--- a/libclc/opencl/lib/generic/math/sqrt.cl
+++ b/libclc/opencl/lib/generic/math/sqrt.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_sqrt.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION sqrt
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/tan.cl b/libclc/opencl/lib/generic/math/tan.cl
index af5b5659f..6df22b9c3 100644
--- a/libclc/opencl/lib/generic/math/tan.cl
+++ b/libclc/opencl/lib/generic/math/tan.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_tan.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION tan
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/tanh.cl b/libclc/opencl/lib/generic/math/tanh.cl
index 2796f331a..ef7cb1ec5 100644
--- a/libclc/opencl/lib/generic/math/tanh.cl
+++ b/libclc/opencl/lib/generic/math/tanh.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_tanh.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION tanh
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/tanpi.cl b/libclc/opencl/lib/generic/math/tanpi.cl
index ab991cc90..2195830fa 100644
--- a/libclc/opencl/lib/generic/math/tanpi.cl
+++ b/libclc/opencl/lib/generic/math/tanpi.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_tanpi.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION tanpi
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/tgamma.cl b/libclc/opencl/lib/generic/math/tgamma.cl
index 8904b9523..634ed7a50 100644
--- a/libclc/opencl/lib/generic/math/tgamma.cl
+++ b/libclc/opencl/lib/generic/math/tgamma.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_tgamma.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION tgamma
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/math/trunc.cl b/libclc/opencl/lib/generic/math/trunc.cl
index 2f929a4a7..58f414dcc 100644
--- a/libclc/opencl/lib/generic/math/trunc.cl
+++ b/libclc/opencl/lib/generic/math/trunc.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_trunc.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION trunc
 #define __CLC_BODY <clc/shared/unary_def.inc>
diff --git a/libclc/opencl/lib/generic/misc/shuffle.cl b/libclc/opencl/lib/generic/misc/shuffle.cl
index ea4bca42e..f8c5d16d2 100644
--- a/libclc/opencl/lib/generic/misc/shuffle.cl
+++ b/libclc/opencl/lib/generic/misc/shuffle.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/misc/clc_shuffle.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION shuffle
 
diff --git a/libclc/opencl/lib/generic/misc/shuffle2.cl b/libclc/opencl/lib/generic/misc/shuffle2.cl
index 5894fe3bb..74487d07d 100644
--- a/libclc/opencl/lib/generic/misc/shuffle2.cl
+++ b/libclc/opencl/lib/generic/misc/shuffle2.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/misc/clc_shuffle2.h>
+#include <clc/opencl/clc.h>
 
 #define FUNCTION shuffle2
 
diff --git a/libclc/opencl/lib/generic/shared/clamp.inc b/libclc/opencl/lib/generic/shared/clamp.inc
index f3ef44763..f79a4da67 100644
--- a/libclc/opencl/lib/generic/shared/clamp.inc
+++ b/libclc/opencl/lib/generic/shared/clamp.inc
@@ -6,12 +6,15 @@
 //
 //===----------------------------------------------------------------------===//
 
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y, __CLC_GENTYPE z) {
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_GENTYPE y,
+                                           __CLC_GENTYPE z) {
   return __clc_clamp(x, y, z);
 }
 
 #ifndef __CLC_SCALAR
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE clamp(__CLC_GENTYPE x, __CLC_SCALAR_GENTYPE y, __CLC_SCALAR_GENTYPE z) {
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE clamp(__CLC_GENTYPE x,
+                                           __CLC_SCALAR_GENTYPE y,
+                                           __CLC_SCALAR_GENTYPE z) {
   return __clc_clamp(x, y, z);
 }
 #endif
diff --git a/libclc/opencl/lib/generic/subnormal_config.cl b/libclc/opencl/lib/generic/subnormal_config.cl
index 326484b97..a32af9b0c 100644
--- a/libclc/opencl/lib/generic/subnormal_config.cl
+++ b/libclc/opencl/lib/generic/subnormal_config.cl
@@ -6,16 +6,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_subnormal_config.h>
+#include <clc/opencl/clc.h>
 
-_CLC_DEF bool __clc_fp16_subnormals_supported() {
-  return false;
-}
+_CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }
 
-_CLC_DEF bool __clc_fp32_subnormals_supported() {
-  return false;
-}
+_CLC_DEF bool __clc_fp32_subnormals_supported() { return false; }
 
 _CLC_DEF bool __clc_fp64_subnormals_supported() {
   return !__clc_subnormals_disabled();
diff --git a/libclc/opencl/lib/generic/workitem/get_global_id.cl b/libclc/opencl/lib/generic/workitem/get_global_id.cl
index cd26995cb..26c3bf528 100644
--- a/libclc/opencl/lib/generic/workitem/get_global_id.cl
+++ b/libclc/opencl/lib/generic/workitem/get_global_id.cl
@@ -9,5 +9,6 @@
 #include <clc/opencl/clc.h>
 
 _CLC_DEF _CLC_OVERLOAD size_t get_global_id(uint dim) {
-  return get_group_id(dim) * get_local_size(dim) + get_local_id(dim) + get_global_offset(dim);
+  return get_group_id(dim) * get_local_size(dim) + get_local_id(dim) +
+         get_global_offset(dim);
 }
diff --git a/libclc/opencl/lib/generic/workitem/get_global_size.cl b/libclc/opencl/lib/generic/workitem/get_global_size.cl
index ed59dd6fc..747115d52 100644
--- a/libclc/opencl/lib/generic/workitem/get_global_size.cl
+++ b/libclc/opencl/lib/generic/workitem/get_global_size.cl
@@ -9,5 +9,5 @@
 #include <clc/opencl/clc.h>
 
 _CLC_DEF _CLC_OVERLOAD size_t get_global_size(uint dim) {
-  return get_num_groups(dim)*get_local_size(dim);
+  return get_num_groups(dim) * get_local_size(dim);
 }
diff --git a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_group_id.cl b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_group_id.cl
index dccd80c6a..0dad4c206 100644
--- a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_group_id.cl
+++ b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_group_id.cl
@@ -10,9 +10,13 @@
 
 _CLC_DEF _CLC_OVERLOAD size_t get_group_id(uint dim) {
   switch (dim) {
-  case 0:  return __nvvm_read_ptx_sreg_ctaid_x();
-  case 1:  return __nvvm_read_ptx_sreg_ctaid_y();
-  case 2:  return __nvvm_read_ptx_sreg_ctaid_z();
-  default: return 0;
+  case 0:
+    return __nvvm_read_ptx_sreg_ctaid_x();
+  case 1:
+    return __nvvm_read_ptx_sreg_ctaid_y();
+  case 2:
+    return __nvvm_read_ptx_sreg_ctaid_z();
+  default:
+    return 0;
   }
 }
diff --git a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_id.cl b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_id.cl
index 2756b4501..199b4610b 100644
--- a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_id.cl
+++ b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_id.cl
@@ -10,9 +10,13 @@
 
 _CLC_DEF _CLC_OVERLOAD size_t get_local_id(uint dim) {
   switch (dim) {
-  case 0:  return __nvvm_read_ptx_sreg_tid_x();
-  case 1:  return __nvvm_read_ptx_sreg_tid_y();
-  case 2:  return __nvvm_read_ptx_sreg_tid_z();
-  default: return 0;
+  case 0:
+    return __nvvm_read_ptx_sreg_tid_x();
+  case 1:
+    return __nvvm_read_ptx_sreg_tid_y();
+  case 2:
+    return __nvvm_read_ptx_sreg_tid_z();
+  default:
+    return 0;
   }
 }
diff --git a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl
index ab5fc3609..a93fa0a3c 100644
--- a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl
+++ b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_local_size.cl
@@ -10,9 +10,13 @@
 
 _CLC_DEF _CLC_OVERLOAD size_t get_local_size(uint dim) {
   switch (dim) {
-  case 0:  return __nvvm_read_ptx_sreg_ntid_x();
-  case 1:  return __nvvm_read_ptx_sreg_ntid_y();
-  case 2:  return __nvvm_read_ptx_sreg_ntid_z();
-  default: return 0;
+  case 0:
+    return __nvvm_read_ptx_sreg_ntid_x();
+  case 1:
+    return __nvvm_read_ptx_sreg_ntid_y();
+  case 2:
+    return __nvvm_read_ptx_sreg_ntid_z();
+  default:
+    return 0;
   }
 }
diff --git a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl
index 0ee4b42e2..4c934968d 100644
--- a/libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl
+++ b/libclc/opencl/lib/ptx-nvidiacl/workitem/get_num_groups.cl
@@ -10,9 +10,13 @@
 
 _CLC_DEF _CLC_OVERLOAD size_t get_num_groups(uint dim) {
   switch (dim) {
-  case 0:  return __nvvm_read_ptx_sreg_nctaid_x();
-  case 1:  return __nvvm_read_ptx_sreg_nctaid_y();
-  case 2:  return __nvvm_read_ptx_sreg_nctaid_z();
-  default: return 0;
+  case 0:
+    return __nvvm_read_ptx_sreg_nctaid_x();
+  case 1:
+    return __nvvm_read_ptx_sreg_nctaid_y();
+  case 2:
+    return __nvvm_read_ptx_sreg_nctaid_z();
+  default:
+    return 0;
   }
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_channel_data_type.cl b/libclc/opencl/lib/r600/image/get_image_channel_data_type.cl
index 252676abc..813572ae5 100644
--- a/libclc/opencl/lib/r600/image/get_image_channel_data_type.cl
+++ b/libclc/opencl/lib/r600/image/get_image_channel_data_type.cl
@@ -11,11 +11,9 @@
 _CLC_DECL int __clc_get_image_channel_data_type_2d(image2d_t);
 _CLC_DECL int __clc_get_image_channel_data_type_3d(image3d_t);
 
-_CLC_OVERLOAD _CLC_DEF int
-get_image_channel_data_type(image2d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_channel_data_type(image2d_t image) {
   return __clc_get_image_channel_data_type_2d(image);
 }
-_CLC_OVERLOAD _CLC_DEF int
-get_image_channel_data_type(image3d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_channel_data_type(image3d_t image) {
   return __clc_get_image_channel_data_type_3d(image);
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_channel_order.cl b/libclc/opencl/lib/r600/image/get_image_channel_order.cl
index c9567dcb4..0e5882b15 100644
--- a/libclc/opencl/lib/r600/image/get_image_channel_order.cl
+++ b/libclc/opencl/lib/r600/image/get_image_channel_order.cl
@@ -11,11 +11,9 @@
 _CLC_DECL int __clc_get_image_channel_order_2d(image2d_t);
 _CLC_DECL int __clc_get_image_channel_order_3d(image3d_t);
 
-_CLC_OVERLOAD _CLC_DEF int
-get_image_channel_order(image2d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_channel_order(image2d_t image) {
   return __clc_get_image_channel_order_2d(image);
 }
-_CLC_OVERLOAD _CLC_DEF int
-get_image_channel_order(image3d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_channel_order(image3d_t image) {
   return __clc_get_image_channel_order_3d(image);
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_depth.cl b/libclc/opencl/lib/r600/image/get_image_depth.cl
index af2809cef..431889b6c 100644
--- a/libclc/opencl/lib/r600/image/get_image_depth.cl
+++ b/libclc/opencl/lib/r600/image/get_image_depth.cl
@@ -10,7 +10,6 @@
 
 _CLC_DECL int __clc_get_image_depth_3d(image3d_t);
 
-_CLC_OVERLOAD _CLC_DEF int
-get_image_depth(image3d_t image) {
-	return __clc_get_image_depth_3d(image);
+_CLC_OVERLOAD _CLC_DEF int get_image_depth(image3d_t image) {
+  return __clc_get_image_depth_3d(image);
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_dim.cl b/libclc/opencl/lib/r600/image/get_image_dim.cl
index 899d92387..5a123425a 100644
--- a/libclc/opencl/lib/r600/image/get_image_dim.cl
+++ b/libclc/opencl/lib/r600/image/get_image_dim.cl
@@ -8,10 +8,10 @@
 
 #include <clc/opencl/clc.h>
 
-_CLC_OVERLOAD _CLC_DEF int2 get_image_dim (image2d_t image) {
+_CLC_OVERLOAD _CLC_DEF int2 get_image_dim(image2d_t image) {
   return (int2)(get_image_width(image), get_image_height(image));
 }
-_CLC_OVERLOAD _CLC_DEF int4 get_image_dim (image3d_t image) {
+_CLC_OVERLOAD _CLC_DEF int4 get_image_dim(image3d_t image) {
   return (int4)(get_image_width(image), get_image_height(image),
                 get_image_depth(image), 0);
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_height.cl b/libclc/opencl/lib/r600/image/get_image_height.cl
index f4d5371e2..0c498bed8 100644
--- a/libclc/opencl/lib/r600/image/get_image_height.cl
+++ b/libclc/opencl/lib/r600/image/get_image_height.cl
@@ -11,11 +11,9 @@
 _CLC_DECL int __clc_get_image_height_2d(image2d_t);
 _CLC_DECL int __clc_get_image_height_3d(image3d_t);
 
-_CLC_OVERLOAD _CLC_DEF int
-get_image_height(image2d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_height(image2d_t image) {
   return __clc_get_image_height_2d(image);
 }
-_CLC_OVERLOAD _CLC_DEF int
-get_image_height(image3d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_height(image3d_t image) {
   return __clc_get_image_height_3d(image);
 }
diff --git a/libclc/opencl/lib/r600/image/get_image_width.cl b/libclc/opencl/lib/r600/image/get_image_width.cl
index 69b61a5f4..c54f66176 100644
--- a/libclc/opencl/lib/r600/image/get_image_width.cl
+++ b/libclc/opencl/lib/r600/image/get_image_width.cl
@@ -11,11 +11,9 @@
 _CLC_DECL int __clc_get_image_width_2d(image2d_t);
 _CLC_DECL int __clc_get_image_width_3d(image3d_t);
 
-_CLC_OVERLOAD _CLC_DEF int
-get_image_width(image2d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_width(image2d_t image) {
   return __clc_get_image_width_2d(image);
 }
-_CLC_OVERLOAD _CLC_DEF int
-get_image_width(image3d_t image) {
+_CLC_OVERLOAD _CLC_DEF int get_image_width(image3d_t image) {
   return __clc_get_image_width_3d(image);
 }
diff --git a/libclc/opencl/lib/r600/image/read_imagei.cl b/libclc/opencl/lib/r600/image/read_imagei.cl
index dc76b7c8d..918a444f9 100644
--- a/libclc/opencl/lib/r600/image/read_imagei.cl
+++ b/libclc/opencl/lib/r600/image/read_imagei.cl
@@ -14,7 +14,7 @@ int4 __clc_reinterpret_v4f_to_v4i(float4 v) {
   union {
     int4 v4i;
     float4 v4f;
-  } res = { .v4f = v};
+  } res = {.v4f = v};
   return res.v4i;
 }
 
@@ -22,10 +22,10 @@ _CLC_OVERLOAD _CLC_DEF int4 read_imagei(image2d_t image, sampler_t sampler,
                                         int2 coord) {
   float2 coord_float = (float2)(coord.x, coord.y);
   return __clc_reinterpret_v4f_to_v4i(
-    __clc_read_imagef_tex(image, sampler, coord_float));
+      __clc_read_imagef_tex(image, sampler, coord_float));
 }
 _CLC_OVERLOAD _CLC_DEF int4 read_imagei(image2d_t image, sampler_t sampler,
                                         float2 coord) {
   return __clc_reinterpret_v4f_to_v4i(
-    __clc_read_imagef_tex(image, sampler, coord));
+      __clc_read_imagef_tex(image, sampler, coord));
 }
diff --git a/libclc/opencl/lib/r600/image/read_imageui.cl b/libclc/opencl/lib/r600/image/read_imageui.cl
index 8dd187073..8236b542e 100644
--- a/libclc/opencl/lib/r600/image/read_imageui.cl
+++ b/libclc/opencl/lib/r600/image/read_imageui.cl
@@ -14,7 +14,7 @@ uint4 __clc_reinterpret_v4f_to_v4ui(float4 v) {
   union {
     uint4 v4ui;
     float4 v4f;
-  } res = { .v4f = v};
+  } res = {.v4f = v};
   return res.v4ui;
 }
 
@@ -22,10 +22,10 @@ _CLC_OVERLOAD _CLC_DEF uint4 read_imageui(image2d_t image, sampler_t sampler,
                                           int2 coord) {
   float2 coord_float = (float2)(coord.x, coord.y);
   return __clc_reinterpret_v4f_to_v4ui(
-    __clc_read_imagef_tex(image, sampler, coord_float));
+      __clc_read_imagef_tex(image, sampler, coord_float));
 }
 _CLC_OVERLOAD _CLC_DEF uint4 read_imageui(image2d_t image, sampler_t sampler,
                                           float2 coord) {
   return __clc_reinterpret_v4f_to_v4ui(
-    __clc_read_imagef_tex(image, sampler, coord));
+      __clc_read_imagef_tex(image, sampler, coord));
 }
diff --git a/libclc/opencl/lib/r600/image/write_imagef.cl b/libclc/opencl/lib/r600/image/write_imagef.cl
index ea8a5f74c..d9784f532 100644
--- a/libclc/opencl/lib/r600/image/write_imagef.cl
+++ b/libclc/opencl/lib/r600/image/write_imagef.cl
@@ -10,8 +10,7 @@
 
 _CLC_DECL void __clc_write_imagef_2d(image2d_t image, int2 coord, float4 color);
 
-_CLC_OVERLOAD _CLC_DEF void
-write_imagef(image2d_t image, int2 coord, float4 color)
-{
+_CLC_OVERLOAD _CLC_DEF void write_imagef(image2d_t image, int2 coord,
+                                         float4 color) {
   __clc_write_imagef_2d(image, coord, color);
 }
diff --git a/libclc/opencl/lib/r600/image/write_imagei.cl b/libclc/opencl/lib/r600/image/write_imagei.cl
index e89c5972c..ced651840 100644
--- a/libclc/opencl/lib/r600/image/write_imagei.cl
+++ b/libclc/opencl/lib/r600/image/write_imagei.cl
@@ -10,8 +10,7 @@
 
 _CLC_DECL void __clc_write_imagei_2d(image2d_t image, int2 coord, int4 color);
 
-_CLC_OVERLOAD _CLC_DEF void
-write_imagei(image2d_t image, int2 coord, int4 color)
-{
+_CLC_OVERLOAD _CLC_DEF void write_imagei(image2d_t image, int2 coord,
+                                         int4 color) {
   __clc_write_imagei_2d(image, coord, color);
 }
diff --git a/libclc/opencl/lib/r600/image/write_imageui.cl b/libclc/opencl/lib/r600/image/write_imageui.cl
index 0e047fa7b..ef2ee5a83 100644
--- a/libclc/opencl/lib/r600/image/write_imageui.cl
+++ b/libclc/opencl/lib/r600/image/write_imageui.cl
@@ -10,8 +10,7 @@
 
 _CLC_DECL void __clc_write_imageui_2d(image2d_t image, int2 coord, uint4 color);
 
-_CLC_OVERLOAD _CLC_DEF void
-write_imageui(image2d_t image, int2 coord, uint4 color)
-{
+_CLC_OVERLOAD _CLC_DEF void write_imageui(image2d_t image, int2 coord,
+                                          uint4 color) {
   __clc_write_imageui_2d(image, coord, color);
 }
diff --git a/libclc/opencl/lib/spirv/math/fma.cl b/libclc/opencl/lib/spirv/math/fma.cl
index 014e311ff..272201812 100644
--- a/libclc/opencl/lib/spirv/math/fma.cl
+++ b/libclc/opencl/lib/spirv/math/fma.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/clcmacro.h>
 #include <clc/internal/math/clc_sw_fma.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEFINE_TERNARY_BUILTIN(float, fma, __clc_sw_fma, float, float, float)
diff --git a/libclc/opencl/lib/spirv/subnormal_config.cl b/libclc/opencl/lib/spirv/subnormal_config.cl
index 50997134b..77d60ab9c 100644
--- a/libclc/opencl/lib/spirv/subnormal_config.cl
+++ b/libclc/opencl/lib/spirv/subnormal_config.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/opencl/clc.h>
 #include <clc/math/clc_subnormal_config.h>
+#include <clc/opencl/clc.h>
 
 _CLC_DEF bool __clc_fp16_subnormals_supported() { return false; }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/140557


More information about the cfe-commits mailing list