[clang] [clang] Remove unused local variables (NFC) (PR #138453)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Sun May 4 10:00:01 PDT 2025
================
@@ -361,15 +361,8 @@ TEST(CallDescription, AliasNames) {
std::cont v;
v.data();
})code";
- constexpr StringRef UseStructNameInSpelling = R"code(
- void foo() {
- std::container v;
- v.data();
- })code";
const std::string UseAliasInSpellingCode =
(Twine{AliasNamesCode} + UseAliasInSpelling).str();
- const std::string UseStructNameInSpellingCode =
- (Twine{AliasNamesCode} + UseStructNameInSpelling).str();
----------------
steakhal wrote:
This test code left me wondering if this is dead because it's intended to test something or dead because we moved the relevant parts to other tests thus become dead.
I think it's safe to remove these lines.
https://github.com/llvm/llvm-project/pull/138453
More information about the cfe-commits
mailing list