[all-commits] [llvm/llvm-project] 6e79f7: [dataflow][nfc] Fix u8 string usage with c++20 (#8...

Vincent Lee via All-commits all-commits at lists.llvm.org
Thu Mar 7 01:46:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e79f77adbbd338848ea770f2f2b110bc57a3990
      https://github.com/llvm/llvm-project/commit/6e79f77adbbd338848ea770f2f2b110bc57a3990
  Author: Vincent Lee <thevinster at users.noreply.github.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp

  Log Message:
  -----------
  [dataflow][nfc] Fix u8 string usage with c++20 (#84291)

Clang returns an error when compiling this file with c++20
```
error: ISO C++20 does not permit initialization of char array with UTF-8 string literal
```
It seems like c++20 treats u8strings differently than strings (probably
needs char8_t).
Make this a string to fix the error.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list