[clang] fac484c - [clang-format-diff.py][NFC] Document _stderr as unused
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 02:08:41 PDT 2024
Author: MarcoFalke
Date: 2024-08-27T11:07:17+02:00
New Revision: fac484ccc60d148b1893bfae843c6c416a57a870
URL: https://github.com/llvm/llvm-project/commit/fac484ccc60d148b1893bfae843c6c416a57a870
DIFF: https://github.com/llvm/llvm-project/commit/fac484ccc60d148b1893bfae843c6c416a57a870.diff
LOG: [clang-format-diff.py][NFC] Document _stderr as unused
The stderr in the result tuple is always None and unused in this
context.
Document it with an underscore.
Added:
Modified:
clang/tools/clang-format/clang-format-diff.py
Removed:
################################################################################
diff --git a/clang/tools/clang-format/clang-format-
diff .py b/clang/tools/clang-format/clang-format-
diff .py
index 9eec0f3c89de37..aebe193eadb348 100755
--- a/clang/tools/clang-format/clang-format-
diff .py
+++ b/clang/tools/clang-format/clang-format-
diff .py
@@ -168,7 +168,7 @@ def main():
'Failed to run "%s" - %s"' % (" ".join(command), e.strerror)
)
- stdout, stderr = p.communicate()
+ stdout, _stderr = p.communicate()
if p.returncode != 0:
return p.returncode
More information about the cfe-commits
mailing list