[llvm] [llvm] Make charset constexpr (NFC) (PR #137535)
A. Jiang via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 27 18:04:21 PDT 2025
================
@@ -49,7 +49,7 @@ std::string llvm::logicalview::flattenedFilePath(StringRef Path) {
std::string Name(Path);
std::transform(Name.begin(), Name.end(), Name.begin(), tolower);
- const char *CharSet = "/\\<>.:%*?|\" ";
+ constexpr char *CharSet = "/\\<>.:%*?|\" ";
----------------
frederick-vs-ja wrote:
You seemed to change the type of `CharSet` accidentally.
```suggestion
constexpr const char *CharSet = "/\\<>.:%*?|\" ";
```
https://github.com/llvm/llvm-project/pull/137535
More information about the llvm-commits
mailing list