IntelliSense/cpptools malfunctioning, eating up my processor

I must have something misconfigured…

MacOS, Mojave (10.14.6)

When running VS Code with platformio, for some projects cpptools will eat the processor, way more than it ought to (around 30-40% of the CPU, heating, draining battery).

At the bottom of the VS Code window, the information bar will flash “PlatformIO: IntelliSense index rebuild” about every five seconds. I could understand it doing a rebuild every now and then, but it appears that it’s not doing what it thinks it’s doing.

Perhaps the issue is related to this issue: ESP32: Can't find Preferences.h

In that issue, I was building a project based on some ESP32 libraries that aren’t including correctly (the compiler/library manager requires explicit #includes to function). When I build a similarly structured project, but on a Leonardo platform, I don’t see the problem. So, my working theory is that the libraries are not being found by IntelliSense and it keeps trying over and over.

So…any pointers to help me figure out how to further investigate the libraries and how I might configure the system would be appreciated.

Just an idea - not really sure whether it’s the same problem.

I have made a similar observation with a project using ArduinoJson. If I call pio check in this project, cpptools seems to fall into an endless loop, one core of the cpu is permanently at 100% and the process running cpptools swallows the whole memory and the PC freezes :open_mouth: unless you kill the process quick enough.

There is an open ticket at github for this problem

Following along with that ticket, I ran >pio check on my project. It failed at first but with the --verbose option, the output is crazy long, but this editor puts everything on one line, so I’ll leave it in in its entirety.

Why does it say the platform is unspecified? I have it specified in my .ini file.

Gregs-MacBook-Pro:MotorTest greg$ pio check
Checking featheresp32 > cppcheck (framework: arduino; platform: espressif32; board: featheresp32)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: cppcheck failed to perform check! Please examine tool output in verbose mode.
==================================================================== [FAILED] Took 0.63 seconds ====================================================================

Environment    Tool      Status    Duration
-------------  --------  --------  ------------
featheresp32   cppcheck  FAILED    00:00:00.632
=============================================================== 1 failed, 0 succeeded in 00:00:00.632 ===============================================================
Gregs-MacBook-Pro:MotorTest greg$ pio check --verbose
Checking featheresp32 > cppcheck (framework: arduino; platform: espressif32; board: featheresp32)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
/Users/greg/.platformio/packages/tool-cppcheck/cppcheck --error-exitcode=1 --verbose --template="severity={severity}<&PIO&>message={message}<&PIO&>file={file}<&PIO&>line={line}<&PIO&>column={column}<&PIO&>callstack={callstack}<&PIO&>cwe={cwe}<&PIO&>id={id}" --inline-suppr --platform=unspecified --enable=warning,style,performance,portability,unusedFunction --language=c++ --std=c++11 -DPLATFORMIO=40304 -DARDUINO_FEATHER_ESP32 -DESP32 -DESP_PLATFORM -DF_CPU=240000000L -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DARDUINO=10805 -DARDUINO_ARCH_ESP32 -DARDUINO_VARIANT="feather_esp32" -DARDUINO_BOARD="Adafruit ESP32 Feather" -D__DBL_MIN_EXP__=(-1021) -D__UINT_LEAST16_MAX__=0xffff -D__ATOMIC_ACQUIRE=2 -D__FLT_MIN__=1.1754943508222875e-38F -D__GCC_IEC_559_COMPLEX=0 -D__UINT_LEAST8_TYPE__=unsigned char -D__INTMAX_C(c)=c ## LL -D__CHAR_BIT__=8 -D__UINT8_MAX__=0xff -D__WINT_MAX__=0xffffffffU -D__ORDER_LITTLE_ENDIAN__=1234 -D__SIZE_MAX__=0xffffffffU -D__WCHAR_MAX__=0xffff -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__FLT_EVAL_METHOD__=0 -D__cpp_binary_literals=201304 -D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 -D__UINT_FAST64_MAX__=0xffffffffffffffffULL -D__SIG_ATOMIC_TYPE__=int -D__DBL_MIN_10_EXP__=(-307) -D__FINITE_MATH_ONLY__=0 -D__GNUC_PATCHLEVEL__=0 -D__UINT_FAST8_MAX__=0xffffffffU -D__has_include(STR)=__has_include__(STR) -D__DEC64_MAX_EXP__=385 -D__INT8_C(c)=c -D__UINT_LEAST64_MAX__=0xffffffffffffffffULL -D__SHRT_MAX__=0x7fff -D__LDBL_MAX__=1.7976931348623157e+308L -D__UINT_LEAST8_MAX__=0xff -D__GCC_ATOMIC_BOOL_LOCK_FREE=2 -D__UINTMAX_TYPE__=long long unsigned int -D__DEC32_EPSILON__=1E-6DF -D__CHAR_UNSIGNED__=1 -D__UINT32_MAX__=0xffffffffUL -D__LDBL_MAX_EXP__=1024 -D__WINT_MIN__=0U -D__SCHAR_MAX__=0x7f -D__WCHAR_MIN__=0 -D__INT64_C(c)=c ## LL -D__DBL_DIG__=15 -D__GCC_ATOMIC_POINTER_LOCK_FREE=2 -D__SIZEOF_INT__=4 -D__SIZEOF_POINTER__=4 -D__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 -D__USER_LABEL_PREFIX__ -D__STDC_HOSTED__=1 -D__LDBL_HAS_INFINITY__=1 -D__XTENSA_EL__=1 -D__FLT_EPSILON__=1.1920928955078125e-7F -D__GXX_WEAK__=1 -D__LDBL_MIN__=2.2250738585072014e-308L -D__DEC32_MAX__=9.999999E96DF -D__INT32_MAX__=0x7fffffffL -D__SIZEOF_LONG__=4 -D__UINT16_C(c)=c -D__DECIMAL_DIG__=17 -D__has_include_next(STR)=__has_include_next__(STR) -D__LDBL_HAS_QUIET_NAN__=1 -D__GNUC__=5 -D__FLT_HAS_DENORM__=1 -D__SIZEOF_LONG_DOUBLE__=8 -D__BIGGEST_ALIGNMENT__=16 -D__DBL_MAX__=double(1.7976931348623157e+308L) -D__INT_FAST32_MAX__=0x7fffffff -D__DBL_HAS_INFINITY__=1 -D__INT64_MAX__=0x7fffffffffffffffLL -D__DEC32_MIN_EXP__=(-94) -D__INT_FAST16_TYPE__=int -D__LDBL_HAS_DENORM__=1 -D__cplusplus=199711L -D__DEC128_MAX__=9.999999999999999999999999999999999E6144DL -D__INT_LEAST32_MAX__=0x7fffffffL -D__DEC32_MIN__=1E-95DF -D__DEPRECATED=1 -D__DBL_MAX_EXP__=1024 -D__DEC128_EPSILON__=1E-33DL -D__PTRDIFF_MAX__=0x7fffffff -D__GNUG__=5 -D__LONG_LONG_MAX__=0x7fffffffffffffffLL -D__SIZEOF_SIZE_T__=4 -D__SIZEOF_WINT_T__=4 -D__GXX_ABI_VERSION=1009 -D__FLT_MIN_EXP__=(-125) -D__INT_FAST64_TYPE__=long long int -D__FP_FAST_FMAF=1 -D__DBL_MIN__=double(2.2250738585072014e-308L) -D__FLT_MIN_10_EXP__=(-37) -D__DEC128_MIN__=1E-6143DL -D__REGISTER_PREFIX__ -D__UINT16_MAX__=0xffff -D__DBL_HAS_DENORM__=1 -D__UINT8_TYPE__=unsigned char -D__NO_INLINE__=1 -D__FLT_MANT_DIG__=24 -D__VERSION__="5.2.0" -D__UINT64_C(c)=c ## ULL -D__GCC_ATOMIC_INT_LOCK_FREE=2 -D__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__INT32_C(c)=c ## L -D__DEC64_EPSILON__=1E-15DD -D__ORDER_PDP_ENDIAN__=3412 -D__DEC128_MIN_EXP__=(-6142) -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__INT8_TYPE__=signed char -D__ELF__=1 -D__xtensa__=1 -D__FLT_RADIX__=2 -D__INT_LEAST16_TYPE__=short int -D__LDBL_EPSILON__=2.2204460492503131e-16L -D__UINTMAX_C(c)=c ## ULL -D__SIG_ATOMIC_MAX__=0x7fffffff -D__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 -D__SIZEOF_PTRDIFF_T__=4 -D__DEC32_SUBNORMAL_MIN__=0.000001E-95DF -D__INT_FAST16_MAX__=0x7fffffff -D__UINT_FAST32_MAX__=0xffffffffU -D__UINT_LEAST64_TYPE__=long long unsigned int -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__UINT_FAST16_TYPE__=unsigned int -D__DEC64_MAX__=9.999999999999999E384DD -D__CHAR16_TYPE__=short unsigned int -D__PRAGMA_REDEFINE_EXTNAME=1 -D__INT_LEAST16_MAX__=0x7fff -D__DEC64_MANT_DIG__=16 -D__UINT_LEAST32_MAX__=0xffffffffUL -D__GCC_ATOMIC_LONG_LOCK_FREE=2 -D__INT_LEAST64_TYPE__=long long int -D__INT16_TYPE__=short int -D__INT_LEAST8_TYPE__=signed char -D__DEC32_MAX_EXP__=97 -D__INT_FAST8_MAX__=0x7fffffff -D__INTPTR_MAX__=0x7fffffff -D__EXCEPTIONS=1 -D__LDBL_MANT_DIG__=53 -D__DBL_HAS_QUIET_NAN__=1 -D__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) -D__INTPTR_TYPE__=int -D__UINT16_TYPE__=short unsigned int -D__WCHAR_TYPE__=short unsigned int -D__SIZEOF_FLOAT__=4 -D__UINTPTR_MAX__=0xffffffffU -D__DEC64_MIN_EXP__=(-382) -D__INT_FAST64_MAX__=0x7fffffffffffffffLL -D__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -D__FLT_DIG__=6 -D__UINT_FAST64_TYPE__=long long unsigned int -D__INT_MAX__=0x7fffffff -D__INT64_TYPE__=long long int -D__FLT_MAX_EXP__=128 -D__DBL_MANT_DIG__=53 -D__INT_LEAST64_MAX__=0x7fffffffffffffffLL -D__DEC64_MIN__=1E-383DD -D__WINT_TYPE__=unsigned int -D__UINT_LEAST32_TYPE__=long unsigned int -D__SIZEOF_SHORT__=2 -D__LDBL_MIN_EXP__=(-1021) -D__INT_LEAST8_MAX__=0x7f -D__SSP__=1 -D__WCHAR_UNSIGNED__=1 -D__LDBL_MAX_10_EXP__=308 -D__ATOMIC_RELAXED=0 -D__DBL_EPSILON__=double(2.2204460492503131e-16L) -D__XTENSA_WINDOWED_ABI__=1 -D__UINT8_C(c)=c -D__INT_LEAST32_TYPE__=long int -D__SIZEOF_WCHAR_T__=2 -D__UINT64_TYPE__=long long unsigned int -D__INT_FAST8_TYPE__=int -D__DBL_DECIMAL_DIG__=17 -D__DEC_EVAL_METHOD__=2 -D__XTENSA__=1 -D__ORDER_BIG_ENDIAN__=4321 -D__cpp_runtime_arrays=198712 -D__UINT32_C(c)=c ## UL -D__INTMAX_MAX__=0x7fffffffffffffffLL -D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__FLT_DENORM_MIN__=1.4012984643248171e-45F -D__INT8_MAX__=0x7f -D__UINT_FAST32_TYPE__=unsigned int -D__CHAR32_TYPE__=long unsigned int -D__FLT_MAX__=3.4028234663852886e+38F -D__INT32_TYPE__=long int -D__SIZEOF_DOUBLE__=8 -D__cpp_exceptions=199711 -D__INTMAX_TYPE__=long long int -D__DEC128_MAX_EXP__=6145 -D__ATOMIC_CONSUME=1 -D__GNUC_MINOR__=2 -D__UINTMAX_MAX__=0xffffffffffffffffULL -D__DEC32_MANT_DIG__=7 -D__DBL_MAX_10_EXP__=308 -D__LDBL_DENORM_MIN__=4.9406564584124654e-324L -D__INT16_C(c)=c -D__STDC__=1 -D__PTRDIFF_TYPE__=int -D__ATOMIC_SEQ_CST=5 -D__UINT32_TYPE__=long unsigned int -D__UINTPTR_TYPE__=unsigned int -D__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD -D__DEC128_MANT_DIG__=34 -D__LDBL_MIN_10_EXP__=(-307) -D__SIZEOF_LONG_LONG__=8 -D__GCC_ATOMIC_LLONG_LOCK_FREE=1 -D__LDBL_DIG__=15 -D__FLT_DECIMAL_DIG__=9 -D__UINT_FAST16_MAX__=0xffffffffU -D__GNUC_GNU_INLINE__=1 -D__GCC_ATOMIC_SHORT_LOCK_FREE=2 -D__UINT_FAST8_TYPE__=unsigned int -D__ATOMIC_ACQ_REL=4 -D__ATOMIC_RELEASE=3 --file-list=/var/folders/gh/fjdgsc5s28d75wlv2f2283900000gn/T/tmpDO5Hit --includes-file=/var/folders/gh/fjdgsc5s28d75wlv2f2283900000gn/T/tmpYJq0H7
Checking /Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/src/MotorTest.cpp ...

Defines:PLATFORMIO=40304;ARDUINO_FEATHER_ESP32=1;ESP32=1;ESP_PLATFORM=1;F_CPU=240000000L;HAVE_CONFIG_H=1;MBEDTLS_CONFIG_FILE="mbedtls/esp_config.h";ARDUINO=10805;ARDUINO_ARCH_ESP32=1;ARDUINO_VARIANT="feather_esp32";ARDUINO_BOARD="Adafruit ESP32 Feather";__DBL_MIN_EXP__=(-1021);__UINT_LEAST16_MAX__=0xffff;__ATOMIC_ACQUIRE=2;__FLT_MIN__=1.1754943508222875e-38F;__GCC_IEC_559_COMPLEX=0;__UINT_LEAST8_TYPE__=unsigned char;__INTMAX_C(c)=c ## LL;__CHAR_BIT__=8;__UINT8_MAX__=0xff;__WINT_MAX__=0xffffffffU;__ORDER_LITTLE_ENDIAN__=1234;__SIZE_MAX__=0xffffffffU;__WCHAR_MAX__=0xffff;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1;__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1;__DBL_DENORM_MIN__=double(4.9406564584124654e-324L);__GCC_ATOMIC_CHAR_LOCK_FREE=2;__GCC_IEC_559=0;__FLT_EVAL_METHOD__=0;__cpp_binary_literals=201304;__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2;__UINT_FAST64_MAX__=0xffffffffffffffffULL;__SIG_ATOMIC_TYPE__=int;__DBL_MIN_10_EXP__=(-307);__FINITE_MATH_ONLY__=0;__GNUC_PATCHLEVEL__=0;__UINT_FAST8_MAX__=0xffffffffU;__has_include(STR)=__has_include__(STR);__DEC64_MAX_EXP__=385;__INT8_C(c)=c;__UINT_LEAST64_MAX__=0xffffffffffffffffULL;__SHRT_MAX__=0x7fff;__LDBL_MAX__=1.7976931348623157e+308L;__UINT_LEAST8_MAX__=0xff;__GCC_ATOMIC_BOOL_LOCK_FREE=2;__UINTMAX_TYPE__=long long unsigned int;__DEC32_EPSILON__=1E-6DF;__CHAR_UNSIGNED__=1;__UINT32_MAX__=0xffffffffUL;__LDBL_MAX_EXP__=1024;__WINT_MIN__=0U;__SCHAR_MAX__=0x7f;__WCHAR_MIN__=0;__INT64_C(c)=c ## LL;__DBL_DIG__=15;__GCC_ATOMIC_POINTER_LOCK_FREE=2;__SIZEOF_INT__=4;__SIZEOF_POINTER__=4;__GCC_ATOMIC_CHAR16_T_LOCK_FREE=2;__USER_LABEL_PREFIX__=1;__STDC_HOSTED__=1;__LDBL_HAS_INFINITY__=1;__XTENSA_EL__=1;__FLT_EPSILON__=1.1920928955078125e-7F;__GXX_WEAK__=1;__LDBL_MIN__=2.2250738585072014e-308L;__DEC32_MAX__=9.999999E96DF;__INT32_MAX__=0x7fffffffL;__SIZEOF_LONG__=4;__UINT16_C(c)=c;__DECIMAL_DIG__=17;__has_include_next(STR)=__has_include_next__(STR);__LDBL_HAS_QUIET_NAN__=1;__GNUC__=5;__FLT_HAS_DENORM__=1;__SIZEOF_LONG_DOUBLE__=8;__BIGGEST_ALIGNMENT__=16;__DBL_MAX__=double(1.7976931348623157e+308L);__INT_FAST32_MAX__=0x7fffffff;__DBL_HAS_INFINITY__=1;__INT64_MAX__=0x7fffffffffffffffLL;__DEC32_MIN_EXP__=(-94);__INT_FAST16_TYPE__=int;__LDBL_HAS_DENORM__=1;__cplusplus=199711L;__DEC128_MAX__=9.999999999999999999999999999999999E6144DL;__INT_LEAST32_MAX__=0x7fffffffL;__DEC32_MIN__=1E-95DF;__DEPRECATED=1;__DBL_MAX_EXP__=1024;__DEC128_EPSILON__=1E-33DL;__PTRDIFF_MAX__=0x7fffffff;__GNUG__=5;__LONG_LONG_MAX__=0x7fffffffffffffffLL;__SIZEOF_SIZE_T__=4;__SIZEOF_WINT_T__=4;__GXX_ABI_VERSION=1009;__FLT_MIN_EXP__=(-125);__INT_FAST64_TYPE__=long long int;__FP_FAST_FMAF=1;__DBL_MIN__=double(2.2250738585072014e-308L);__FLT_MIN_10_EXP__=(-37);__DEC128_MIN__=1E-6143DL;__REGISTER_PREFIX__=1;__UINT16_MAX__=0xffff;__DBL_HAS_DENORM__=1;__UINT8_TYPE__=unsigned char;__NO_INLINE__=1;__FLT_MANT_DIG__=24;__VERSION__="5.2.0";__UINT64_C(c)=c ## ULL;__GCC_ATOMIC_INT_LOCK_FREE=2;__FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__;__INT32_C(c)=c ## L;__DEC64_EPSILON__=1E-15DD;__ORDER_PDP_ENDIAN__=3412;__DEC128_MIN_EXP__=(-6142);__INT_FAST32_TYPE__=int;__UINT_LEAST16_TYPE__=short unsigned int;__INT16_MAX__=0x7fff;__SIZE_TYPE__=unsigned int;__UINT64_MAX__=0xffffffffffffffffULL;__INT8_TYPE__=signed char;__ELF__=1;__xtensa__=1;__FLT_RADIX__=2;__INT_LEAST16_TYPE__=short int;__LDBL_EPSILON__=2.2204460492503131e-16L;__UINTMAX_C(c)=c ## ULL;__SIG_ATOMIC_MAX__=0x7fffffff;__GCC_ATOMIC_WCHAR_T_LOCK_FREE=2;__SIZEOF_PTRDIFF_T__=4;__DEC32_SUBNORMAL_MIN__=0.000001E-95DF;__INT_FAST16_MAX__=0x7fffffff;__UINT_FAST32_MAX__=0xffffffffU;__UINT_LEAST64_TYPE__=long long unsigned int;__FLT_HAS_QUIET_NAN__=1;__FLT_MAX_10_EXP__=38;__LONG_MAX__=0x7fffffffL;__DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL;__FLT_HAS_INFINITY__=1;__UINT_FAST16_TYPE__=unsigned int;__DEC64_MAX__=9.999999999999999E384DD;__CHAR16_TYPE__=short unsigned int;__PRAGMA_REDEFINE_EXTNAME=1;__INT_LEAST16_MAX__=0x7fff;__DEC64_MANT_DIG__=16;__UINT_LEAST32_MAX__=0xffffffffUL;__GCC_ATOMIC_LONG_LOCK_FREE=2;__INT_LEAST64_TYPE__=long long int;__INT16_TYPE__=short int;__INT_LEAST8_TYPE__=signed char;__DEC32_MAX_EXP__=97;__INT_FAST8_MAX__=0x7fffffff;__INTPTR_MAX__=0x7fffffff;__EXCEPTIONS=1;__LDBL_MANT_DIG__=53;__DBL_HAS_QUIET_NAN__=1;__SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1);__INTPTR_TYPE__=int;__UINT16_TYPE__=short unsigned int;__WCHAR_TYPE__=short unsigned int;__SIZEOF_FLOAT__=4;__UINTPTR_MAX__=0xffffffffU;__DEC64_MIN_EXP__=(-382);__INT_FAST64_MAX__=0x7fffffffffffffffLL;__GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1;__FLT_DIG__=6;__UINT_FAST64_TYPE__=long long unsigned int;__INT_MAX__=0x7fffffff;__INT64_TYPE__=long long int;__FLT_MAX_EXP__=128;__DBL_MANT_DIG__=53;__INT_LEAST64_MAX__=0x7fffffffffffffffLL;__DEC64_MIN__=1E-383DD;__WINT_TYPE__=unsigned int;__UINT_LEAST32_TYPE__=long unsigned int;__SIZEOF_SHORT__=2;__LDBL_MIN_EXP__=(-1021);__INT_LEAST8_MAX__=0x7f;__SSP__=1;__WCHAR_UNSIGNED__=1;__LDBL_MAX_10_EXP__=308;__ATOMIC_RELAXED=0;__DBL_EPSILON__=double(2.2204460492503131e-16L);__XTENSA_WINDOWED_ABI__=1;__UINT8_C(c)=c;__INT_LEAST32_TYPE__=long int;__SIZEOF_WCHAR_T__=2;__UINT64_TYPE__=long long unsigned int;__INT_FAST8_TYPE__=int;__DBL_DECIMAL_DIG__=17;__DEC_EVAL_METHOD__=2;__XTENSA__=1;__ORDER_BIG_ENDIAN__=4321;__cpp_runtime_arrays=198712;__UINT32_C(c)=c ## UL;__INTMAX_MAX__=0x7fffffffffffffffLL;__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__;__FLT_DENORM_MIN__=1.4012984643248171e-45F;__INT8_MAX__=0x7f;__UINT_FAST32_TYPE__=unsigned int;__CHAR32_TYPE__=long unsigned int;__FLT_MAX__=3.4028234663852886e+38F;__INT32_TYPE__=long int;__SIZEOF_DOUBLE__=8;__cpp_exceptions=199711;__INTMAX_TYPE__=long long int;__DEC128_MAX_EXP__=6145;__ATOMIC_CONSUME=1;__GNUC_MINOR__=2;__UINTMAX_MAX__=0xffffffffffffffffULL;__DEC32_MANT_DIG__=7;__DBL_MAX_10_EXP__=308;__LDBL_DENORM_MIN__=4.9406564584124654e-324L;__INT16_C(c)=c;__STDC__=1;__PTRDIFF_TYPE__=int;__ATOMIC_SEQ_CST=5;__UINT32_TYPE__=long unsigned int;__UINTPTR_TYPE__=unsigned int;__DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD;__DEC128_MANT_DIG__=34;__LDBL_MIN_10_EXP__=(-307);__SIZEOF_LONG_LONG__=8;__GCC_ATOMIC_LLONG_LOCK_FREE=1;__LDBL_DIG__=15;__FLT_DECIMAL_DIG__=9;__UINT_FAST16_MAX__=0xffffffffU;__GNUC_GNU_INLINE__=1;__GCC_ATOMIC_SHORT_LOCK_FREE=2;__UINT_FAST8_TYPE__=unsigned int;__ATOMIC_ACQ_REL=4;__ATOMIC_RELEASE=3

Undefines:

Includes: -I/Users/greg/Documents/PlatformIO/lib/RBE1001Lib/src/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/.pio/libdeps/featheresp32/ESP32AnalogRead/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/.pio/libdeps/featheresp32/ESP32Encoder/src/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/.pio/libdeps/featheresp32/ESP32Servo/src/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/.pio/libdeps/featheresp32/Esp32WifiManager/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/ESPmDNS/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/FS/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/Preferences/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/WebServer/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/WiFi/src/ -I/Users/greg/Documents/PlatformIO/lib/romi-32u4-arduino-library/ -I/Users/greg/.platformio/lib/RFM69/ -I/Users/greg/.platformio/lib/SPIFlash/ -I/Users/greg/.platformio/lib/Servo_ID883/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/ArduinoOTA/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/AsyncUDP/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/AzureIoT/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/BLE/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/BluetoothSerial/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/DNSServer/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/EEPROM/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/ESP32/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/FFat/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/HTTPClient/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/HTTPUpdate/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/NetBIOS/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/SD/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/SD_MMC/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/SPIFFS/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/SimpleBLE/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/Ticker/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/Update/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/WiFiClientSecure/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/ -I/Users/greg/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/ -I/Users/greg/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/ -I/Users/greg/.platformio/packages/toolchain-xtensa32/lib/gcc/xtensa-esp32-elf/5.2.0/include/ -I/Users/greg/.platformio/packages/toolchain-xtensa32/lib/gcc/xtensa-esp32-elf/5.2.0/include-fixed/ -I/Users/greg/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/include/ -I/Users/greg/Documents/PlatformIO/Projects/Romi1001/MotorTest/src/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/config/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_trace/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/app_update/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/asio/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/bootloader_support/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/bt/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/coap/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/console/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/driver/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp-tls/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp32/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_adc_cal/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_event/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_http_client/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_http_server/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_https_ota/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp_ringbuf/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/ethernet/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/expat/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fatfs/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freemodbus/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/freertos/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/heap/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/idf_test/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/jsmn/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/json/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/libsodium/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/log/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mbedtls/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mdns/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/micro-ecc/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/mqtt/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/newlib/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/nghttp/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/nvs_flash/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/openssl/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/protobuf-c/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/protocomm/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/pthread/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/sdmmc/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/smartconfig_ack/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/soc/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/spi_flash/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/spiffs/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/tcp_transport/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/tcpip_adapter/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/ulp/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/vfs/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wear_levelling/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wifi_provisioning/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/wpa_supplicant/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/xtensa-debug-module/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp-face/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/esp32-camera/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/fb_gfx/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/cores/esp32/ -I/Users/greg/.platformio/packages/framework-arduinoespressif32/variants/feather_esp32/ -I/Users/greg/.platformio/packages/tool-unity/

Platform:Unspecified

"severity=error<&PIO&>message=ISO C++ 2011 standard. This support is currently experimental, and must be \

enabled with the -std=c++11 or -std=gnu++11 compiler options.<&PIO&>file=/Users/greg/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/c++0x_warning.h<&PIO&>line=32<&PIO&>column=0<&PIO&>callstack=[/Users/greg/.platformio/packages/toolchain-xtensa32/xtensa-esp32-elf/include/c++/5.2.0/bits/c++0x_warning.h:32]<&PIO&>cwe=0<&PIO&>id=preprocessorErrorDirective"


No defects found
==================================================================== [PASSED] Took 0.64 seconds ====================================================================

Environment    Tool      Status    Duration
-------------  --------  --------  ------------
featheresp32   cppcheck  PASSED    00:00:00.643
==================================================================== 1 succeeded in 00:00:00.643 ====================================================================
Gregs-MacBook-Pro:MotorTest greg$