[cfe-commits] r89154 - in /cfe/trunk/test: Analysis/stack-addr-ps.c FixIt/fixit.c

Daniel Dunbar daniel at zuster.org
Tue Nov 17 14:25:17 PST 2009


Author: ddunbar
Date: Tue Nov 17 16:25:16 2009
New Revision: 89154

URL: http://llvm.org/viewvc/llvm-project?rev=89154&view=rev
Log:
Drop unnecessary #include.

Modified:
    cfe/trunk/test/Analysis/stack-addr-ps.c
    cfe/trunk/test/FixIt/fixit.c

Modified: cfe/trunk/test/Analysis/stack-addr-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/stack-addr-ps.c?rev=89154&r1=89153&r2=89154&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/stack-addr-ps.c (original)
+++ cfe/trunk/test/Analysis/stack-addr-ps.c Tue Nov 17 16:25:16 2009
@@ -1,8 +1,6 @@
 // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -verify %s
 // RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s
 
-#include <stdlib.h>
-
 int* f1() {
   int x = 0;
   return &x; // expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}

Modified: cfe/trunk/test/FixIt/fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit.c?rev=89154&r1=89153&r2=89154&view=diff

==============================================================================
--- cfe/trunk/test/FixIt/fixit.c (original)
+++ cfe/trunk/test/FixIt/fixit.c Tue Nov 17 16:25:16 2009
@@ -6,7 +6,9 @@
    provided as part of warning or extension diagnostics. All of the
    warnings will be fixed by -fixit, and the resulting file should
    compile cleanly with -Werror -pedantic. */
-#include <string.h> // FIXME: FIX-IT hint should add this for us!
+
+// FIXME: FIX-IT should add #include <string.h>?
+int strcmp(const char *s1, const char *s2);
 
 void f0(void) { };
 





More information about the cfe-commits mailing list