[cfe-commits] r41994 - in /cfe/trunk: Sema/SemaStmt.cpp include/clang/Basic/TargetInfo.h include/clang/Parse/Action.h win32/ win32/clangAST/ win32/clangAST/clangAST.vcproj win32/clangAnalysis/clangAnalysis.vcproj win32/clangCodeGen/ win32/clangDriver/ win32/clangLex/ win32/clangParse/ win32/clangRewrite/ win32/clangRewrite/clangRewrite.vcproj win32/clangSema/

Hartmut Kaiser hartmut.kaiser at gmail.com
Sat Sep 15 17:04:23 PDT 2007


Author: hkaiser
Date: Sat Sep 15 19:04:22 2007
New Revision: 41994

URL: http://llvm.org/viewvc/llvm-project?rev=41994&view=rev
Log:
Updated VC++ build system.
Silenced a couple of VC++ warnings.

Added:
    cfe/trunk/win32/clangRewrite/
    cfe/trunk/win32/clangRewrite/clangRewrite.vcproj   (with props)
Modified:
    cfe/trunk/Sema/SemaStmt.cpp
    cfe/trunk/include/clang/Basic/TargetInfo.h
    cfe/trunk/include/clang/Parse/Action.h
    cfe/trunk/win32/   (props changed)
    cfe/trunk/win32/clangAST/   (props changed)
    cfe/trunk/win32/clangAST/clangAST.vcproj
    cfe/trunk/win32/clangAnalysis/clangAnalysis.vcproj
    cfe/trunk/win32/clangCodeGen/   (props changed)
    cfe/trunk/win32/clangDriver/   (props changed)
    cfe/trunk/win32/clangLex/   (props changed)
    cfe/trunk/win32/clangParse/   (props changed)
    cfe/trunk/win32/clangSema/   (props changed)

Modified: cfe/trunk/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaStmt.cpp?rev=41994&r1=41993&r2=41994&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/Sema/SemaStmt.cpp Sat Sep 15 19:04:22 2007
@@ -280,7 +280,8 @@
   
   // Get the bitwidth of the switched-on value before promotions.  We must
   // convert the integer case values to this width before comparison.
-  unsigned CondWidth = Context.getTypeSize(CondType, SwitchLoc);
+  unsigned CondWidth = 
+    static_cast<unsigned>(Context.getTypeSize(CondType, SwitchLoc));
   bool CondIsSigned = CondType->isSignedIntegerType();
   
   // Accumulate all of the case values in a vector so that we can sort them

Modified: cfe/trunk/include/clang/Basic/TargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/TargetInfo.h?rev=41994&r1=41993&r2=41994&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/TargetInfo.h (original)
+++ cfe/trunk/include/clang/Basic/TargetInfo.h Sat Sep 15 19:04:22 2007
@@ -150,7 +150,8 @@
   
   /// getFloatInfo - Return the size of 'float' for this target, in bits.  
   void getFloatInfo(uint64_t &Size, unsigned &Align, SourceLocation Loc) {
-    Align = Size = 32;  // FIXME: implement correctly.
+    Align = 32;  // FIXME: implement correctly.
+    Size = 32;
   }
 
   /// getDoubleInfo - Return the size of 'double' for this target, in bits.  
@@ -191,31 +192,31 @@
   unsigned getCharWidth(SourceLocation Loc) {
     uint64_t Size; unsigned Align;
     getCharInfo(Size, Align, Loc);
-    return Size;
+    return static_cast<unsigned>(Size);
   }
   
   unsigned getWCharWidth(SourceLocation Loc) {
     uint64_t Size; unsigned Align;
     getWCharInfo(Size, Align, Loc);
-    return Size;
+    return static_cast<unsigned>(Size);
   }
   
   unsigned getIntWidth(SourceLocation Loc) {
     uint64_t Size; unsigned Align;
     getIntInfo(Size, Align, Loc);
-    return Size;
+    return static_cast<unsigned>(Size);
   }
   
   unsigned getLongWidth(SourceLocation Loc) {
     uint64_t Size; unsigned Align;
     getLongInfo(Size, Align, Loc);
-    return Size;
+    return static_cast<unsigned>(Size);
   }
 
   unsigned getLongLongWidth(SourceLocation Loc) {
     uint64_t Size; unsigned Align;
     getLongLongInfo(Size, Align, Loc);
-    return Size;
+    return static_cast<unsigned>(Size);
   }
 private:
   void ComputeWCharInfo(SourceLocation Loc);

Modified: cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Action.h?rev=41994&r1=41993&r2=41994&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/trunk/include/clang/Parse/Action.h Sat Sep 15 19:04:22 2007
@@ -21,7 +21,7 @@
   // Semantic.
   class DeclSpec;
   class Declarator;
