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 a1d31ca commit c876d71Copy full SHA for c876d71
clang/include/clang/Sema/SemaInternal.h
@@ -58,7 +58,7 @@ inline InheritableAttr *getDLLAttr(Decl *D) {
58
}
59
60
/// Retrieve the depth and index of a template parameter.
61
-inline std::pair<unsigned, unsigned> getDepthAndIndex(NamedDecl *ND) {
+inline std::pair<unsigned, unsigned> getDepthAndIndex(const NamedDecl *ND) {
62
if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(ND))
63
return std::make_pair(TTP->getDepth(), TTP->getIndex());
64
0 commit comments