[clang-tools-extra] [IncludeCleaner] display overview (PR #93932)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 24 04:26:32 PDT 2026
================
@@ -34,7 +34,7 @@ namespace include_cleaner {
namespace {
namespace cl = llvm::cl;
-llvm::StringRef Overview = llvm::StringLiteral(R"(
+constexpr char* const Overview = R"(
----------------
TheHillBright wrote:
The type `constexpr char* const` was intentional because I think the pointer itself makes sense to be `const` (meaning that my type forbids something like `Overview = "New String"`). Your suggestion would make such reassignment possible.
I'm also ok to make the pointer modifiable if you wish. Just let me know. But we definitely don't need `constexpr const` type since `const` is apparently redundant.
https://github.com/llvm/llvm-project/pull/93932
More information about the cfe-commits
mailing list