@@ -43,11 +43,6 @@ export function isCompilerParserEnabled(dc?: DeviceContext) {
43
43
*
44
44
* Possible enhancements:
45
45
*
46
- * * Parse c++ standard from arduino command line
47
- *
48
- * Arduino currently sets the C++ standard during compilation with the
49
- * flag -std=gnu++11
50
- *
51
46
* * Order of includes: Perhaps insert the internal includes at the front
52
47
* as at least for the forcedIncludes IntelliSense seems to take the
53
48
* order into account.
@@ -91,14 +86,11 @@ export function makeCompilerParserContext(dc: DeviceContext): ICoCoPaContext {
91
86
arduinoChannel . warning ( "Unable to locate \"Arduino.h\" within IntelliSense include paths." ) ;
92
87
}
93
88
94
- // TODO: check what kind of result we've got: gcc or other architecture:
95
- // and instantiate content accordingly (to be implemented within cocopa)
96
- // -> move result to the parser engine itself
89
+ // The C++ standard is set to the following default value if no compiler flag has been found.
97
90
const content = new ccp . CCppPropertiesContentResult ( runner . result ,
98
91
constants . C_CPP_PROPERTIES_CONFIG_NAME ,
99
92
ccp . CCppPropertiesISMode . Gcc_X64 ,
100
93
ccp . CCppPropertiesCStandard . C11 ,
101
- // as of 1.8.11 arduino is on C++11
102
94
ccp . CCppPropertiesCppStandard . Cpp11 ,
103
95
forcedIncludes ) ;
104
96
try {
@@ -135,7 +127,6 @@ export function makeCompilerParserContext(dc: DeviceContext): ICoCoPaContext {
135
127
* @param dc Current device context used to generate the engines.
136
128
*/
137
129
function makeCompilerParserEngines ( dc : DeviceContext ) {
138
-
139
130
const sketch = path . basename ( dc . sketch ) ;
140
131
const trigger = ccp . getTriggerForArduinoGcc ( sketch ) ;
141
132
const gccParserEngine = new ccp . ParserGcc ( trigger ) ;
0 commit comments