[clang] [clang] Warn on umask() argument bits outside 0777 (PR #198130)
Denys Fedoryshchenko via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 10:40:30 PDT 2026
================
@@ -1490,6 +1490,49 @@ void Sema::checkFortifiedBuiltinMemoryFunction(FunctionDecl *FD,
<< FunctionName << DestinationStr << SourceStr);
}
+void Sema::checkFortifiedLibcArgument(FunctionDecl *FD, CallExpr *TheCall) {
+ if (TheCall->isValueDependent() || TheCall->isTypeDependent() ||
+ isConstantEvaluatedContext())
----------------
nuclearcat wrote:
There's no good reason. :(
I modeled this function on checkFortifiedBuiltinMemoryFunction and copied its guard line without thinking it well through. Will fix that.
https://github.com/llvm/llvm-project/pull/198130
More information about the cfe-commits
mailing list