]> granicus.if.org Git - clang/commitdiff
Move LocInfoType from Sema to AST.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 Feb 2016 17:42:01 +0000 (17:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 1 Feb 2016 17:42:01 +0000 (17:42 +0000)
While transient and only used during parsing, LocInfoTypes are still used
from ASTDumper and are part of the AST.

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

include/clang/AST/LocInfoType.h [moved from include/clang/Sema/LocInfoType.h with 88% similarity]
include/clang/Sema/Sema.h
lib/AST/ASTConsumer.cpp
lib/AST/ASTDumper.cpp
lib/Lex/HeaderSearch.cpp
lib/Sema/DeclSpec.cpp

similarity index 88%
rename from include/clang/Sema/LocInfoType.h
rename to include/clang/AST/LocInfoType.h
index 63dfa72b8f74230904c0aa065f011a935d0ac574..7e573bd7bac44a67545a92ef266533296a5e7fb6 100644 (file)
@@ -36,11 +36,10 @@ class LocInfoType : public Type {
   TypeSourceInfo *DeclInfo;
 
   LocInfoType(QualType ty, TypeSourceInfo *TInfo)
-    : Type((TypeClass)LocInfo, ty, ty->isDependentType(),
-           ty->isInstantiationDependentType(),
-           ty->isVariablyModifiedType(),
-           ty->containsUnexpandedParameterPack()),
-      DeclInfo(TInfo) {
+      : Type((TypeClass)LocInfo, ty, ty->isDependentType(),
+             ty->isInstantiationDependentType(), ty->isVariablyModifiedType(),
+             ty->containsUnexpandedParameterPack()),
+        DeclInfo(TInfo) {
     assert(getTypeClass() == (TypeClass)LocInfo && "LocInfo didn't fit in TC?");
   }
   friend class Sema;
index 0b270fe283698087513eecf38e23b6f81fa468e1..074bcf2537b56bfcf4a56333f267401620933683 100644 (file)
@@ -20,6 +20,7 @@
 #include "clang/AST/Expr.h"
 #include "clang/AST/ExprObjC.h"
 #include "clang/AST/ExternalASTSource.h"
+#include "clang/AST/LocInfoType.h"
 #include "clang/AST/MangleNumberingContext.h"
 #include "clang/AST/NSAPI.h"
 #include "clang/AST/PrettyPrinter.h"
@@ -35,7 +36,6 @@
 #include "clang/Sema/DeclSpec.h"
 #include "clang/Sema/ExternalSemaSource.h"
 #include "clang/Sema/IdentifierResolver.h"
-#include "clang/Sema/LocInfoType.h"
 #include "clang/Sema/ObjCMethodList.h"
 #include "clang/Sema/Ownership.h"
 #include "clang/Sema/Scope.h"
index cff82e9b100304887ef7f2c521c8c392ef35e9e2..55033b238c660bbb781d0595112a3728df96099d 100644 (file)
@@ -12,7 +12,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "clang/AST/ASTConsumer.h"
-#include "llvm/Bitcode/BitstreamReader.h"
 #include "clang/AST/Decl.h"
 #include "clang/AST/DeclGroup.h"
 using namespace clang;
index 9b7944271af8fe6e421c32fe2ed1fe3172002237..2a43d8365ca313db894551927666d5ff43b6caf4 100644 (file)
 #include "clang/AST/DeclLookups.h"
 #include "clang/AST/DeclObjC.h"
 #include "clang/AST/DeclVisitor.h"
+#include "clang/AST/LocInfoType.h"
 #include "clang/AST/StmtVisitor.h"
 #include "clang/AST/TypeVisitor.h"
 #include "clang/Basic/Builtins.h"
 #include "clang/Basic/Module.h"
 #include "clang/Basic/SourceManager.h"
-#include "clang/Sema/LocInfoType.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace clang;
 using namespace clang::comments;
index 2d005dd2e1f07c437a9645fe5948629533f364ab..f663caeff8188d337d2e31f24f08b1b7c90bc483 100644 (file)
@@ -14,7 +14,6 @@
 #include "clang/Lex/HeaderSearch.h"
 #include "clang/Basic/FileManager.h"
 #include "clang/Basic/IdentifierTable.h"
-#include "clang/Frontend/PCHContainerOperations.h"
 #include "clang/Lex/ExternalPreprocessorSource.h"
 #include "clang/Lex/HeaderMap.h"
 #include "clang/Lex/HeaderSearchOptions.h"
index 6f6c4ca5848fbb58d01b4ee6b01df91c8f7a1d18..ae0242cce07827b8a5f2cca74fc924c847724aba 100644 (file)
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclCXX.h"
 #include "clang/AST/Expr.h"
+#include "clang/AST/LocInfoType.h"
 #include "clang/AST/TypeLoc.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/Basic/TargetInfo.h"
-#include "clang/Sema/LocInfoType.h"
 #include "clang/Sema/ParsedTemplate.h"
 #include "clang/Sema/Sema.h"
 #include "clang/Sema/SemaDiagnostic.h"