Properly #include ASTConsumer.h instead of forward declaration.
authorDaniel Jasper <djasper@google.com>
Mon, 11 Aug 2014 11:37:33 +0000 (11:37 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 11 Aug 2014 11:37:33 +0000 (11:37 +0000)
Otherwise, this can lead to compile failures if a user/subclass of
FrontendAction doesn't #include this file, even if CreateASTConsumer
isn't used directly.

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

include/clang/Frontend/FrontendAction.h

index 3eb9d7930a8be616410a50d1cf462f1df6346bc7..fa701331f4f79e63b85209631b6a7cc1c0d5b21e 100644 (file)
@@ -18,6 +18,7 @@
 #ifndef LLVM_CLANG_FRONTEND_FRONTENDACTION_H
 #define LLVM_CLANG_FRONTEND_FRONTENDACTION_H
 
+#include "clang/AST/ASTConsumer.h"
 #include "clang/Basic/LLVM.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/Frontend/ASTUnit.h"
@@ -28,7 +29,6 @@
 #include <vector>
 
 namespace clang {
-class ASTConsumer;
 class ASTMergeAction;
 class CompilerInstance;