llvm-project/clang-tools-extra/test/clang-tidy
Georgy Komarov 9a930aa5bd
[clang-tidy] Avoid bugprone-macro-parentheses warnings after goto argument
clang-tidy should not generate warnings for the goto argument without
parentheses, because it would be a syntax error.

The only valid case where an argument can be enclosed in parentheses is
"Labels as Values" gcc extension: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html.
This commit adds support for the label-as-values extension as implemented in clang.

Fixes bugzilla issue 49634.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D99924
2021-04-22 10:14:10 +03:00
..
checkers [clang-tidy] Avoid bugprone-macro-parentheses warnings after goto argument 2021-04-22 10:14:10 +03:00
infrastructure [libtooling][clang-tidy] Fix off-by-one rendering issue with SourceRanges 2021-04-10 18:52:55 +02:00
check_clang_tidy.py [clang-tidy][test] Allow specifying potentially unused suffixes 2021-02-24 15:22:54 +00:00