HomePhabricator

[Sema] Avoid Wrange-loop-analysis false positives

Authored by Mordante on Jan 19 2020, 8:01 AM.

Description

[Sema] Avoid Wrange-loop-analysis false positives

When Wrange-loop-analysis issues a diagnostic on a dependent type in a
template the diagnostic may not be valid for all instantiations. Therefore
the diagnostic is suppressed during the instantiation. Non dependent types
still issue a diagnostic.

The same can happen when using macros. Therefore the diagnostic is
disabled for macros.

Fixes https://bugs.llvm.org/show_bug.cgi?id=44556

Differential Revision: https://reviews.llvm.org/D73007

Details

Committed
MordanteJan 21 2020, 12:14 PM
Differential Revision
D73007: [Sema] Avoid Wrange-loop-analysis false positives
Parents
rG6b9a5e6f05f9: [lld][Hexagon] Add General Dynamic relocations (GD)
Branches
Unknown
Tags
Unknown