-  class ObjcKeywordInfo;
+  struct ObjcKeywordInfo;
   class AttributeList;
   // Parse.
   class Scope;

Propchange: cfe/trunk/win32/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1 @@
+debug

Propchange: cfe/trunk/win32/clangAST/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangAST.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user

Modified: cfe/trunk/win32/clangAST/clangAST.vcproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/win32/clangAST/clangAST.vcproj?rev=41994&r1=41993&r2=41994&view=diff

==============================================================================
--- cfe/trunk/win32/clangAST/clangAST.vcproj (original)
+++ cfe/trunk/win32/clangAST/clangAST.vcproj Sat Sep 15 19:04:22 2007
@@ -203,6 +203,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\include\clang\AST\ASTConsumer.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\include\clang\AST\ASTContext.h"
 				>
 			</File>
@@ -227,6 +231,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\include\clang\AST\PrettyPrinter.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\include\clang\AST\RecordLayout.h"
 				>
 			</File>

Modified: cfe/trunk/win32/clangAnalysis/clangAnalysis.vcproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/win32/clangAnalysis/clangAnalysis.vcproj?rev=41994&r1=41993&r2=41994&view=diff

==============================================================================
--- cfe/trunk/win32/clangAnalysis/clangAnalysis.vcproj (original)
+++ cfe/trunk/win32/clangAnalysis/clangAnalysis.vcproj Sat Sep 15 19:04:22 2007
@@ -160,6 +160,10 @@
 				RelativePath="..\..\Analysis\LiveVariables.cpp"
 				>
 			</File>
+			<File
+				RelativePath="..\..\Analysis\UnintializedValues.cpp"
+				>
+			</File>
 		</Filter>
 		<Filter
 			Name="Header Files"
@@ -167,6 +171,26 @@
 			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
 			>
 			<File
+				RelativePath="..\..\include\clang\Analysis\CFGStmtVisitor.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\include\clang\Analysis\CFGVarDeclVisitor.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\Analysis\DataflowSolver.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\include\clang\Analysis\DataflowStmtVisitor.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\include\clang\Analysis\DataflowValues.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\include\clang\Analysis\LiveVariables.h"
 				>
 			</File>
@@ -174,6 +198,10 @@
 				RelativePath="..\..\include\clang\Analysis\LocalCheckers.h"
 				>
 			</File>
+			<File
+				RelativePath="..\..\include\clang\Analysis\UninitializedValues.h"
+				>
+			</File>
 		</Filter>
 	</Files>
 	<Globals>

Propchange: cfe/trunk/win32/clangCodeGen/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangCodeGen.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user

Propchange: cfe/trunk/win32/clangDriver/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangDriver.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user

Propchange: cfe/trunk/win32/clangLex/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangLex.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user

Propchange: cfe/trunk/win32/clangParse/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangParse.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user

Added: cfe/trunk/win32/clangRewrite/clangRewrite.vcproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/win32/clangRewrite/clangRewrite.vcproj?rev=41994&view=auto

==============================================================================
--- cfe/trunk/win32/clangRewrite/clangRewrite.vcproj (added)
+++ cfe/trunk/win32/clangRewrite/clangRewrite.vcproj Sat Sep 15 19:04:22 2007
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="8.00"
+	Name="clangRewrite"
+	ProjectGUID="{F9FBDDA2-9EE1-473C-A456-BE20B7B2439D}"
+	RootNamespace="clangRewrite"
+	Keyword="Win32Proj"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="..\Debug"
+			IntermediateDirectory="Debug"
+			ConfigurationType="4"
+			CharacterSet="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="..\..\include;..\..\..\..\include;..\..\..\..\win32"
+				PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLibrarianTool"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="..\Release"
+			IntermediateDirectory="Release"
+			ConfigurationType="4"
+			CharacterSet="2"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalIncludeDirectories="..\..\include;..\..\..\..\include;..\..\..\..\win32"
+				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLibrarianTool"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\Rewrite\Rewriter.cpp"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\include\clang\Rewrite\Rewriter.h"
+				>
+			</File>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Propchange: cfe/trunk/win32/clangRewrite/clangRewrite.vcproj

------------------------------------------------------------------------------
    svn:eol-style = CRLF

Propchange: cfe/trunk/win32/clangRewrite/clangRewrite.vcproj

------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: cfe/trunk/win32/clangSema/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Sep 15 19:04:22 2007
@@ -0,0 +1,2 @@
+Debug
+clangSema.vcproj.SLARTIBARTFAST.Hartmut Kaiser.user





More information about the cfe-commits mailing list