Sysprogs forums › Forums › VisualGDB › C11 extensions & Clang-based IntelliSense
- This topic has 5 replies, 3 voices, and was last updated 6 years, 2 months ago by support.
-
AuthorPosts
-
January 18, 2018 at 14:55 #13499bfesslerParticipant
First, I must say, I love VisualGDB – it has changed my embedded life, thank you for making it!
Background:
I’m using the C11 flag ‘-fms-extensions’ in a project (target is an ARM Cortex M7) for use of anonymous structs & unions. Here’s an example of these from the GCC reference on the topic:
https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.htmlProblem:
Using anonymous structs & unions in my code complies fine with the addition of the CFLAG ‘-fms-extensions’, but the VisualGDB Clang-based IntelliSense Engine will underline member calls with an ‘Error: no member named …’ warning. It also does not include the anonymous members in the code completion popup.
Observations/Attempts to fix:
Added ‘-fms-extensions’ to VisualGDB Project Properties->IntelliSense Settings field ‘Additional flags for C files’, no change.
Switched the IntelliSense engine to ‘Use native Visual Studio IntelliSense Engine’ in VisualGDB Project Properties->IntelliSense Settings and the problem resolved (no underlined error, anonymous members now present in code completion pop-up), but at the expense of not using the nice and fast Clang-based engine.
January 19, 2018 at 04:14 #13508supportKeymasterHi,
Normally the Clang IntelliSense should automatically pick this flag from the project settings. If not, please try adding it to VisualGDB Project Properties -> IntelliSense Settings -> Additional flags for C++ files.
January 19, 2018 at 09:25 #13519bfesslerParticipantThanks for the suggestion. I had tried adding the flag to both C & C++ additional flag fields (image attached), but the error persists.
Are there any other areas within program the Clang flags could be applied to, or overwritten by?
Attachments:
You must be logged in to view attached files.January 20, 2018 at 06:26 #13528supportKeymasterHi,
Strange. Could you please open the Clang IntelliSense Diagnostics Console, switch to the Project View and paste the CXXFLAGS for the project shown there? This should help understand what exact flags are fed into clang.
September 3, 2018 at 10:09 #21872oto313ParticipantHello, I have the same problem. I set flags like bfessler, but it still shows me the error related to anonymous struct members. It does not pass flags from settings. There is no -fms-extensions flag. I have CMake project.
–target=arm -mfloat-abi=soft -DHARDWARE_TYPE=HT_UNIVERSAL_BOARD -DHARDWARE_VERSION=2 -DSTM32L432KC -DSTM32L432xx -DSTM32L4xx -DDEBUG -D__SYSPROGS_CODESENSE__ -include C:\Program Files (x86)\Sysprogs\VisualGDB\gcc_compat.h -I C:\my\projects\Ris\src\Rac\interaction_devices\color_sensor\include -I C:\my\projects\Ris\src\Rac\interaction_devices\common\include -I C:\my\projects\Ris\src\Rac\interaction_devices\color_sensor -I C:\my\projects\Ris\src\Rac\library\third_party\freertos\Source\include -I C:\my\projects\Ris\src\Rac\library\third_party\freertos\Source\portable\GCC\ARM_CM4F -I C:\my\projects\Ris\src\Rac\library\third_party\freertos\Source\CMSIS_RTOS -I C:\my\projects\Ris\src\Rac\interaction_devices\common\include\freertos -I C:\my\projects\Ris\src\Rac\library\drivers\STM32L432KC\STM32L4xx_HAL_Driver\Inc -I C:\my\projects\Ris\src\Rac\library\drivers\STM32L432KC\CMSIS\Include -I C:\my\projects\Ris\src\Rac\library\drivers\STM32L432KC\CMSIS\Device\ST\STM32L4xx\Include -I C:\my\projects\Ris\src\Rac\library\drivers\STM32L432KC\include -I C:\my\projects\Ris\src\Rac\library\rac\include -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -Wall -std=gnu11 -Wl,-q -D__DBL_MIN_EXP__=(-1021) -D__HQ_FBIT__=15 -D__FLT32X_MAX_EXP__=1024 -D__UINT_LEAST16_MAX__=0xffff -D__ARM_SIZEOF_WCHAR_T=4 -D__ATOMIC_ACQUIRE=2 -D__SFRACT_IBIT__=0 -D__FLT_MIN__=1.1754943508222875e-38F -D__GCC_IEC_559_COMPLEX=0 -D__UFRACT_MAX__=0XFFFFP-16UR -D__UINT_LEAST8_TYPE__=unsigned char -D__DQ_FBIT__=63 -D__ARM_FEATURE_SAT=1 -D__ULFRACT_FBIT__=32 -D__SACCUM_EPSILON__=0x1P-7HK -D__CHAR_BIT__=8 -D__USQ_IBIT__=0 -D__UINT8_MAX__=0xff -D__ACCUM_FBIT__=15 -D__WINT_MAX__=0xffffffffU -D__FLT32_MIN_EXP__=(-125) -D__USFRACT_FBIT__=8 -D__ORDER_LITTLE_ENDIAN__=1234 -D__SIZE_MAX__=0xffffffffU -D__WCHAR_MAX__=0xffffffffU -D__LACCUM_IBIT__=32 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 -D__DBL_DENORM_MIN__=((double)4.9406564584124654e-324L) -D__GCC_ATOMIC_CHAR_LOCK_FREE=2 -D__GCC_IEC_559=0 -D__FLT32X_DECIMAL_DIG__=17 -D__FLT_EVAL_METHOD__=0 -D__LLACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LLK -D__FLT64_DECIMAL_DIG__=17 -D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 -D__FRACT_FBIT__=15 -D__UINT_FAST64_MAX__=0xffffffffffffffffULL -D__SIG_ATOMIC_TYPE__=int -D__UACCUM_FBIT__=16 -D__DBL_MIN_10_EXP__=(-307) -D__FINITE_MATH_ONLY__=0 -D__ARMEL__=1 -D__ARM_FEATURE_UNALIGNED=1 -D__LFRACT_IBIT__=0 -D__GNUC_PATCHLEVEL__=0 -D__FLT32_HAS_DENORM__=1 -D__LFRACT_MAX__=0X7FFFFFFFP-31LR -D__UINT_FAST8_MAX__=0xffffffffU -D__DEC64_MAX_EXP__=385 -D__INT_LEAST8_WIDTH__=8 -D__UINT_LEAST64_MAX__=0xffffffffffffffffULL -D__SA_FBIT__=15 -D__SHRT_MAX__=0x7fff -D__LDBL_MAX__=1.7976931348623157e+308L -D__ARM_FEATURE_IDIV=1 -D__FRACT_MAX__=0X7FFFP-15R -D__thumb2__=1 -D__UFRACT_FBIT__=16 -D__ARM_FP=4 -D__UFRACT_MIN__=0.0UR -D__UINT_LEAST8_MAX__=0xff -D__GCC_ATOMIC_BOOL_LOCK_FREE=2 -D__UINTMAX_TYPE__=long long unsigned int -D__LLFRACT_EPSILON__=0x1P-63LLR -D__DEC32_EPSILON__=1E-6DF -D__FLT_EVAL_METHOD_TS_18661_3__=0 -D__CHAR_UNSIGNED__=1 -D__UINT32_MAX__=0xffffffffUL -D__ULFRACT_MAX__=0XFFFFFFFFP-32ULR -D__TA_IBIT__=64 -D__LDBL_MAX_EXP__=1024 -D__WINT_MIN__=0U -D__ARM_ASM_SYNTAX_UNIFIED__=1 -D__INT_LEAST16_WIDTH__=16 -D__ULLFRACT_MIN__=0.0ULLR -D__SCHAR_MAX__=0x7f -D__WCHAR_MIN__=0U -D__DBL_DIG__=15 -D__GCC_ATOMIC_POINTER_LOCK_FREE=2 -D__LLACCUM_MIN__=(-0X1P31LLK-0X1P31LLK) -D__SIZEOF_INT__=4 -D__SIZEOF_POINTER__=4 -D__USACCUM_IBIT__=8 -D__USER_LABEL_PREFIX__ -D__STDC_HOSTED__=1 -D__LDBL_HAS_INFINITY__=1 -D__LFRACT_MIN__=(-0.5LR-0.5LR) -D__HA_IBIT__=8 -D__FLT32_DIG__=6 -D__TQ_IBIT__=0 -D__FLT_EPSILON__=1.1920928955078125e-7F -D__APCS_32__=1 -D__SHRT_WIDTH__=16 -D__USFRACT_IBIT__=0 -D__LDBL_MIN__=2.2250738585072014e-308L -D__STDC_UTF_16__=1 -D__FRACT_MIN__=(-0.5R-0.5R) -D__DEC32_MAX__=9.999999E96DF -D__DA_IBIT__=32 -D__ARM_SIZEOF_MINIMAL_ENUM=1 -D__FLT32X_HAS_INFINITY__=1 -D__INT32_MAX__=0x7fffffffL -D__UQQ_FBIT__=8 -D__INT_WIDTH__=32 -D__SIZEOF_LONG__=4 -D__UACCUM_MAX__=0XFFFFFFFFP-16UK -D__PTRDIFF_WIDTH__=32 -D__DECIMAL_DIG__=17 -D__LFRACT_EPSILON__=0x1P-31LR -D__FLT64_EPSILON__=2.2204460492503131e-16F64 -D__ULFRACT_MIN__=0.0ULR -D__INTMAX_WIDTH__=64 -D__ARM_PCS_VFP=1 -D__LDBL_HAS_QUIET_NAN__=1 -D__ULACCUM_IBIT__=32 -D__FLT64_MANT_DIG__=53 -D__UACCUM_EPSILON__=0x1P-16UK -D__GNUC__=7 -D__ULLACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULLK -D__HQ_IBIT__=0 -D__FLT_HAS_DENORM__=1 -D__SIZEOF_LONG_DOUBLE__=8 -D__BIGGEST_ALIGNMENT__=8 -D__FLT64_MAX_10_EXP__=308 -D__GNUC_STDC_INLINE__=1 -D__DQ_IBIT__=0 -D__DBL_MAX__=((double)1.7976931348623157e+308L) -D__ULFRACT_IBIT__=0 -D__INT_FAST32_MAX__=0x7fffffff -D__DBL_HAS_INFINITY__=1 -D__ACCUM_IBIT__=16 -D__DEC32_MIN_EXP__=(-94) -D__THUMB_INTERWORK__=1 -D__INTPTR_WIDTH__=32 -D__LACCUM_MAX__=0X7FFFFFFFFFFFFFFFP-31LK -D__FLT32X_HAS_DENORM__=1 -D__INT_FAST16_TYPE__=int -D__LDBL_HAS_DENORM__=1 -D__ARM_FEATURE_LDREX=7 -D__DEC128_MAX__=9.999999999999999999999999999999999E6144DL -D__INT_LEAST32_MAX__=0x7fffffffL -D__DEC32_MIN__=1E-95DF -D__ACCUM_MAX__=0X7FFFFFFFP-15K -D__DBL_MAX_EXP__=1024 -D__USACCUM_EPSILON__=0x1P-8UHK -D__WCHAR_WIDTH__=32 -D__FLT32_MAX__=3.4028234663852886e+38F32 -D__DEC128_EPSILON__=1E-33DL -D__SFRACT_MAX__=0X7FP-7HR -D__FRACT_IBIT__=0 -D__PTRDIFF_MAX__=0x7fffffff -D__UACCUM_MIN__=0.0UK -D__UACCUM_IBIT__=16 -D__FLT32_HAS_QUIET_NAN__=1 -D__LONG_LONG_MAX__=0x7fffffffffffffffLL -D__SIZEOF_SIZE_T__=4 -D__ULACCUM_MAX__=0XFFFFFFFFFFFFFFFFP-32ULK -D__SIZEOF_WINT_T__=4 -D__LONG_LONG_WIDTH__=64 -D__FLT32_MAX_EXP__=128 -D__SA_IBIT__=16 -D__ULLACCUM_MIN__=0.0ULLK -D__GXX_ABI_VERSION=1011 -D__UTA_FBIT__=64 -D__FLT_MIN_EXP__=(-125) -D__USFRACT_MAX__=0XFFP-8UHR -D__UFRACT_IBIT__=0 -D__ARM_FEATURE_QBIT=1 -D__INT_FAST64_TYPE__=long long int -D__FP_FAST_FMAF=1 -D__FLT64_DENORM_MIN__=4.9406564584124654e-324F64 -D__DBL_MIN__=((double)2.2250738585072014e-308L) -D__FLT32X_EPSILON__=2.2204460492503131e-16F32x -D__FLT64_MIN_EXP__=(-1021) -D__LACCUM_MIN__=(-0X1P31LK-0X1P31LK) -D__ULLACCUM_FBIT__=32 -D__GXX_TYPEINFO_EQUALITY_INLINE=0 -D__FLT64_MIN_10_EXP__=(-307) -D__ULLFRACT_EPSILON__=0x1P-64ULLR -D__USES_INITFINI__=1 -D__DEC128_MIN__=1E-6143DL -D__REGISTER_PREFIX__ -D__UINT16_MAX__=0xffff -D__DBL_HAS_DENORM__=1 -D__ACCUM_MIN__=(-0X1P15K-0X1P15K) -D__SQ_IBIT__=0 -D__FLT32_MIN__=1.1754943508222875e-38F32 -D__UINT8_TYPE__=unsigned char -D__UHA_FBIT__=8 -D__NO_INLINE__=1 -D__SFRACT_MIN__=(-0.5HR-0.5HR) -D__UTQ_FBIT__=128 -D__FLT_MANT_DIG__=24 -D__LDBL_DECIMAL_DIG__=17 -D__VERSION__=”7.2.0″ -D__ULLFRACT_FBIT__=64 -D__FRACT_EPSILON__=0x1P-15R -D__ULACCUM_MIN__=0.0ULK -D__UDA_FBIT__=32 -D__LLACCUM_EPSILON__=0x1P-31LLK -D__ARM_FEATURE_FMA=1 -D__GCC_ATOMIC_INT_LOCK_FREE=2 -D__FLT32_MANT_DIG__=24 -D__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__USFRACT_MIN__=0.0UHR -D__UQQ_IBIT__=0 -D__SCHAR_WIDTH__=8 -D__DEC64_EPSILON__=1E-15DD -D__ORDER_PDP_ENDIAN__=3412 -D__DEC128_MIN_EXP__=(-6142) -D__UHQ_FBIT__=16 -D__LLACCUM_FBIT__=31 -D__FLT32_MAX_10_EXP__=38 -D__INT_FAST32_TYPE__=int -D__UINT_LEAST16_TYPE__=short unsigned int -D__INT16_MAX__=0x7fff -D__SIZE_TYPE__=unsigned int -D__UINT64_MAX__=0xffffffffffffffffULL -D__UDQ_FBIT__=64 -D__INT8_TYPE__=signed char -D__thumb__=1 -D__ELF__=1 -D__ULFRACT_EPSILON__=0x1P-32ULR -D__LLFRACT_FBIT__=63 -D__FLT_RADIX__=2 -D__INT_LEAST16_TYPE__=short int -D__ARM_ARCH_PROFILE=77 -D__LDBL_EPSILON__=2.2204460492503131e-16L -D__SACCUM_MAX__=0X7FFFP-7HK -D__SIG_ATOMIC_MAX__=0x7fffffff -D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 -D__VFP_FP__=1 -D__SIZEOF_PTRDIFF_T__=4 -D__FLT32X_MANT_DIG__=53 -D__LACCUM_EPSILON__=0x1P-31LK -D__FLT32X_MIN_EXP__=(-1021) -D__DEC32_SUBNORMAL_MIN__=0.000001E-95DF -D__INT_FAST16_MAX__=0x7fffffff -D__FLT64_DIG__=15 -D__UINT_FAST32_MAX__=0xffffffffU -D__UINT_LEAST64_TYPE__=long long unsigned int -D__USACCUM_MAX__=0XFFFFP-8UHK -D__SFRACT_EPSILON__=0x1P-7HR -D__FLT_HAS_QUIET_NAN__=1 -D__FLT_MAX_10_EXP__=38 -D__LONG_MAX__=0x7fffffffL -D__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL -D__FLT_HAS_INFINITY__=1 -D__USA_FBIT__=16 -D__UINT_FAST16_TYPE__=unsigned int -D__DEC64_MAX__=9.999999999999999E384DD -D__ARM_32BIT_STATE=1 -D__INT_FAST32_WIDTH__=32 -D__CHAR16_TYPE__=short unsigned int -D__PRAGMA_REDEFINE_EXTNAME=1 -D__SIZE_WIDTH__=32 -D__INT_LEAST16_MAX__=0x7fff -D__DEC64_MANT_DIG__=16 -D__INT64_MAX__=0x7fffffffffffffffLL -D__UINT_LEAST32_MAX__=0xffffffffUL -D__SACCUM_FBIT__=7 -D__FLT32_DENORM_MIN__=1.4012984643248171e-45F32 -D__GCC_ATOMIC_LONG_LOCK_FREE=2 -D__SIG_ATOMIC_WIDTH__=32 -D__INT_LEAST64_TYPE__=long long int -D__ARM_FEATURE_CLZ=1 -D__INT16_TYPE__=short int -D__INT_LEAST8_TYPE__=signed char -D__STDC_VERSION__=201112L -D__SQ_FBIT__=31 -D__DEC32_MAX_EXP__=97 -D__ARM_ARCH_ISA_THUMB=2 -D__INT_FAST8_MAX__=0x7fffffff -D__ARM_ARCH=7 -D__INTPTR_MAX__=0x7fffffff -D__QQ_FBIT__=7 -D__UTA_IBIT__=64 -D__FLT64_HAS_QUIET_NAN__=1 -D__FLT32_MIN_10_EXP__=(-37) -D__FLT32X_DIG__=15 -D__LDBL_MANT_DIG__=53 -D__SFRACT_FBIT__=7 -D__SACCUM_MIN__=(-0X1P7HK-0X1P7HK) -D__DBL_HAS_QUIET_NAN__=1 -D__FLT64_HAS_INFINITY__=1 -D__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ – 1) -D__INTPTR_TYPE__=int -D__UINT16_TYPE__=short unsigned int -D__WCHAR_TYPE__=unsigned int -D__SIZEOF_FLOAT__=4 -D__THUMBEL__=1 -D__USQ_FBIT__=32 -D__UINTPTR_MAX__=0xffffffffU -D__INT_FAST64_WIDTH__=64 -D__DEC64_MIN_EXP__=(-382) -D__ULLACCUM_IBIT__=32 -D__FLT32_DECIMAL_DIG__=9 -D__INT_FAST64_MAX__=0x7fffffffffffffffLL -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -D__FLT_DIG__=6 -D__FLT32_HAS_INFINITY__=1 -D__UINT_FAST64_TYPE__=long long unsigned int -D__INT_MAX__=0x7fffffff -D__LACCUM_FBIT__=31 -D__USACCUM_MIN__=0.0UHK -D__UHA_IBIT__=8 -D__INT64_TYPE__=long long int -D__FLT_MAX_EXP__=128 -D__UTQ_IBIT__=0 -D__DBL_MANT_DIG__=53 -D__INT_LEAST64_MAX__=0x7fffffffffffffffLL -D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 -D__DEC64_MIN__=1E-383DD -D__WINT_TYPE__=unsigned int -D__UINT_LEAST32_TYPE__=long unsigned int -D__SIZEOF_SHORT__=2 -D__ULLFRACT_IBIT__=0 -D__LDBL_MIN_EXP__=(-1021) -D__arm__=1 -D__FLT64_MAX__=1.7976931348623157e+308F64 -D__UDA_IBIT__=32 -D__WINT_WIDTH__=32 -D__INT_LEAST8_MAX__=0x7f -D__FLT32X_MAX_10_EXP__=308 -D__LFRACT_FBIT__=31 -D__LDBL_MAX_10_EXP__=308 -D__ATOMIC_RELAXED=0 -D__DBL_EPSILON__=((double)2.2204460492503131e-16L) -D__ARM_ARCH_7EM__=1 -D__ARM_FEATURE_SIMD32=1 -D__FLT64_MAX_EXP__=1024 -D__INT_LEAST32_TYPE__=long int -D__SIZEOF_WCHAR_T__=4 -D__UINT64_TYPE__=long long unsigned int -D__LLFRACT_MAX__=0X7FFFFFFFFFFFFFFFP-63LLR -D__TQ_FBIT__=127 -D__INT_FAST8_TYPE__=int -D__ULLACCUM_EPSILON__=0x1P-32ULLK -D__UHQ_IBIT__=0 -D__LLACCUM_IBIT__=32 -D__FLT64_HAS_DENORM__=1 -D__FLT32_EPSILON__=1.1920928955078125e-7F32 -D__DBL_DECIMAL_DIG__=17 -D__STDC_UTF_32__=1 -D__INT_FAST8_WIDTH__=32 -D__DEC_EVAL_METHOD__=2 -D__FLT32X_MAX__=1.7976931348623157e+308F32x -D__TA_FBIT__=63 -D__UDQ_IBIT__=0 -D__ORDER_BIG_ENDIAN__=4321 -D__ACCUM_EPSILON__=0x1P-15K -D__INTMAX_MAX__=0x7fffffffffffffffLL -D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__FLT_DENORM_MIN__=1.4012984643248171e-45F -D__LLFRACT_IBIT__=0 -D__INT8_MAX__=0x7f -D__LONG_WIDTH__=32 -D__UINT_FAST32_TYPE__=unsigned int -D__CHAR32_TYPE__=long unsigned int -D__FLT_MAX__=3.4028234663852886e+38F -D__USACCUM_FBIT__=8 -D__INT32_TYPE__=long int -D__SIZEOF_DOUBLE__=8 -D__FLT_MIN_10_EXP__=(-37) -D__UFRACT_EPSILON__=0x1P-16UR -D__FLT64_MIN__=2.2250738585072014e-308F64 -D__INT_LEAST32_WIDTH__=32 -D__INTMAX_TYPE__=long long int -D__DEC128_MAX_EXP__=6145 -D__FLT32X_HAS_QUIET_NAN__=1 -D__ATOMIC_CONSUME=1 -D__GNUC_MINOR__=2 -D__INT_FAST16_WIDTH__=32 -D__UINTMAX_MAX__=0xffffffffffffffffULL -D__DEC32_MANT_DIG__=7 -D__FLT32X_DENORM_MIN__=4.9406564584124654e-324F32x -D__HA_FBIT__=7 -D__DBL_MAX_10_EXP__=308 -D__LDBL_DENORM_MIN__=4.9406564584124654e-324L -D__STDC__=1 -D__PTRDIFF_TYPE__=int -D__LLFRACT_MIN__=(-0.5LLR-0.5LLR) -D__ATOMIC_SEQ_CST=5 -D__DA_FBIT__=31 -D__UINT32_TYPE__=long unsigned int -D__FLT32X_MIN_10_EXP__=(-307) -D__ARM_ARCH_EXT_IDIV__=1 -D__UINTPTR_TYPE__=unsigned int -D__USA_IBIT__=16 -D__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD -D__ARM_EABI__=1 -D__DEC128_MANT_DIG__=34 -D__LDBL_MIN_10_EXP__=(-307) -D__SIZEOF_LONG_LONG__=8 -D__ULACCUM_EPSILON__=0x1P-32ULK -D__SACCUM_IBIT__=8 -D__GCC_ATOMIC_LLONG_LOCK_FREE=1 -D__FLT32X_MIN__=2.2250738585072014e-308F32x -D__LDBL_DIG__=15 -D__FLT_DECIMAL_DIG__=9 -D__UINT_FAST16_MAX__=0xffffffffU -D__GCC_ATOMIC_SHORT_LOCK_FREE=2 -D__INT_LEAST64_WIDTH__=64 -D__ULLFRACT_MAX__=0XFFFFFFFFFFFFFFFFP-64ULLR -D__UINT_FAST8_TYPE__=unsigned int -D__USFRACT_EPSILON__=0x1P-8UHR -D__ULACCUM_FBIT__=32 -D__ARM_FEATURE_DSP=1 -D__QQ_IBIT__=0 -D__ATOMIC_ACQ_REL=4 -D__ATOMIC_RELEASE=3 -include C:\Program Files (x86)\Sysprogs\VisualGDB\gcc_compat.h -isystem c:\sysgcc\arm-eabi\lib\gcc\arm-eabi\7.2.0\include -isystem c:\sysgcc\arm-eabi\lib\gcc\arm-eabi\7.2.0\include-fixed -isystem c:\sysgcc\arm-eabi\arm-eabi\sys-include -isystem c:\sysgcc\arm-eabi\arm-eabi\include
September 3, 2018 at 21:48 #21876supportKeymasterHi,
This is by design. Our clang engine automatically strips the options that were not tested for compatibility when applying the raw flags reported by CMake.
There are a few easy workarounds though:
- You could try adding “-fms-extensions” to the VisualGDB Project Properties -> IntelliSense Settings -> CFLAGS/CXXFLAGS.
- You could also try editing the CppEngineTuningInfo.xml file in the VisualGDB directory (add -fms-extensions to RelevantCFLAGPrefixes) and restarting Visual Studio.
Please be advised, that we have not explicitly tested this flag with our engine, so it might cause unexpected side effects.
-
AuthorPosts
- You must be logged in to reply to this topic.