diff options
-rw-r--r-- | clang/Sema/SemaStmt.cpp | 3 | ||||
-rw-r--r-- | clang/include/clang/Basic/TargetInfo.h | 13 | ||||
-rw-r--r-- | clang/include/clang/Parse/Action.h | 2 | ||||
-rw-r--r-- | clang/win32/clangAST/clangAST.vcproj | 8 | ||||
-rw-r--r-- | clang/win32/clangAnalysis/clangAnalysis.vcproj | 28 | ||||
-rw-r--r-- | clang/win32/clangRewrite/clangRewrite.vcproj | 169 |
6 files changed, 215 insertions, 8 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp index 7b544a28074..7dac6011f82 100644 --- a/clang/Sema/SemaStmt.cpp +++ b/clang/Sema/SemaStmt.cpp @@ -280,7 +280,8 @@ Sema::FinishSwitchStmt(SourceLocation SwitchLoc, StmtTy *Switch, ExprTy *Body) { // 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 diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h index 4eb6c3df3e5..72cde09c38d 100644 --- a/clang/include/clang/Basic/TargetInfo.h +++ b/clang/include/clang/Basic/TargetInfo.h @@ -150,7 +150,8 @@ public: /// 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 @@ public: 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); diff --git a/clang/include/clang/Parse/Action.h b/clang/include/clang/Parse/Action.h index 014c7818e3d..ee11b684449 100644 --- a/clang/include/clang/Parse/Action.h +++ b/clang/include/clang/Parse/Action.h @@ -21,7 +21,7 @@ namespace clang { // Semantic. class DeclSpec; class Declarator; - class ObjcKeywordInfo; + struct ObjcKeywordInfo; class AttributeList; // Parse. class Scope; diff --git a/clang/win32/clangAST/clangAST.vcproj b/clang/win32/clangAST/clangAST.vcproj index 943f146bb75..31de24ab71f 100644 --- a/clang/win32/clangAST/clangAST.vcproj +++ b/clang/win32/clangAST/clangAST.vcproj @@ -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>
diff --git a/clang/win32/clangAnalysis/clangAnalysis.vcproj b/clang/win32/clangAnalysis/clangAnalysis.vcproj index 49aca4eab27..220cf7d3a96 100644 --- a/clang/win32/clangAnalysis/clangAnalysis.vcproj +++ b/clang/win32/clangAnalysis/clangAnalysis.vcproj @@ -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>
diff --git a/clang/win32/clangRewrite/clangRewrite.vcproj b/clang/win32/clangRewrite/clangRewrite.vcproj new file mode 100644 index 00000000000..1d2ffea28dc --- /dev/null +++ b/clang/win32/clangRewrite/clangRewrite.vcproj @@ -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>
|