This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix false-positives in misc-static-assert caused by non-constexpr variables
Needs ReviewPublic

Authored by PiotrZSL on Aug 23 2023, 11:56 AM.

Details

Summary

Ignore false-positives when referring to non-constexpr variables
in non-unevaluated context (like decltype, sizeof, ...).

Fixes: #24066

Diff Detail