From 1abee64ad71519ea9d91f1fe76441b9cdb75b6c0 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Thu, 2 Aug 2012 17:39:44 +0000 Subject: [PATCH] ASTContext.h: replace include by a forward declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161186 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ASTContext.h | 5 ++++- lib/AST/ASTContext.cpp | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index a8b00a7c7b..37a86dbd91 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -20,7 +20,6 @@ #include "clang/Basic/OperatorKinds.h" #include "clang/Basic/PartialDiagnostic.h" #include "clang/Basic/VersionTuple.h" -#include "clang/AST/Comment.h" #include "clang/AST/Decl.h" #include "clang/AST/LambdaMangleContext.h" #include "clang/AST/NestedNameSpecifier.h" @@ -81,6 +80,10 @@ namespace clang { namespace Builtin { class Context; } + namespace comments { + class FullComment; + } + /// ASTContext - This class holds long-lived AST nodes (such as types and /// decls) that can be referred to throughout the semantic analysis of a file. class ASTContext : public RefCountedBase { diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index edcfe8ea7a..1c0c0c404d 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -13,6 +13,7 @@ #include "clang/AST/ASTContext.h" #include "clang/AST/CharUnits.h" +#include "clang/AST/Comment.h" #include "clang/AST/CommentLexer.h" #include "clang/AST/CommentSema.h" #include "clang/AST/CommentParser.h" -- 2.40.0