Author: Martin Storsjö
Date: 2023-05-10T01:07:45+03:00
New Revision: b80febdf43d33414bbc1c8d8a282a73d8f61a781

URL: 
https://github.com/llvm/llvm-project/commit/b80febdf43d33414bbc1c8d8a282a73d8f61a781
DIFF: 
https://github.com/llvm/llvm-project/commit/b80febdf43d33414bbc1c8d8a282a73d8f61a781.diff

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

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

Differential Revision: https://reviews.llvm.org/D149999

Added: 
    

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

Removed: 
    


################################################################################
diff  --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
 
b/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
index edec8d7380200..e1036483ee8f6 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-standard-types.h
@@ -9,7 +9,7 @@ typedef unsigned char       uint8_t;    // NOLINT
 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


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to