summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-view/share/ScanView.py
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-01-03 14:24:31 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-01-03 14:24:31 +0000
commitd23e9bc5af0220c049d841acf219e2158f7004b8 (patch)
treef870f934427534ff55191cab4631875524246201 /clang/tools/scan-view/share/ScanView.py
parentbd6769df27e72c76cfd95bb8c51a20e28de5ec93 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud