Commit Graph

2 Commits

Author SHA1 Message Date
Arthur O'Dwyer 7adb85884b [clang] [NFC] More exhaustive tests for deducing void return types
Differential Revision: https://reviews.llvm.org/D119772
2022-02-17 11:56:49 -05:00
Arthur O'Dwyer 3c8d2aa87c [clang] Don't emit redundant warnings for 'return;'
when the function declaration's return type is already invalid for
some reason. This is relevant to https://github.com/llvm/llvm-project/issues/49188
because another way that the declaration's return type could become
invalid is that it might be `C auto` where `C<void>` is false.

Differential Revision: https://reviews.llvm.org/D119094
2022-02-14 11:28:32 -05:00