Skip to content

Commit d15f2f6

Browse files
Merge branch 'AliceO2Group:master' into master
2 parents 0e4d7fa + 0af789a commit d15f2f6

File tree

861 files changed

+95721
-36865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

861 files changed

+95721
-36865
lines changed

.clang-format

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,60 @@ PenaltyBreakFirstLessLess: 120
3939
PenaltyBreakString: 1000
4040
PenaltyExcessCharacter: 1000000
4141
PenaltyReturnTypeOnItsOwnLine: 200
42-
SortIncludes: false
42+
SortIncludes: CaseSensitive
43+
IncludeBlocks: Regroup
44+
IncludeCategories:
45+
# O2Physics, PWG
46+
- Regex: ^(<|")PWG[A-Z]{2}/.*\.h
47+
Priority: 2
48+
CaseSensitive: true
49+
# O2Physics, non-PWG
50+
- Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)/.*\.h
51+
Priority: 3
52+
CaseSensitive: true
53+
# O2
54+
- Regex: ^(<|")(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|Field|Framework|FT0|FV0|GlobalTracking|ITS|MathUtils|MFT|MCH|MID|PHOS|PID|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*/.*\.h
55+
Priority: 4
56+
CaseSensitive: true
57+
# ROOT
58+
- Regex: ^(<|")(T[A-Z]|Math/|Roo[A-Z])[[:alnum:]/]+\.h
59+
Priority: 5
60+
CaseSensitive: true
61+
# known third-party: KFParticle
62+
- Regex: ^(<|")KF[A-Z][[:alnum:]]+\.h
63+
Priority: 6
64+
CaseSensitive: true
65+
# known third-party: FastJet
66+
- Regex: ^(<|")fastjet/
67+
Priority: 6
68+
CaseSensitive: true
69+
# known third-party: ONNX runtime
70+
- Regex: ^(<|")onnxruntime
71+
Priority: 6
72+
CaseSensitive: true
73+
# incomplete path to DataModel
74+
- Regex: ^(<|").*DataModel/
75+
Priority: 1
76+
CaseSensitive: true
77+
# other third-party
78+
- Regex: ^(<|")([[:alnum:]_]+/)+[[:alnum:]_]+\.h
79+
Priority: 6
80+
CaseSensitive: true
81+
# other local-looking file
82+
- Regex: ^".*\.
83+
Priority: 1
84+
CaseSensitive: true
85+
# C system
86+
- Regex: ^(<|")[[:lower:]_]+\.h(>|")
87+
Priority: 102
88+
CaseSensitive: true
89+
# C++ system
90+
- Regex: ^(<|")[[:lower:]_/]+(>|")
91+
Priority: 101
92+
CaseSensitive: true
93+
# rest
94+
- Regex: .*
95+
Priority: 100
4396
SpaceBeforeAssignmentOperators: true
4497
SpaceBeforeParens: ControlStatements
4598
SpaceInEmptyParentheses: false

.clang-tidy

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
CheckOptions:
2-
- key: CheckPathRegex
3-
value: '.*/O2/.*'
2+
- { key: CheckPathRegex, value: ".*/O2/.*" }
3+
# Naming conventions
4+
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
5+
- { key: readability-identifier-naming.ClassMemberPrefix, value: m }
6+
- { key: readability-identifier-naming.ConceptCase, value: CamelCase }
7+
- { key: readability-identifier-naming.ConstexprVariableCase, value: CamelCase }
8+
- { key: readability-identifier-naming.ConstexprVariableIgnoredRegexp, value: "^k[A-Z].*$" } # Allow "k" prefix.
9+
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
10+
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
11+
- { key: readability-identifier-naming.EnumConstantIgnoredRegexp, value: "^k[A-Z].*$" } # Allow "k" prefix.
12+
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
13+
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
14+
- { key: readability-identifier-naming.MacroDefinitionIgnoredRegexp, value: "^[A-Z]+(_[A-Z]+)*_$" } # Allow the trailing underscore in header guards.
15+
- { key: readability-identifier-naming.MemberCase, value: camelBack }
16+
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
17+
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
18+
- { key: readability-identifier-naming.StructCase, value: CamelCase }
19+
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
20+
- { key: readability-identifier-naming.TypeAliasCase, value: CamelCase }
21+
- { key: readability-identifier-naming.TypedefCase, value: CamelCase }
22+
- { key: readability-identifier-naming.TypeTemplateParameterCase, value: CamelCase }
23+
- { key: readability-identifier-naming.VariableCase, value: camelBack }

ALICE3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ add_subdirectory(Core)
1414
# add_subdirectory(DataModel)
1515
add_subdirectory(Tasks)
1616
add_subdirectory(TableProducer)
17-
add_subdirectory(Tools)
17+
# add_subdirectory(Tools)

ALICE3/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
o2physics_add_library(ALICE3Core
1313
SOURCES TOFResoALICE3.cxx
14+
TrackUtilities.cxx
1415
DelphesO2TrackSmearer.cxx
1516
PUBLIC_LINK_LIBRARIES O2::Framework
1617
O2Physics::AnalysisCore)

0 commit comments

Comments
 (0)