[PATCH] D125429: Comment parsing: Allow inline commands to have 0 or more than 1 argument
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 13 13:18:20 PDT 2022
aaronpuchert added a comment.
In D125429#3511648 <https://reviews.llvm.org/D125429#3511648>, @aaronpuchert wrote:
> And it appears that `unsigned long` does not have a clear favorite here.
Found it on StackOverflow: https://stackoverflow.com/questions/11603818/why-is-there-ambiguity-between-uint32-t-and-uint64-t-when-using-size-t-on-mac-os.
> Is that because `long` is 32-bit like on Windows, but at the same time it's not the same as `unsigned` which is also 32-bit?
No. Mac is LP64 <https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models>, but uses `long long` for `(u)int64_t`.
> Perhaps we should overload on `(u)int32_t` instead `int`/`unsigned`?
Hence this doesn't solve it. I'm thinking that perhaps we should overload on `int`, `long`, `long long`. Seems silly, but C++ defines them as different types. Proposed this in D125580 <https://reviews.llvm.org/D125580>.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125429/new/
https://reviews.llvm.org/D125429
More information about the cfe-commits
mailing list