28
28
CPP_CM = os.path.join('src','common_cpp')
29
29
LEGACY = os.path.join('src','LEGACY')
30
MAP = os.path.join('src', 'map')
30
31
TST = os.path.join('tests', 'cpp_unit')
32
33
exceptions[os.path.join(CPP_CM, 'Simulation',
81
82
exceptions[os.path.join(TST, 'Maths', 'VectorTest.cc')] = [
82
(' } catch (Squeal squeal) {}',
83
(' } catch (MAUS::Exception exc) {}',
83
84
'"catch" is a keyword like "for" and "if", not a function', 'lane')
86
87
exceptions[os.path.join(TST, 'Optics', 'PhaseSpaceVectorTest.cc')] = [
87
(' } catch (Squeal squeal) {}',
88
(' } catch (MAUS::Exception exc) {}',
88
89
'"catch" is a keyword like "for" and "if", not a function', 'lane')
91
92
exceptions[os.path.join(TST, 'Optics', 'CovarianceMatrixTest.cc')] = [
92
(' } catch (Squeal squeal) {}',
93
(' } catch (MAUS::Exception exc) {}',
94
'"catch" is a keyword like "for" and "if", not a function', 'lane')
97
exceptions[os.path.join(CPP_CM, 'Optics', 'TransferMapOpticsModel.cc')] = [
98
(' } catch (std::exception ex) {',
93
99
'"catch" is a keyword like "for" and "if", not a function', 'lane')
182
188
exceptions[os.path.join(TST, 'Maths', 'PolynomialMapTest.cc')] = [
183
(' } catch (Squeal squeal) {}',
189
(' } catch (MAUS::Exception exc) {}',
184
190
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
187
193
exceptions[os.path.join(TST, 'Optics',
188
194
'LinearApproximationOpticsModelTest.cc')] = [
189
(' } catch (Squeal squeal) {',
195
(' } catch (MAUS::Exception exc) {',
190
196
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
193
199
exceptions[os.path.join(TST, 'Optics',
194
200
'PolynomialOpticsModelTest.cc')] = [
195
(' } catch (Squeal squeal) {',
196
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
197
(' } catch (Squeal squeal) {',
198
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
201
exceptions[os.path.join(TST, 'Recon/Global',
202
'TrackPointTest.cc')] = [
203
(' } catch (Squeal squeal) {',
201
(' } catch (MAUS::Exception exc) {',
202
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
203
(' } catch (MAUS::Exception exc) {',
204
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
207
exceptions[os.path.join(TST, 'Recon/Global',
208
'DataStructureHelperTest.cc')] = [
209
(' } catch (MAUS::Exception& exc) {',
210
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
213
exceptions[os.path.join(TST, 'Recon/Global',
214
'MinuitTrackFitterTest.cc')] = [
215
(' } catch (MAUS::Exception exc) {',
204
216
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
239
exceptions[os.path.join(CPP_CM,
241
'PrimitivesProcessors.hh')] = [
242
('typedef unsigned long long uint64;',
243
'This is setting up the uint64 that cpplint wants',
227
247
exceptions[os.path.join('src', 'input', 'InputCppDAQOnlineData',
228
248
'InputCppDAQOnlineData.cc')] = [
229
249
(' _sleep_time.tv_sec = static_cast<long>(delay_time);',
230
250
'This really is a long, it is defined in time.h.', 'rogers')
253
exceptions[os.path.join(CPP_CM, 'Simulation',
254
'MAUSPrimaryGeneratorAction.cc')] = [
255
(' } catch (std::exception stde) {',
256
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
259
exceptions[os.path.join(CPP_CM, 'Recon/Global',
260
'MinuitTrackFitter.cc')] = [
261
(' } catch (Exception exc) {',
262
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
263
(' } catch (Exception exc) {',
264
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
267
exceptions[os.path.join(MAP, 'MapCppGlobalTrackReconstructor',
268
'MapCppGlobalTrackReconstructor.cc')] = [
269
(' } catch (Exception exc) {',
270
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
271
(' } catch (Exception exc) {',
272
'"catch" is a keyword like "for" and "if", not a function', 'lane'),
233
275
exceptions[os.path.join('src', 'py_cpp', 'optics', 'PyCovarianceMatrix.hh')] = [
234
276
(' reinterpret_cast<CovarianceMatrix* (*)'+\
235
277
'(PyObject*)>(gcm_void);',