[PATCH] D133436: Ground work for cuda-related checks in clang-tidy

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 18 05:25:07 PDT 2022


aaron.ballman added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/stddef.h:12
+
+using size_t = long long unsigned;
+
----------------
barcisz wrote:
> njames93 wrote:
> > If this is all the file is used for, and it's only used for this one test file, can probably remove this header and inline the definition.
> > I also feel this definition may be fragile on certain platforms.
> I wanted to add it in a separate header for future proofness; as for the definition, I cannot really use uint64_t here since I cannot include the real stddef.h
`using size_t = decltype(sizeof(0));` is a better way to spell this, and I'd probably inline it rather than add a new header file.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133436/new/

https://reviews.llvm.org/D133436



More information about the cfe-commits mailing list