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 6dfe555 commit b1aa7cdCopy full SHA for b1aa7cd
clang/lib/Sema/Sema.cpp
@@ -825,7 +825,7 @@ void Sema::getUndefinedButUsed(
825
continue;
826
}
827
828
- if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
+ if (const auto *FD = dyn_cast<FunctionDecl>(ND)) {
829
if (FD->isDefined())
830
831
if (FD->isExternallyVisible() &&
@@ -836,7 +836,7 @@ void Sema::getUndefinedButUsed(
836
if (FD->getBuiltinID())
837
838
} else {
839
- auto *VD = cast<VarDecl>(ND);
+ const auto *VD = cast<VarDecl>(ND);
840
if (VD->hasDefinition() != VarDecl::DeclarationOnly)
841
842
if (VD->isExternallyVisible() &&
0 commit comments