[PATCH] D149999: [clang-tidy] [test] Narrow down a special case to MSVC mode

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 5 14:47:04 PDT 2023


mstorsjo created this revision.
mstorsjo added reviewers: alvinhochun, aaron.ballman, hans.
Herald added subscribers: PiotrZSL, carlosgalvezp, xazax.hun.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: clang-tools-extra.

For MinGW targets, size_t isn't a compiler defined type, just like
for unix targets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149999

Files:
  clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h


Index: clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
===================================================================
--- clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
+++ clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
@@ -9,7 +9,7 @@
 typedef unsigned short      uint16_t;   // NOLINT
 typedef unsigned long       uint32_t;   // NOLINT
 typedef unsigned long long  uint64_t;   // NOLINT
-#ifndef _WIN32
+#ifndef _MSC_VER
 typedef unsigned long long  size_t;     // NOLINT
 #endif
 typedef long                intptr_t;   // NOLINT


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149999.519980.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230505/6b264a72/attachment.bin>


More information about the cfe-commits mailing list