Pass the source range when diagnosing an unknown attribute
authorAaron Ballman <aaron@aaronballman.com>
Fri, 13 Nov 2020 18:27:28 +0000 (10:27 -0800)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 13 Nov 2020 18:29:44 +0000 (10:29 -0800)
commit66b876c014ad57e7d750a2063a4abac6babd8ef1
treefcb5d93622daf8590193f3c111cb951000a0a67d
parentd87fd096ac3eb27f376c0182ed5e3034ce240861
Pass the source range when diagnosing an unknown attribute

This way, the whole attribute gets highlighted with diagnostics instead
of just the scope name in an attribute like [[clang::unknown]].
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaStmtAttr.cpp
clang/lib/Sema/SemaType.cpp