clang-metatool
A framework for reusing code in clang tools
find_calls_data.h
Go to the documentation of this file.
1 #ifndef INCLUDED_CLANGMETATOOL_COLLECTORS_FIND_CALLS_DATA_H
2 #define INCLUDED_CLANGMETATOOL_COLLECTORS_FIND_CALLS_DATA_H
3 
4 #include <clang/Frontend/CompilerInstance.h>
5 #include <clang/ASTMatchers/ASTMatchers.h>
6 
7 namespace clangmetatool {
8 namespace collectors {
9 
13 struct FindCallsData {
14 
18  std::multimap<const clang::FunctionDecl *, const clang::CallExpr *>
20 
24  std::map<const clang::CallExpr *, const clang::DeclRefExpr *> call_ref;
25 };
26 }
27 }
28 
29 #endif
30 
31 // ----------------------------------------------------------------------------
32 // Copyright 2018 Bloomberg Finance L.P.
33 //
34 // Licensed under the Apache License, Version 2.0 (the "License");
35 // you may not use this file except in compliance with the License.
36 // You may obtain a copy of the License at
37 //
38 // http://www.apache.org/licenses/LICENSE-2.0
39 //
40 // Unless required by applicable law or agreed to in writing, software
41 // distributed under the License is distributed on an "AS IS" BASIS,
42 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 // See the License for the specific language governing permissions and
44 // limitations under the License.
45 // ----------------------------- END-OF-FILE ----------------------------------
std::map< const clang::CallExpr *, const clang::DeclRefExpr * > call_ref
std::multimap< const clang::FunctionDecl *, const clang::CallExpr * > call_context