Skip to content

Commit 225b999

Browse files
committed
fix #39/remove references to extension property standard
1 parent c37c056 commit 225b999

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/extension.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export function activate(context: vscode.ExtensionContext) {
113113
const isEnabled = config.get<boolean>("cppcheck-official.enable", true);
114114
const extraArgs = config.get<string>("cppcheck-official.arguments", "");
115115
const minSevString = config.get<string>("cppcheck-official.minSeverity", "info");
116-
const standard = config.get<string>("cppcheck-official.standard", "c++20");
117116
const userPath = config.get<string>("cppcheck-official.path")?.trim() || "";
118117
const commandPath = userPath ? resolvePath(userPath) : "cppcheck";
119118

@@ -139,7 +138,6 @@ export function activate(context: vscode.ExtensionContext) {
139138
commandPath,
140139
extraArgs,
141140
minSevString,
142-
standard,
143141
diagnosticCollection
144142
);
145143
}
@@ -190,7 +188,6 @@ async function runCppcheckOnFileXML(
190188
commandPath: string,
191189
extraArgs: string,
192190
minSevString: string,
193-
standard: string,
194191
diagnosticCollection: vscode.DiagnosticCollection
195192
): Promise<void> {
196193
// Clear existing diagnostics for this file
@@ -199,7 +196,6 @@ async function runCppcheckOnFileXML(
199196
// Replace backslashes (used in paths in Windows environment)
200197
const filePath = document.fileName.replaceAll('\\', '/');
201198
const minSevNum = parseMinSeverity(minSevString);
202-
const standardArg = standard !== "<none>" ? `--std=${standard}` : "";
203199

204200
// Resolve paths for arguments where applicable
205201
const extraArgsParsed = (extraArgs.split(" ")).map((arg) => {
@@ -220,7 +216,6 @@ async function runCppcheckOnFileXML(
220216
'--suppress=missingInclude',
221217
'--suppress=missingIncludeSystem',
222218
`--file-filter=${filePath}`,
223-
standardArg,
224219
...extraArgsParsed,
225220
].filter(Boolean);
226221
proc = cp.spawn(commandPath, args, {
@@ -234,7 +229,6 @@ async function runCppcheckOnFileXML(
234229
'--suppress=unusedFunction',
235230
'--suppress=missingInclude',
236231
'--suppress=missingIncludeSystem',
237-
standardArg,
238232
...extraArgsParsed,
239233
filePath,
240234
].filter(Boolean);

0 commit comments

Comments
 (0)