@@ -12,7 +12,7 @@ def __init__(self, name):
12
12
self .name = name
13
13
14
14
def resolve (self , config , dirs ):
15
- # Check for a user explicitly overriding a tool. This allows:
15
+ # Check for a user explicitly overriding a tool. This allows:
16
16
# llvm-lit -D llc="llc -enable-misched -verify-machineinstrs"
17
17
command = config .lit_config .params .get (self .name )
18
18
if command is None :
@@ -49,9 +49,9 @@ def __init__(
49
49
50
50
key: The text which is to be substituted.
51
51
52
- command: The command to substitute when the key is matched. By default,
53
- this will treat `key` as a tool name and search for it. If it is
54
- a string, it is interpreted as an exact path. If it is an instance of
52
+ command: The command to substitute when the key is matched. By default,
53
+ this will treat `key` as a tool name and search for it. If it is a
54
+ string, it is interpreted as an exact path. If it is an instance of
55
55
FindTool, the specified tool name is searched for on disk.
56
56
57
57
pre: If specified, the substitution will not find matches where
@@ -66,7 +66,7 @@ def __init__(
66
66
underlying substitution
67
67
68
68
unresolved: Action to take if the tool substitution cannot be
69
- resolved. Valid values:
69
+ resolved. Valid values:
70
70
'warn' - log a warning but add the substitution anyway.
71
71
'fatal' - Exit the test suite and log a fatal error.
72
72
'break' - Don't add any of the substitutions from the current
@@ -104,10 +104,9 @@ def wordify(word):
104
104
self .regex = not_in (pre , "<" ) + wordify (key ) + not_in (post )
105
105
106
106
def resolve (self , config , search_dirs ):
107
- # Extract the tool name from the pattern. This relies on the tool
108
- # name being surrounded by \b word match operators. If the
109
- # pattern starts with "| ", include it in the string to be
110
- # substituted.
107
+ # Extract the tool name from the pattern. This relies on the tool name
108
+ # being surrounded by \b word match operators. If the pattern starts
109
+ # with "| ", include it in the string to be substituted.
111
110
112
111
tool_match = expr .match (self .regex )
113
112
if not tool_match :
0 commit comments