]> granicus.if.org Git - clang/commit
[clang-tidy] Fix the YAML created for checks like modernize-pass-by-value
authorIvan Donchevskii <yv.ivan@gmail.com>
Wed, 3 Jul 2019 10:21:50 +0000 (10:21 +0000)
committerIvan Donchevskii <yv.ivan@gmail.com>
Wed, 3 Jul 2019 10:21:50 +0000 (10:21 +0000)
commiteb541f13e75b36dfeb411012e67f90d41589fc20
treeeedac62bbf485e4ed29efc37a62eddfa87dc6caa
parent8543b438756773308059070261f8e085bdc7f2a8
[clang-tidy] Fix the YAML created for checks like modernize-pass-by-value

Currently this check generates the replacement with the newline in the end.
The proper way to export it to YAML is to have two \n\n instead of one.
Without this fix clients should reinterpret the replacement as
"#include <utility> " instead of "#include <utility>\n"

Differential Revision: https://reviews.llvm.org/D63482

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365017 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/ReplacementsYaml.h
unittests/Tooling/ReplacementsYamlTest.cpp