-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage Serviceby designmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state
Description
Feature Request
Looks like the extension does not pick up #define or other preprocessor directives from header files:
(full config below)
Results in grayed out section:
using "defines": ["CONFIG_ENG"] does work:
I'd prefer not to use the "defines" array, because there are many defines and they change from build config to build config and instead I'd love to parse the defines from the autoconf.h.
Is that possible already or would that be a new feature?
Thanks.
full config:
{
"configurations": [
{
"name": "GCC DevContainer",
"cStandard": "c17",
"cppStandard": "gnu++20",
"compilerPath": "/opt/arm-gnu-toolchain-x86_64-arm-none-eabi/13.3.rel1/bin/arm-none-eabi-gcc",
"intelliSenseMode": "linux-gcc-arm",
"compilerArgs": [
"-mcpu=cortex-m4",
"-mthumb",
"-mfloat-abi=hard",
"-mfpu=fpv4-sp-d16",
"-mabi=aapcs",
"-DARM_MATH_CM4",
"-D__FPU_PRESENT=1",
"-ffunction-sections",
"-fdata-sections",
"-fno-strict-aliasing",
"-fno-builtin",
"-fshort-enums",
"-Wno-unused-function",
"-fmerge-all-constants",
"-fomit-frame-pointer",
"-Og",
"-fno-unroll-loops",
"-fno-inline",
"-fno-code-hoisting",
"-fno-strict-aliasing",
"-fno-schedule-insns",
"-fno-schedule-insns2",
"-g"
],
// "defines": ["CONFIG_ENG"],
"forcedInclude": [
"out/autoconf.h"
],
"mergeConfigurations": true,
"includePath": [
"out/"
]
}
],
"version": 4,
"enableConfigurationSquiggles": true
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseAn issue related to configuring the extension or IntelliSenseLanguage Serviceby designmore info neededThe issue report is not actionable in its current stateThe issue report is not actionable in its current state
Type
Projects
Status
No status

