From 495dd4183368c3ca8faeca996dfdadec58841624 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Thu, 16 Apr 2026 11:20:42 +0200 Subject: [PATCH 1/2] Increase the number of includes, we get more than 10 in LCG stacks --- roottest/root/meta/countIncludePaths.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roottest/root/meta/countIncludePaths.C b/roottest/root/meta/countIncludePaths.C index c1783951b9868..1cf74190bb646 100644 --- a/roottest/root/meta/countIncludePaths.C +++ b/roottest/root/meta/countIncludePaths.C @@ -26,10 +26,10 @@ int countIncludePaths() nEnvVarPaths = countSubstring(envVar, ":") + 1 - (envVar.back() == ':') - (envVar.front() == ':'); } - // At most 10 + // At most 12 auto nPaths = countSubstring(includePath, "-I"); - if ((nPaths - nEnvVarPaths) > 10) { - std::cerr << "The number of include paths is too high (>9) " << nPaths + if ((nPaths - nEnvVarPaths) > 12) { + std::cerr << "The number of include paths is too high (>12) " << nPaths << ". The number of \"-I\"s has been counted in the include path of ROOT (gSystem->GetIncludePath()=" << includePath << ")." << std::endl; return nPaths; } From 4f83fbc0997d901f17db4efee3f74dec082c0809 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller Date: Thu, 16 Apr 2026 13:21:27 +0200 Subject: [PATCH 2/2] Format using clang-format --- roottest/root/meta/countIncludePaths.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roottest/root/meta/countIncludePaths.C b/roottest/root/meta/countIncludePaths.C index 1cf74190bb646..7ce2c4bc158e6 100644 --- a/roottest/root/meta/countIncludePaths.C +++ b/roottest/root/meta/countIncludePaths.C @@ -30,7 +30,8 @@ int countIncludePaths() auto nPaths = countSubstring(includePath, "-I"); if ((nPaths - nEnvVarPaths) > 12) { std::cerr << "The number of include paths is too high (>12) " << nPaths - << ". The number of \"-I\"s has been counted in the include path of ROOT (gSystem->GetIncludePath()=" << includePath << ")." << std::endl; + << ". The number of \"-I\"s has been counted in the include path of ROOT (gSystem->GetIncludePath()=" + << includePath << ")." << std::endl; return nPaths; } return 0;