diff --git a/.clang-format b/.clang-format index a3aea2bdd7b..d5d12e7490c 100644 --- a/.clang-format +++ b/.clang-format @@ -47,7 +47,7 @@ IncludeCategories: Priority: 2 CaseSensitive: true # O2Physics, non-PWG - - Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)/.*\.h + - Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|PID|Tools|Tutorials)/.*\.h Priority: 3 CaseSensitive: true # O2 diff --git a/Scripts/format_includes.awk b/Scripts/format_includes.awk index f60e3ebce30..42484d62830 100644 --- a/Scripts/format_includes.awk +++ b/Scripts/format_includes.awk @@ -6,7 +6,7 @@ { if ($1 ~ /^#include/) { h = substr($2, 2, length($2) - 2) - if ( h ~ /^(PWG[A-Z]{2}|Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)\/.*\.h/ ) { $2 = "\""h"\"" } # O2Physics + if ( h ~ /^(PWG[A-Z]{2}|Common|ALICE3|DPG|EventFiltering|PID|Tools|Tutorials)\/.*\.h/ ) { $2 = "\""h"\"" } # O2Physics else if ( h ~ /^(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|FDD|Field|Framework|FT0|FV0|GlobalTracking|GPU|ITS|MathUtils|MCH|MFT|MID|PHOS|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*\/.*\.h/ ) { $2 = "<"h">" } # O2 else if ( h ~ /^(T[A-Z]|Math\/|Roo[A-Z])[[:alnum:]\/]+\.h/ ) { $2 = "<"h">" } # ROOT else if ( h ~ /^KF[A-Z][[:alnum:]]+\.h/ ) { $2 = "<"h">" } # KFParticle