Clang: Updates to support the changes in the current SVN version of Clang/LLVM

This commit is contained in:
Henry
2011-07-09 22:26:06 +01:00
parent d81d99d490
commit 0ac85fbdf5
8 changed files with 22 additions and 45 deletions

View File

@ -236,8 +236,8 @@ case ThirdParty:
# using clang - not gcc # using clang - not gcc
setenv WM_CC 'clang' setenv WM_CC 'clang'
setenv WM_CXX 'clang++' setenv WM_CXX 'clang++'
set clang_version=llvm-2.9 #set clang_version=llvm-2.9
#set clang_version=llvm-svn set clang_version=llvm-svn
breaksw breaksw
default: default:
echo echo

View File

@ -253,8 +253,8 @@ OpenFOAM | ThirdParty)
# using clang - not gcc # using clang - not gcc
export WM_CC='clang' export WM_CC='clang'
export WM_CXX='clang++' export WM_CXX='clang++'
clang_version=llvm-2.9 #clang_version=llvm-2.9
#clang_version=llvm-svn clang_version=llvm-svn
;; ;;
*) *)
echo echo

View File

@ -119,7 +119,6 @@ public: \
defineTypeNameWithName(Type, Name) defineTypeNameWithName(Type, Name)
//- Define the typeName as \a Name for template sub-classes //- Define the typeName as \a Name for template sub-classes
# define defineTemplate2TypeNameWithName(Type, Name) \ # define defineTemplate2TypeNameWithName(Type, Name) \
template<> \
template<> \ template<> \
defineTypeNameWithName(Type, Name) defineTypeNameWithName(Type, Name)
#endif #endif
@ -161,7 +160,6 @@ public: \
defineDebugSwitchWithName(Type, Name, DebugSwitch) defineDebugSwitchWithName(Type, Name, DebugSwitch)
//- Define the debug information for templates sub-classes, lookup as \a Name //- Define the debug information for templates sub-classes, lookup as \a Name
# define defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch) \ # define defineTemplate2DebugSwitchWithName(Type, Name, DebugSwitch) \
template<> \
template<> \ template<> \
defineDebugSwitchWithName(Type, Name, DebugSwitch) defineDebugSwitchWithName(Type, Name, DebugSwitch)
#endif #endif

View File

@ -33,9 +33,9 @@ License
namespace Foam namespace Foam
{ {
template<> template<>
const char* Foam::NamedEnum const char* NamedEnum
< <
Foam::fanPressureFvPatchScalarField::fanFlowDirection, fanPressureFvPatchScalarField::fanFlowDirection,
2 2
>::names[] = >::names[] =
{ {

View File

@ -62,12 +62,12 @@ bool noFilm::read()
noFilm::noFilm noFilm::noFilm
( (
const word&, const word& modelType,
const fvMesh& mesh, const fvMesh& mesh,
const dimensionedVector& const dimensionedVector& g
) )
: :
surfaceFilmModel(mesh) surfaceFilmModel(modelType, mesh, g)
{} {}

View File

@ -28,17 +28,19 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<> namespace Foam
const char* Foam::NamedEnum
<
Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelType,
2
>::names[] =
{ {
"constant", template<>
"singleComponent" const char* NamedEnum
}; <
regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelType,
2
>::names[] =
{
"constant",
"singleComponent"
};
}
const Foam::NamedEnum const Foam::NamedEnum
< <
@ -48,7 +50,7 @@ const Foam::NamedEnum
Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelTypeNames_; Foam::regionModels::surfaceFilmModels::surfaceFilmModel::thermoModelTypeNames_;
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
@ -81,14 +83,6 @@ bool surfaceFilmModel::read()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
surfaceFilmModel::surfaceFilmModel(const fvMesh& mesh)
:
singleLayerRegion(mesh),
g_(vector::zero),
thermoModel_(tmConstant)
{}
surfaceFilmModel::surfaceFilmModel surfaceFilmModel::surfaceFilmModel
( (
const word& modelType, const word& modelType,

View File

@ -130,9 +130,6 @@ public:
// Constructors // Constructors
//- Construct null
surfaceFilmModel(const fvMesh& mesh);
//- Construct from type name, mesh and gravity vector //- Construct from type name, mesh and gravity vector
surfaceFilmModel surfaceFilmModel
( (

View File

@ -32,36 +32,24 @@ namespace Foam
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceLabelField::typeName("triSurfaceLabelField"); const word triSurfaceLabelField::typeName("triSurfaceLabelField");
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceScalarField::typeName("triSurfaceScalarField"); const word triSurfaceScalarField::typeName("triSurfaceScalarField");
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceVectorField::typeName("triSurfaceVectorField"); const word triSurfaceVectorField::typeName("triSurfaceVectorField");
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceSphericalTensorField::typeName const word triSurfaceSphericalTensorField::typeName
("triSurfaceSphericalTensorField"); ("triSurfaceSphericalTensorField");
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceSymmTensorField::typeName const word triSurfaceSymmTensorField::typeName
("triSurfaceSymmTensorField"); ("triSurfaceSymmTensorField");
#ifndef __clang__
template<> template<>
#endif
const word triSurfaceTensorField::typeName("triSurfaceTensorField"); const word triSurfaceTensorField::typeName("triSurfaceTensorField");
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //