From f395fd6c99ed76633f4eecbc930ba0b303a4fca5 Mon Sep 17 00:00:00 2001
From: Daniel Arndt <arndtd@ornl.gov>
Date: Sat, 3 Aug 2024 11:53:05 -0400
Subject: [PATCH] Guard explicit template instantiations from doxygen

---
 source/base/index_set.cc | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/source/base/index_set.cc b/source/base/index_set.cc
index 9d8a7c801c..7330f79cfe 100644
--- a/source/base/index_set.cc
+++ b/source/base/index_set.cc
@@ -1203,10 +1203,9 @@ IndexSet::memory_consumption() const
 
 // explicit template instantiations
 
-
-#ifdef DEAL_II_WITH_TRILINOS
-
-#  ifdef DEAL_II_TRILINOS_WITH_TPETRA
+#ifndef DOXYGEN
+#  ifdef DEAL_II_WITH_TRILINOS
+#    ifdef DEAL_II_TRILINOS_WITH_TPETRA
 
 template IndexSet::IndexSet(
   const Teuchos::RCP<const Tpetra::Map<
@@ -1246,9 +1245,8 @@ dealii::IndexSet::make_tpetra_map_rcp<
   int,
   bool) const;
 
-
+#    endif
 #  endif
-
 #endif
 
 DEAL_II_NAMESPACE_CLOSE
-- 
2.39.5