Skip to content

Commit 52b9826

Browse files
committed
Fix linter error
1 parent 86aab93 commit 52b9826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/UnsafeFormatStringCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void UnsafeFormatStringCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) {
116116

117117
const StringLiteral *UnsafeFormatStringCheck::getFormatLiteral(
118118
const CallExpr *Call, const std::vector<CheckedFunction> &CustomFunctions) {
119-
const FunctionDecl *FD = cast<FunctionDecl>(Call->getDirectCallee());
119+
auto *FD = cast<FunctionDecl>(Call->getDirectCallee());
120120
if (!FD)
121121
return nullptr;
122122
for (const auto &Entry : CustomFunctions) {

0 commit comments

Comments
 (0)