diff options
author | Takuya Shimizu <shimizu2486@gmail.com> | 2023-06-16 19:26:53 +0900 |
---|---|---|
committer | Takuya Shimizu <shimizu2486@gmail.com> | 2023-06-16 19:26:53 +0900 |
commit | 64083172eea26e50c8b22b85697a825be8bda424 (patch) | |
tree | 41e30820aabe76acd4b8338c55b821ebfa5831d0 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | 6223b1e76d51fca557582648efbd3710d3ce44ea (diff) | |
download | llvm-64083172eea26e50c8b22b85697a825be8bda424.zip llvm-64083172eea26e50c8b22b85697a825be8bda424.tar.gz llvm-64083172eea26e50c8b22b85697a825be8bda424.tar.bz2 |
[clang][Sema] Provide source range to several Wunused warnings
When the diagnosed function/variable is a template specialization, the source range covers the specialization arguments.
e.g.
```
warning: unused function 'func<int>' [-Wunused-function]
template <> int func<int> () {}
^~~~~~~~~
```
This comes in line with the printed text in the warning message. In the above case, `func<int>`
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D152707
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions