clang-metatool
A framework for reusing code in clang tools
find_calls.h
Go to the documentation of this file.
1 #ifndef INCLUDED_CLANGMETATOOL_COLLECTORS_FIND_CALLS_H
2 #define INCLUDED_CLANGMETATOOL_COLLECTORS_FIND_CALLS_H
3 
4 #include <clang/Frontend/CompilerInstance.h>
5 #include <clang/ASTMatchers/ASTMatchFinder.h>
6 
8 
9 namespace clangmetatool {
10 namespace collectors {
11 
16 class FindCallsImpl;
17 
22 class FindCalls {
23 private:
27  FindCallsImpl *impl;
28 
29 public:
36  FindCalls(clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f,
37  std::string n);
38 
42  ~FindCalls();
43 
48 };
49 }
50 }
51 
52 #endif
53 // ----------------------------------------------------------------------------
54 // Copyright 2018 Bloomberg Finance L.P.
55 //
56 // Licensed under the Apache License, Version 2.0 (the "License");
57 // you may not use this file except in compliance with the License.
58 // You may obtain a copy of the License at
59 //
60 // http://www.apache.org/licenses/LICENSE-2.0
61 //
62 // Unless required by applicable law or agreed to in writing, software
63 // distributed under the License is distributed on an "AS IS" BASIS,
64 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
65 // See the License for the specific language governing permissions and
66 // limitations under the License.
67 // ----------------------------- END-OF-FILE ----------------------------------
FindCalls(clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f, std::string n)