[PATCH] D90851: [clang-tidy] Extending bugprone-signal-handler with POSIX functions.

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 07:53:10 PST 2021


aaron.ballman added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/Inputs/Headers/string.h:12
 
-void abort(void);
-void _Exit(int);
-void quick_exit(int);
+typedef int size_t;
 
----------------
I think this is causing some test failures: https://reviews.llvm.org/harbormaster/unit/view/324847/

A better way to do this would be: `typedef __typeof__(sizeof(0)) size_t;`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90851



More information about the cfe-commits mailing list