-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFitbitFBBinderVisitor.h
36 lines (27 loc) · 980 Bytes
/
FitbitFBBinderVisitor.h
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
31
32
33
34
35
36
//
// FitbitFBBinderVisitor.h
// Created by Jonathon Mah on 2014-01-25.
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
#ifndef LLVM_CLANG_FITBIT_FBBINDER_VISITOR_H
#define LLVM_CLANG_FITBIT_FBBINDER_VISITOR_H
#include "KeyPathValidationConsumer.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Frontend/CompilerInstance.h"
using namespace clang;
class FBBinderVisitor : public RecursiveASTVisitor<FBBinderVisitor> {
private:
KeyPathValidationConsumer *Consumer;
const CompilerInstance &Compiler;
Selector BindSelector;
Selector BindMultipleSelector;
unsigned BindMultipleCountMismatchDiagID;
public:
FBBinderVisitor(KeyPathValidationConsumer *Consumer, const CompilerInstance &Compiler);
bool shouldVisitTemplateInstantiations() const { return false; }
bool shouldWalkTypesOfTypeLocs() const { return false; }
bool VisitObjCMessageExpr(ObjCMessageExpr *E);
};
#endif