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 eac5105 commit 24dda4dCopy full SHA for 24dda4d
clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
@@ -186,7 +186,7 @@ void UnusedUsingDeclsCheck::check(const MatchFinder::MatchResult &Result) {
186
// Check user-defined literals
187
if (const auto *UDL = Result.Nodes.getNodeAs<UserDefinedLiteral>("used")) {
188
const Decl *CalleeDecl = UDL->getCalleeDecl();
189
- if (const auto *FD = dyn_cast<FunctionDecl>(UDL->getCalleeDecl())) {
+ if (const auto *FD = dyn_cast<FunctionDecl>(CalleeDecl)) {
190
if (const FunctionTemplateDecl *FPT = FD->getPrimaryTemplate()) {
191
removeFromFoundDecls(FPT);
192
return;
0 commit comments