We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86aab93 commit 52b9826Copy full SHA for 52b9826
clang-tools-extra/clang-tidy/bugprone/UnsafeFormatStringCheck.cpp
@@ -116,7 +116,7 @@ void UnsafeFormatStringCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
116
117
const StringLiteral *UnsafeFormatStringCheck::getFormatLiteral(
118
const CallExpr *Call, const std::vector<CheckedFunction> &CustomFunctions) {
119
- const FunctionDecl *FD = cast<FunctionDecl>(Call->getDirectCallee());
+ auto *FD = cast<FunctionDecl>(Call->getDirectCallee());
120
if (!FD)
121
return nullptr;
122
for (const auto &Entry : CustomFunctions) {
0 commit comments