]> granicus.if.org Git - clang/commitdiff
Split out a header to hold APIs meant for the Sema implementation from Sema.h.
authorJohn McCall <rjmccall@apple.com>
Wed, 25 Aug 2010 22:03:47 +0000 (22:03 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 25 Aug 2010 22:03:47 +0000 (22:03 +0000)
Clients of Sema don't need to know (for example) the list of diagnostics we
support.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112093 91177308-0d34-0410-b5e6-96231b3b80d8

30 files changed:
include/clang/Sema/Sema.h
include/clang/Sema/SemaInternal.h [new file with mode: 0644]
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/JumpDiagnostics.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaAccess.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaCXXCast.cpp
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExceptionSpec.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Sema/SemaType.cpp
lib/Sema/TargetAttributesSema.cpp
lib/Sema/TreeTransform.h

index 491a38668ad1b30634d9ef3b8d7dae72f6983bdc..4bbc021bcd7ee222d5c7cbde859f58ed91f11e93 100644 (file)
@@ -19,7 +19,6 @@
 #include "clang/Sema/AnalysisBasedWarnings.h"
 #include "clang/Sema/IdentifierResolver.h"
 #include "clang/Sema/ObjCMethodList.h"
-#include "clang/Sema/SemaDiagnostic.h"
 #include "clang/AST/OperationKinds.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/Expr.h"
@@ -43,6 +42,7 @@ namespace clang {
   class ArrayType;
   class CXXBasePath;
   class CXXBasePaths;
+  typedef llvm::SmallVector<CXXBaseSpecifier*, 4> CXXCastPath;
   class CXXConstructorDecl;
   class CXXConversionDecl;
   class CXXDestructorDecl;
diff --git a/include/clang/Sema/SemaInternal.h b/include/clang/Sema/SemaInternal.h
new file mode 100644 (file)
index 0000000..1871350
--- /dev/null
@@ -0,0 +1,21 @@
+//===--- SemaInternal.h - Internal Sema Interfaces --------------*- C++ -*-===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file provides common API and #includes for the internal
+// implementation of Sema.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_SEMA_SEMA_INTERNAL_H
+#define LLVM_CLANG_SEMA_SEMA_INTERNAL_H
+
+#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaDiagnostic.h"
+
+#endif
index 775681eebe96cc4d58e1306489454ded757efc26..cfebed6a05b2ae74e47deb099a1ed4111f46358b 100644 (file)
@@ -13,8 +13,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
 #include "clang/Sema/AnalysisBasedWarnings.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Basic/SourceManager.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/AST/DeclCXX.h"
index 7bab65a072ad0685bdd2e4f1db1a6d34b7ff10ee..b23f615af7b75aa9365d2e74210c3590434349ab 100644 (file)
@@ -12,7 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/AST/DeclCXX.h"
 #include "clang/AST/Expr.h"
 #include "clang/AST/StmtObjC.h"
index 2e8827ddec99025f5062a53e47f878d8c82d69af..fd6dcfc0956412dceea62badab1125d719db91dd 100644 (file)
@@ -13,6 +13,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaDiagnostic.h"
 #include "TargetAttributesSema.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallSet.h"
index 90d317722218e9534bff26709c3fd9895e295168..965ec66a13e1cb69018d9252c493272e7baa4a2d 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/AST/ASTContext.h"
index 66d31dda9f5f53a2e8bb7bb622087101267badc8..4ba1a236ff8fd89782eed3c4f30cb23bc62964b8 100644 (file)
@@ -12,7 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/AST/Attr.h"
 #include "clang/AST/Expr.h"
index 89feea8a8d4730a4f114d89b6f1cea1dd7209409..c58c92cfceccd1eac5d95665e5d3bb380a505678 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/AST/ExprCXX.h"
 #include "clang/AST/ASTContext.h"
index de09ba4ae33d4ad53d7450acf1132b21c840376c..d7ef79304fde59e4b4e0109ee9b5583c08dcfc09 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclTemplate.h"
index f759b02327313199241842770d6571ad7ff72b8d..caef9fb9ed1ca059b125673f24899082c7cbac91 100644 (file)
@@ -13,6 +13,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/ScopeInfo.h"
 #include "clang/Analysis/Analyses/FormatString.h"
 #include "clang/AST/ASTContext.h"
index f8bb9b5a75953f3ac59fdbc59a7f7726d9129c01..fed65365706c82030f8b48123f6d48ba60a74afd 100644 (file)
@@ -10,7 +10,7 @@
 //  This file defines the code-completion semantic actions.
 //
 //===----------------------------------------------------------------------===//
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/Overload.h"
 #include "clang/Sema/CodeCompleteConsumer.h"
index 242a4df86d3686d0091eedc4237ff3ecda521902..158566a3842a386ebf6e766348b69dc002b5f42e 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/CXXFieldCollector.h"
index f515e6883970a62d563a7d0280d6e38e12ed09ff..a2cad6a5d23458013a30fad6e80ea1d7c8d39a05 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "TargetAttributesSema.h"
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclCXX.h"
index 6a09a75ddc84b85f14fe5bf3f74edfbff1a3c25f..e2662722b487f434a4e20cc5ab5948d4067f701d 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/CXXFieldCollector.h"
 #include "clang/Sema/Scope.h"
 #include "clang/Sema/Initialization.h"
index 13e42edaae6edc5cfe3085449140ad93a2e1ae0c..a0348540e5c1daf4314162dc9103e1fe60477256 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/ExternalSemaSource.h"
 #include "clang/Sema/Scope.h"
index 889ff2018ac8d959f2fa5d52f808ac9b333ab57e..101d7417249a10bea75bce605c8256b9dfcbe91b 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/AST/CXXInheritance.h"
 #include "clang/AST/Expr.h"
 #include "clang/AST/ExprCXX.h"
index fe9665e4d97d146d838fd96e837fdc93557ef909..0bc58ef21c7161974e7e97df59907b81410bd5f2 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/AnalysisBasedWarnings.h"
index be848339950a4f5f2aac0482af27517e337400d4..0bff419107bf1a524b43998ece55f68571d6e5ee 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/DeclSpec.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Lookup.h"
index 9558d3c875b8496b5b7ef4986174f347d9d2f9fb..56d80a02881cda3e9a2ae9e9fbb36174578a0eb7 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/Scope.h"
 #include "clang/Sema/Initialization.h"
index 7b9c25e456483c81a781f6c6b0f8ac2ad85e9ddd..cd498a05029b7f33d73f817b959b66bb7ca809fa 100644 (file)
@@ -18,7 +18,7 @@
 #include "clang/Sema/Designator.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Lookup.h"
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Lex/Preprocessor.h"
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclObjC.h"
index eedfa92c3b463d7315ecbb13da678d34d267e818..bb267e3733a467750801dea557c006f8ab3a8e0b 100644 (file)
@@ -12,6 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 #include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/DeclSpec.h"
 #include "clang/Sema/Scope.h"
index 7d5f15d81431a6159c8131daf2cb979d02c982b1..61d7603cdf0c8d75cfea90a0f4ee3a2fbf71b026 100644 (file)
@@ -12,7 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/AST/ExprObjC.h"
index 5dbb9668678b15beefc6f929ec1fdb21aa5db001..0d5968f1ef4268709aa0c3ee7df82e48107affdd 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/Initialization.h"
 #include "clang/Sema/Template.h"
index dd3dc6cf40b260ab0cd7b6d13e4623e3c784ed6b..aa1aa028c4d15a6869b5d9f053b8b36bbf3e828f 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Scope.h"
 #include "clang/Sema/ScopeInfo.h"
 #include "clang/Sema/Initialization.h"
index 8f00bf9d1babbd325673af8f4843fe94ed3d3c45..22a0933c7202e9c1988643330812166d82572a73 100644 (file)
@@ -9,7 +9,7 @@
 //  This file implements semantic analysis for C++ templates.
 //===----------------------------------------------------------------------===/
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/Scope.h"
 #include "clang/Sema/Template.h"
index 0458413f3542b912cdeee9fdc649c0a73a60b8f9..024060fb99615109864bb0da96ff2214fada43e3 100644 (file)
@@ -10,7 +10,7 @@
 //
 //===----------------------------------------------------------------------===/
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "TreeTransform.h"
 #include "clang/Sema/DeclSpec.h"
 #include "clang/Sema/Lookup.h"
index db216f3c568e521b94759b061e27283768b55258..1e95b911f196d65ecce0649e64a9490627328267 100644 (file)
@@ -9,7 +9,7 @@
 //  This file implements C++ template instantiation for declarations.
 //
 //===----------------------------------------------------------------------===/
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/Template.h"
 #include "clang/AST/ASTConsumer.h"
index e05766448c16fb73c0a1915821ee6bdf1d987a45..2bff6838c410c1ef0b89995806896523c1b600b1 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Template.h"
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/CXXInheritance.h"
index 52b069675defeb682dad2ea24fa451b9f841f45c..1854e7430853fc19d98cdf012fb08b4d91113117 100644 (file)
@@ -13,7 +13,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "TargetAttributesSema.h"
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Basic/TargetInfo.h"
 #include "clang/AST/DeclCXX.h"
 #include "llvm/ADT/Triple.h"
index 993762b79ff9dad402c4f32c5525c89e179acf1e..ed531c746648a700984efec8fe136213a3b80bdd 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef LLVM_CLANG_SEMA_TREETRANSFORM_H
 #define LLVM_CLANG_SEMA_TREETRANSFORM_H
 
-#include "clang/Sema/Sema.h"
+#include "clang/Sema/SemaInternal.h"
 #include "clang/Sema/Lookup.h"
 #include "clang/Sema/SemaDiagnostic.h"
 #include "clang/Sema/ScopeInfo.h"