diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2019-01-03 14:24:31 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-01-03 14:24:31 +0000 |
commit | d23e9bc5af0220c049d841acf219e2158f7004b8 (patch) | |
tree | f870f934427534ff55191cab4631875524246201 /clang/tools/scan-view/share/ScanView.py | |
parent | bd6769df27e72c76cfd95bb8c51a20e28de5ec93 (diff) | |
download | bcm5719-llvm-d23e9bc5af0220c049d841acf219e2158f7004b8.tar.gz bcm5719-llvm-d23e9bc5af0220c049d841acf219e2158f7004b8.zip |
Diagnose an unused result from a call through a function pointer whose return type is marked [[nodiscard]].
When a function returns a type and that type was declared [[nodiscard]], we diagnose any unused results from that call as though the function were marked nodiscard. The same behavior should apply to calls through a function pointer.
This addresses PR31526.
llvm-svn: 350317
Diffstat (limited to 'clang/tools/scan-view/share/ScanView.py')
0 files changed, 0 insertions, 0 deletions