| Issue |
178629
|
| Summary |
[clang-tidy] false positive for variadic builtin function (hicpp-vararg)
|
| Labels |
clang-tidy,
false-positive
|
| Assignees |
|
| Reporter |
void2012
|
Example:
```cpp
// int __builtin_popcountg(...) noexcept;
int foo(int arg)
{
return __builtin_popcountg(arg); // Do not call c-style vararg functions clang-tidy[hicpp-vararg]
}
```
`__builtin_popcountg` actually takes a single argument, but its signature is ambiguous(internally interpreted as c-style va-arg according to clangd) to accept any integer type. Similarly, this applies to other builtins with ambiguous arguments.
Related to https://github.com/llvm/llvm-project/issues/45205
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs