Skip to content

Commit 0c83a33

Browse files
dpiparoktf
authored andcommitted
Skip for the moment the templated functions
1 parent 1893716 commit 0c83a33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/metautils/src/SelectionRules.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ const ClassSelectionRule *SelectionRules::IsDeclSelected(clang::NamespaceDecl *D
305305
}
306306

307307
const BaseSelectionRule *SelectionRules::IsDeclSelected(clang::EnumDecl *D) const
308-
{
308+
{
309309
// Currently rootcling does not need any information on enums, except
310310
// for the PCM / proto classes that register them to build TEnums without
311311
// parsing. This can be removed once (real) PCMs are available.
@@ -866,7 +866,9 @@ const BaseSelectionRule *SelectionRules::IsVarSelected(clang::VarDecl* D, const
866866

867867
const BaseSelectionRule *SelectionRules::IsFunSelected(clang::FunctionDecl *D, const std::string &qual_name) const
868868
{
869+
869870
if (fFunctionSelectionRules.size() == 0 ||
871+
D->getPrimaryTemplate() != nullptr ||
870872
llvm::isa<clang::CXXMethodDecl>(D)) return nullptr;
871873

872874
std::string prototype;
@@ -974,6 +976,7 @@ const BaseSelectionRule *SelectionRules::IsLinkdefFunSelected(clang::FunctionDec
974976
{
975977

976978
if (fFunctionSelectionRules.size() == 0 ||
979+
D->getPrimaryTemplate() != nullptr ||
977980
llvm::isa<clang::CXXMethodDecl>(D)) return nullptr;
978981

979982
std::string prototype;

0 commit comments

Comments
 (0)