Add diagnostic for for-range-declaration being specificed with thread_local
authorshafik <syaghmour@apple.com>
Fri, 4 Dec 2020 22:47:36 +0000 (14:47 -0800)
committershafik <syaghmour@apple.com>
Fri, 4 Dec 2020 23:06:35 +0000 (15:06 -0800)
commit6333871f85403d07abc62fdb6182f288ff60ccd8
tree0314283204090e13e81c675e9e80088649b120d2
parent190b4374c00a9cf090ea73f9eddf3d8f71b11ec8
Add diagnostic for for-range-declaration being specificed with thread_local

Currently we have a diagnostic that catches the other storage class specifies for the range based for loop declaration but we miss the thread_local case. This changes adds a diagnostic for that case as well.

Differential Revision: https://reviews.llvm.org/D92671
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/p1.cpp