[clang] [clang] Fix false positive with -Wdocumentation and explicit instanti… (PR #178223)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 16 07:18:07 PDT 2026
================
@@ -854,6 +868,19 @@ bool Sema::isTemplateOrSpecialization() {
return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate;
}
+bool Sema::isExplicitInstantiation() {
+ if (!ThisDeclInfo)
+ return false;
+ if (!ThisDeclInfo->IsFilled)
+ inspectThisDecl();
+ if (const auto *FD = dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) {
----------------
carlosgalvezp wrote:
Made it more _explicit_, let me know if it's enough! :)
https://github.com/llvm/llvm-project/pull/178223
More information about the cfe-commits
mailing list