~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to tests/style/cpplint_exceptions.py

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
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')
31
32
 
32
33
exceptions[os.path.join(CPP_CM, 'Simulation',
79
80
]
80
81
 
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')
84
85
]
85
86
 
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')
89
90
]
90
91
 
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')
 
95
]
 
96
 
 
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')
94
100
]
95
101
 
180
186
]
181
187
 
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'),
185
191
]
186
192
 
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'),
191
197
]
192
198
 
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'),
199
 
]
200
 
 
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'),
 
205
]
 
206
 
 
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'),
 
211
]
 
212
 
 
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'),
205
217
]
206
218
 
224
236
 'taylor'),
225
237
]
226
238
 
 
239
exceptions[os.path.join(CPP_CM,
 
240
                        'JsonCppProcessors',
 
241
                        'PrimitivesProcessors.hh')] = [
 
242
('typedef unsigned long long uint64;',
 
243
 'This is setting up the uint64 that cpplint wants',
 
244
 'rogers'),
 
245
]
 
246
 
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')
231
251
]
232
252
 
 
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'),
 
257
]
 
258
 
 
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'),
 
265
]
 
266
 
 
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'),
 
273
]
 
274
 
233
275
exceptions[os.path.join('src', 'py_cpp', 'optics', 'PyCovarianceMatrix.hh')] = [
234
276
('                   reinterpret_cast<CovarianceMatrix* (*)'+\
235
277
                                                      '(PyObject*)>(gcm_void);',
250
292
'rogers')
251
293
]
252
294
 
 
295