[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)
Kevin Wolf via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 01:24:47 PDT 2024
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/67520 at github.com>
kevmw wrote:
> This example from the failing test should warn I think
> [...]
> Since the definition of foo2 specifies attributes that aren't present in the previous declaration.
Yes, this looks exactly like the thing we want to protect against to me (because chances are that the declaration is actually in a header file and other source files will check their calls only against this declaration, so real bugs can be expected to result from this).
https://github.com/llvm/llvm-project/pull/67520
More information about the cfe-commits
mailing list