Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larsoft
bin
v06_00_00-root6
UpdateUnitTestsBoost1.61.py
Go to the documentation of this file.
1
#!/usr/bin/env python2
2
3
import
sys, re
4
5
import
SerialSubstitution
6
from
SerialSubstitution
import
AddProcessor, RunSubstitutor
7
8
9
################################################################################
10
if
__name__ ==
"__main__"
:
11
12
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
13
# C++ source code
14
#
15
Subst =
AddProcessor
(
SerialSubstitution.ProcessorClass
(
"code"
))
16
17
Subst.AddFileType(
"h"
,
"cc"
,
"cpp"
,
"cxx"
)
18
19
# deprecated test macros
20
Subst.AddWord (
"BOOST_MESSAGE"
,
"BOOST_TEST_MESSAGE"
)
21
Subst.AddWord (
"BOOST_CHECKPOINT"
,
"BOOST_TEST_CHECKPOINT"
)
22
Subst.AddWord (
"BOOST_BITWISE_EQUAL"
,
"BOOST_CHECK_BITWISE_EQUAL"
)
23
24
# BOOST_GLOBAL_FIXTURE macro became statement-like
25
# (the first pattern is a special case of the second, where the line ends
26
# after the pattern; the second pattern would replace the end-line with ';'
27
# effectively killing one line)
28
Subst.AddRegExPattern(
r"(BOOST_GLOBAL_FIXTURE\((.*)\)[::space::]*)$"
,
r"\1;"
)
29
Subst.AddRegExPattern(
r"(BOOST_GLOBAL_FIXTURE\((.*)\)[::space::]*)[^;]"
,
r"\1;"
)
30
31
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
32
#############################################################################
33
34
sys.exit(
RunSubstitutor
())
35
#
SerialSubstitution.ProcessorClass
Definition:
SerialSubstitution.py:193
SerialSubstitution.AddProcessor
def AddProcessor
Definition:
SerialSubstitution.py:489
SerialSubstitution.RunSubstitutor
def RunSubstitutor
Definition:
SerialSubstitution.py:503
Generated by
1.8.5