mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-12 11:06:17 +00:00
use clang replacement 5.0 instead of 3.8
This commit is contained in:
parent
a7a0e6c516
commit
af9fc5a2b7
6
debian/patches/clang-apply-replacements.diff
vendored
6
debian/patches/clang-apply-replacements.diff
vendored
@ -7,7 +7,7 @@ Index: llvm-toolchain-3.7-3.7/clang-tools-extra/clang-modernize/Core/Replacement
|
|||||||
bool ReplacementHandling::findClangApplyReplacements(const char *Argv0) {
|
bool ReplacementHandling::findClangApplyReplacements(const char *Argv0) {
|
||||||
ErrorOr<std::string> CARPathOrErr =
|
ErrorOr<std::string> CARPathOrErr =
|
||||||
- findProgramByName("clang-apply-replacements");
|
- findProgramByName("clang-apply-replacements");
|
||||||
+ findProgramByName("clang-apply-replacements-3.8");
|
+ findProgramByName("clang-apply-replacements-5.0");
|
||||||
if (!CARPathOrErr)
|
if (!CARPathOrErr)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ Index: llvm-toolchain-3.7-3.7/clang-tools-extra/clang-modernize/Core/Replacement
|
|||||||
std::string ClangModernizePath = fs::getMainExecutable(Argv0, &StaticSymbol);
|
std::string ClangModernizePath = fs::getMainExecutable(Argv0, &StaticSymbol);
|
||||||
SmallString<128> TestPath = path::parent_path(ClangModernizePath);
|
SmallString<128> TestPath = path::parent_path(ClangModernizePath);
|
||||||
- path::append(TestPath, "clang-apply-replacements");
|
- path::append(TestPath, "clang-apply-replacements");
|
||||||
+ path::append(TestPath, "clang-apply-replacements-3.8");
|
+ path::append(TestPath, "clang-apply-replacements-5.0");
|
||||||
if (fs::can_execute(Twine(TestPath)))
|
if (fs::can_execute(Twine(TestPath)))
|
||||||
CARPath = TestPath.str();
|
CARPath = TestPath.str();
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ Index: llvm-toolchain-3.7-3.7/clang-tools-extra/clang-tidy/tool/run-clang-tidy.p
|
|||||||
help='path to clang-tidy binary')
|
help='path to clang-tidy binary')
|
||||||
parser.add_argument('-clang-apply-replacements-binary', metavar='PATH',
|
parser.add_argument('-clang-apply-replacements-binary', metavar='PATH',
|
||||||
- default='clang-apply-replacements',
|
- default='clang-apply-replacements',
|
||||||
+ default='clang-apply-replacements-3.8',
|
+ default='clang-apply-replacements-5.0',
|
||||||
help='path to clang-apply-replacements binary')
|
help='path to clang-apply-replacements binary')
|
||||||
parser.add_argument('-checks', default=None,
|
parser.add_argument('-checks', default=None,
|
||||||
help='checks filter, when not specified, use clang-tidy '
|
help='checks filter, when not specified, use clang-tidy '
|
||||||
|
Loading…
Reference in New Issue
Block a user