Skip to content

Commit 84b8f32

Browse files
committed
daca: group warnings for prohibited functions
1 parent 2748201 commit 84b8f32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/checkfunctions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ void CheckFunctions::checkProhibitedFunctions()
8585
const Library::WarnInfo* wi = mSettings->library.getWarnInfo(tok);
8686
if (wi) {
8787
if (mSettings->isEnabled(wi->severity) && mSettings->standards.c >= wi->standards.c && mSettings->standards.cpp >= wi->standards.cpp) {
88-
reportError(tok, wi->severity, tok->str() + "Called", wi->message, CWE477, false);
88+
const std::string daca = mSettings->daca ? "prohibited" : "";
89+
reportError(tok, wi->severity, daca + tok->str() + "Called", wi->message, CWE477, false);
8990
}
9091
}
9192
}

0 commit comments

Comments
 (0)