Unverified Commit 818de32f authored by kelbon's avatar kelbon Committed by GitHub
Browse files

Warning for incorrect use of 'pure' attribute (#78200)

This adds a warning when applying the `pure` attribute along with the `const` attribute, or when applying the `pure` attribute to a function with a `void` return type (including constructors and destructors).

Fixes https://github.com/llvm/llvm-project/issues/77482
parent b9a1e2ab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment