[clang-tools-extra] r356548 - [clang-tidy] Cosmetic fix
Zinovy Nis via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 20 04:34:30 PDT 2019
Author: zinovy.nis
Date: Wed Mar 20 04:34:29 2019
New Revision: 356548
URL: http://llvm.org/viewvc/llvm-project?rev=356548&view=rev
Log:
[clang-tidy] Cosmetic fix
Differential Revision: https://reviews.llvm.org/D57662
Modified:
clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
Modified: clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py?rev=356548&r1=356547&r2=356548&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/clang-tidy-diff.py Wed Mar 20 04:34:29 2019
@@ -87,8 +87,8 @@ def merge_replacement_files(tmpdir, merg
"""Merge all replacement files in a directory into a single file"""
# The fixes suggested by clang-tidy >= 4.0.0 are given under
# the top level key 'Diagnostics' in the output yaml files
- mergekey="Diagnostics"
- merged=[]
+ mergekey = "Diagnostics"
+ merged = []
for replacefile in glob.iglob(os.path.join(tmpdir, '*.yaml')):
content = yaml.safe_load(open(replacefile, 'r'))
if not content:
More information about the cfe-commits
mailing list