[clang] e6c58e6 - [clang] Remove stdint.h include from a test

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 11:30:23 PDT 2022


Author: Nico Weber
Date: 2022-03-21T14:30:12-04:00
New Revision: e6c58e6fd32f5b8f4e789763843f1f1df19f2d25

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

LOG: [clang] Remove stdint.h include from a test

Tests must not include headers from the host system.
It looks like the include wasn't needed for anything, so just remove it.

This makes check-clang work in a `git bash` launched from a cmd.exe
that isn't an MSVC shell (that is, %INCLUDE% isn't set).

Added: 
    

Modified: 
    clang/test/Index/retain-excluded-conditional-blocks.m

Removed: 
    


################################################################################
diff  --git a/clang/test/Index/retain-excluded-conditional-blocks.m b/clang/test/Index/retain-excluded-conditional-blocks.m
index ebfc7c5723d5a..f90f0392347ef 100644
--- a/clang/test/Index/retain-excluded-conditional-blocks.m
+++ b/clang/test/Index/retain-excluded-conditional-blocks.m
@@ -1,9 +1,5 @@
 // RUN: c-index-test -retain-excluded-conditional-blocks %s | FileCheck %s
 
-#include <stdint.h>
-
-// CHECK: TypedefDecl=intptr_t
-
 // CHECK: [[@LINE+1]]:12: ObjCInterfaceDecl=MyCls
 @interface MyCls
 // CHECK: [[@LINE+1]]:8: ObjCInstanceMethodDecl=some_meth


        


More information about the cfe-commits mailing list