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/lib/Frontend/CompilerInvocation.cpp | |
parent | bd6769df27e72c76cfd95bb8c51a20e28de5ec93 (diff) | |
download | llvm-d23e9bc5af0220c049d841acf219e2158f7004b8.zip llvm-d23e9bc5af0220c049d841acf219e2158f7004b8.tar.gz llvm-d23e9bc5af0220c049d841acf219e2158f7004b8.tar.bz2 |
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/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions