[all-commits] [llvm/llvm-project] 47282b: Fix PR#44620 'readability-redundant-string-cstr qu...
Nikita via All-commits
all-commits at lists.llvm.org
Tue Feb 18 12:34:00 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 47282b1b4bf3e18d2e2166b87159115ed520a2aa
https://github.com/llvm/llvm-project/commit/47282b1b4bf3e18d2e2166b87159115ed520a2aa
Author: Karasev Nikita <cc.tapa at gmail.com>
Date: 2020-02-18 (Tue, 18 Feb 2020)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/readability-redundant-string-cstr.cpp
Log Message:
-----------
Fix PR#44620 'readability-redundant-string-cstr quick-fix causes invalid code'
static void f2(std::string&&) {}
static void f() {
std::string const s;
f2(s.c_str()); // readability-redundant-string-cstr previously warning
}
Skips the problematic AST pattern in the matcher.
More information about the All-commits
mailing list