CLion 2020.2 Code inspection errors when using AVX2 intrinsics
CLion shows errors for all intrinsics functions for AVX2, ... if I do not include headers like:
#include <avxintrin.h>
#include <avx2intrin.h>
#include <avx512fintrin.h>
But: these headers should not be directly included:
#ifndef _IMMINTRIN_H_INCLUDED
# error "Never use <avxintrin.h> directly; include <immintrin.h> instead."
#endif
But just including <immintrin.h> produces the errors in CLion code inspection.
The code DOES compile though. (I am compiling with the Intel Compiler though).
Is there a way to make code inspection understand the intrinsics without including the "not allowed" headers?

Thanks
markus
Please sign in to leave a comment.