Bug: Why IDE shows pointers are 8 bytes when my processor is 32 bits?

Why pointer are 8 bytes when my processor is 32 bits?

Why following

		static_assert(sizeof(void*) == 8);
		static_assert(sizeof(int*) == 8);
		static_assert(sizeof(const char*) == 8);

is true?

My platformio.ini:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
board_build.f_flash = 80000000L
framework = arduino
monitor_speed = 115200
monitor_filters = 
	esp8266_exception_decoder
	log2file
build_type = debug
lib_deps = 
	enjoyneering/LiquidCrystal_I2C@^1.2.4
	northernwidget/DS3231@^1.1.0
	milesburton/DallasTemperature@^3.9.1
	paulstoffregen/OneWire@^2.3.6

I can add "intelliSenseMode": "windows-gcc-x86" to the c_cpp_properties.json and it helps, but it gets overwritten by PlatformIO all the time.

All is normal.

Hm, so the firmware is built correctly, but a static assert for size 4 indeed fails in the VSCode intellisense.

I guess something is wrong on Microsoft’s "Intelli"Sense part…

This bug is now tracked in IntelliSense does not support some data type sizes for compiler xtensa-lx106-elf-gcc.exe · Issue #9765 · microsoft/vscode-cpptools · GitHub.