aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/googletest/googlemock/test/gmock_stress_test.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-07-29 09:17:37 +0100
committerGitHub <noreply@github.com>2021-07-29 09:17:37 +0100
commit0991003de9f3aa8870728ce70e5a247747eb302e (patch)
tree0d10e943f0eda3794d06d8c6a2fcd8b89a3dd17f /3rdparty/googletest/googlemock/test/gmock_stress_test.cc
parent39a7381928359934788aefd670c835dedbbf2cd7 (diff)
parent504199e70e07b85da36d14ba546285fffb19cc99 (diff)
downloadnextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.tar.gz
nextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.tar.bz2
nextpnr-0991003de9f3aa8870728ce70e5a247747eb302e.zip
Merge pull request #785 from YosysHQ/gatecat/nexus2glb2fabric
nexus: Fix routeing of global clocks that also drive fabric
Diffstat (limited to '3rdparty/googletest/googlemock/test/gmock_stress_test.cc')
0 files changed, 0 insertions, 0 deletions
* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/usr/bin/python

import re,sys

pats = [
 [ r"^\s*#\s*include\s+", r"__InClUdE__ " ],
 [ r"^\s*#\s*define\s+([A-Z_]*_GUEST_HANDLE)", r"#define HIDE_\1" ],
 [ r"^\s*#\s*define\s+([a-z_]*_guest_handle)", r"#define hide_\1" ],
 [ r"XEN_GUEST_HANDLE(_[0-9A-Fa-f]+)?", r"COMPAT_HANDLE" ],
];

xlats = []

xlatf = open('xlat.lst', 'r')
for line in xlatf.readlines():
    match = re.subn(r"^\s*\?\s+(\w*)\s.*", r"\1", line.rstrip())
    if match[1]:
        xlats.append(match[0])
xlatf.close()

for line in sys.stdin.readlines():
    for pat in pats:
        line = re.subn(pat[0], pat[1], line)[0]
    for xlat in xlats:
        line = re.subn(r"(struct|union)\s+(%s|xen_%s)\s+(\w)" % (xlat, xlat),
            r"\1 @KeeP@\2 \3", line.rstrip())[0]
    print line.rstrip()