[all-commits] [llvm/llvm-project] c7ec86: [clang-tidy] Fix g++ -DCMAKE_CXX_STANDARD=17 build

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Aug 6 16:12:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7ec86b13c461f6a8ce11f8443c1b6242013d26f
      https://github.com/llvm/llvm-project/commit/c7ec86b13c461f6a8ce11f8443c1b6242013d26f
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-08-06 (Sat, 06 Aug 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/SignalHandlerCheck.h

  Log Message:
  -----------
  [clang-tidy] Fix g++ -DCMAKE_CXX_STANDARD=17 build

`constexpr std::initializer_list<llvm::StringRef>` leads to
```
error: modification of '<temporary>' is not a constant expression
```
Related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102921




More information about the All-commits mailing list