From: Sebastian Redl Date: Sat, 7 Mar 2009 12:16:37 +0000 (+0000) Subject: Some struct/class mismatch fixes, to silence MSVC warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43af76e845c95be160c088ec11ba3c43e2527fa8;p=clang Some struct/class mismatch fixes, to silence MSVC warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66335 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index 4642e4eeea..b9f9d14540 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -23,7 +23,7 @@ namespace llvm { namespace clang { class Diagnostic; - struct LangOptions; + class LangOptions; class CodeGenerator : public ASTConsumer { public: diff --git a/include/clang/Parse/DeclSpec.h b/include/clang/Parse/DeclSpec.h index 4c1bbdf6d7..09b6e5c522 100644 --- a/include/clang/Parse/DeclSpec.h +++ b/include/clang/Parse/DeclSpec.h @@ -21,7 +21,7 @@ #include "llvm/ADT/PointerIntPair.h" namespace clang { - struct LangOptions; + class LangOptions; class Diagnostic; class IdentifierInfo; @@ -776,7 +776,7 @@ private: DeclaratorChunk::ParamInfo InlineParams[16]; bool InlineParamsUsed; - friend class DeclaratorChunk; + friend struct DeclaratorChunk; public: Declarator(const DeclSpec &ds, TheContext C) diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 76ab0f8937..c3a84af0c5 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -51,7 +51,7 @@ namespace clang { class NamedDecl; class ValueDecl; class VarDecl; - struct LangOptions; + class LangOptions; class Diagnostic; class AnnotateAttr; diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 92bc0bc750..28cb9bf715 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -52,7 +52,7 @@ namespace clang { class TypedefDecl; class FunctionDecl; class QualType; - struct LangOptions; + class LangOptions; class Token; class IntegerLiteral; class StringLiteral; @@ -79,7 +79,7 @@ namespace clang { class ObjCContainerDecl; struct BlockSemaInfo; class BasePaths; - class MemberLookupCriteria; + struct MemberLookupCriteria; /// Sema - This implements semantic analysis and AST building for C. class Sema : public Action {