forked from scrt/avcleaner
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConsumer.h
More file actions
30 lines (22 loc) · 653 Bytes
/
Copy pathConsumer.h
File metadata and controls
30 lines (22 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Created by vladimir on 16.10.19.
//
#ifndef AVCLEANER_CONSUMER_H
#define AVCLEANER_CONSUMER_H
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "MatchHandler.h"
namespace AVObfuscator {
extern clang::Rewriter ASTRewriter;
}
class Consumer : public clang::ASTConsumer {
public:
void HandleTranslationUnit(clang::ASTContext &Context) override {
for(auto consumer: consumers) {
llvm::outs() << "Running new consumer...\n";
consumer->HandleTranslationUnit(Context);
}
}
std::vector<ASTConsumer*> consumers;
};
#endif //AVCLEANER_CONSUMER_H