aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Index/IndexDataConsumer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Index/IndexDataConsumer.h')
-rw-r--r--include/clang/Index/IndexDataConsumer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Index/IndexDataConsumer.h b/include/clang/Index/IndexDataConsumer.h
index 315437048345..080f4cb4d097 100644
--- a/include/clang/Index/IndexDataConsumer.h
+++ b/include/clang/Index/IndexDataConsumer.h
@@ -11,6 +11,7 @@
#define LLVM_CLANG_INDEX_INDEXDATACONSUMER_H
#include "clang/Index/IndexSymbol.h"
+#include "clang/Lex/Preprocessor.h"
namespace clang {
class ASTContext;
@@ -36,6 +37,8 @@ public:
virtual void initialize(ASTContext &Ctx) {}
+ virtual void setPreprocessor(std::shared_ptr<Preprocessor> PP) {}
+
/// \returns true to continue indexing, or false to abort.
virtual bool handleDeclOccurence(const Decl *D, SymbolRoleSet Roles,
ArrayRef<SymbolRelation> Relations,