[PATCH] D158657: [clang-tidy] Fix false-positives in misc-static-assert caused by non-constexpr variables
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 11:56:34 PDT 2023
PiotrZSL created this revision.
PiotrZSL added reviewers: alexfh, njames93, carlosgalvezp.
Herald added a subscriber: xazax.hun.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Ignore false-positives when referring to non-constexpr variables
in non-unevaluated context (like decltype, sizeof, ...).
Fixes: #24066
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158657
Files:
clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/misc/static-assert.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158657.552833.patch
Type: text/x-patch
Size: 3961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230823/36049e0b/attachment.bin>
More information about the cfe-commits
mailing list