[llvm] d24d781 - [lit][NFC] Remove double space after full stop/period

Fraser Cormack via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 23:37:08 PDT 2023


Author: Fraser Cormack
Date: 2023-05-26T07:33:28+01:00
New Revision: d24d7815d57e721b3892c77417f75291faad95d6

URL: https://github.com/llvm/llvm-project/commit/d24d7815d57e721b3892c77417f75291faad95d6
DIFF: https://github.com/llvm/llvm-project/commit/d24d7815d57e721b3892c77417f75291faad95d6.diff

LOG: [lit][NFC] Remove double space after full stop/period

Added: 
    

Modified: 
    llvm/utils/lit/lit/llvm/subst.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/llvm/subst.py b/llvm/utils/lit/lit/llvm/subst.py
index 277566fb81e6..1c80a6cb9e68 100644
--- a/llvm/utils/lit/lit/llvm/subst.py
+++ b/llvm/utils/lit/lit/llvm/subst.py
@@ -12,7 +12,7 @@ def __init__(self, name):
         self.name = name
 
     def resolve(self, config, dirs):
-        # Check for a user explicitly overriding a tool.  This allows:
+        # Check for a user explicitly overriding a tool. This allows:
         #     llvm-lit -D llc="llc -enable-misched -verify-machineinstrs"
         command = config.lit_config.params.get(self.name)
         if command is None:
@@ -49,9 +49,9 @@ def __init__(
 
         key: The text which is to be substituted.
 
-        command: The command to substitute when the key is matched.  By default,
-        this will treat `key` as a tool name and search for it.  If it is
-        a string, it is interpreted as an exact path.  If it is an instance of
+        command: The command to substitute when the key is matched. By default,
+        this will treat `key` as a tool name and search for it. If it is a
+        string, it is interpreted as an exact path. If it is an instance of
         FindTool, the specified tool name is searched for on disk.
 
         pre: If specified, the substitution will not find matches where
@@ -66,7 +66,7 @@ def __init__(
         underlying substitution
 
         unresolved: Action to take if the tool substitution cannot be
-        resolved.  Valid values:
+        resolved. Valid values:
             'warn' - log a warning but add the substitution anyway.
             'fatal' - Exit the test suite and log a fatal error.
             'break' - Don't add any of the substitutions from the current
@@ -104,10 +104,9 @@ def wordify(word):
         self.regex = not_in(pre, "<") + wordify(key) + not_in(post)
 
     def resolve(self, config, search_dirs):
-        # Extract the tool name from the pattern.  This relies on the tool
-        # name being surrounded by \b word match operators.  If the
-        # pattern starts with "| ", include it in the string to be
-        # substituted.
+        # Extract the tool name from the pattern. This relies on the tool name
+        # being surrounded by \b word match operators. If the pattern starts
+        # with "| ", include it in the string to be substituted.
 
         tool_match = expr.match(self.regex)
         if not tool_match:


        


More information about the llvm-commits mailing list