Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-18.1.8
# d211abc6 09-Jun-2024 Piotr Zegar <me@piotrzegar.pl>

[clang-tidy] Ignore non-math operators in readability-math-missing-parentheses (#94654)

Do not emit warnings for non-math operators.

Closes #92516


Revision tags: llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5
# fbe4d991 30-Apr-2024 Julian Schmidt <git.julian.schmidt@gmail.com>

[clang-tidy] fix false-negative for macros in `readability-math-missing-parentheses` (#90279)

When a binary operator is the last operand of a macro, the end location
that is past the `BinaryOperato

[clang-tidy] fix false-negative for macros in `readability-math-missing-parentheses` (#90279)

When a binary operator is the last operand of a macro, the end location
that is past the `BinaryOperator` will be inside the macro and therefore
an
invalid location to insert a `FixIt` into, which is why the check bails
when encountering such a pattern.
However, the end location is only required for the `FixIt` and the
diagnostic can still be emitted, just without an attached fix.

show more ...


# 8dc7db7a 25-Apr-2024 Bhuminjay Soni <Soni5Happy@gmail.com>

[clang-tidy] Add clang-tidy check readability-math-missing-parentheses (#84481)

This commit closes #80850 where author suggests adding a
readability check to detect missing parentheses around mathe

[clang-tidy] Add clang-tidy check readability-math-missing-parentheses (#84481)

This commit closes #80850 where author suggests adding a
readability check to detect missing parentheses around mathematical
expressions when operators of different priorities are used.

Signed-off-by: 11happy <soni5happy@gmail.com>

show more ...