Make -Wfor-loop-analysis work with C++17
authorRichard Trieu <rtrieu@google.com>
Sat, 20 Oct 2018 02:15:58 +0000 (02:15 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 20 Oct 2018 02:15:58 +0000 (02:15 +0000)
commit6b13e89ab8035900f1103610812b02b0aff5c40e
treef396d2f0a4a495b46a3529dc8a43d1a47cfcfd3e
parent2f7dc72525cb7680ff50bf24fdb63671fa060609
Make -Wfor-loop-analysis work with C++17

For now, disable the "variable in loop condition not modified" warning to not
be emitted when there is a structured binding variable in the loop condition.

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

llvm-svn: 344828
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/warn-loop-analysis.cpp