[all-commits] [llvm/llvm-project] 3af6ae: [clang-tidy] Fix false-positives in misc-static-as...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Fri Jan 12 09:34:01 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3af6ae0fbea40097e159c11893ee7ab57d00480c
https://github.com/llvm/llvm-project/commit/3af6ae0fbea40097e159c11893ee7ab57d00480c
Author: Piotr Zegar <me at piotrzegar.pl>
Date: 2024-01-12 (Fri, 12 Jan 2024)
Changed paths:
M clang-tools-extra/clang-tidy/misc/StaticAssertCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/misc/static-assert.cpp
Log Message:
-----------
[clang-tidy] Fix false-positives in misc-static-assert caused by non-constexpr variables (#77203)
Ignore false-positives when referring to non-constexpr variables in
non-unevaluated context (like decltype, sizeof, ...).
Moved from https://reviews.llvm.org/D158657
Fixes: #24066
More information about the All-commits
mailing list