clang-metatool
A framework for reusing code in clang tools
variable_refs.h
Go to the documentation of this file.
1 #ifndef INCLUDED_CLANGMETATOOL_COLLECTORS_VARIABLES_REFS_H
2 #define INCLUDED_CLANGMETATOOL_COLLECTORS_VARIABLES_REFS_H
3 
4 #include <clang/Frontend/CompilerInstance.h>
5 #include <clang/ASTMatchers/ASTMatchFinder.h>
6 #include <clang/Basic/FileManager.h>
7 #include <clang/Basic/SourceLocation.h>
8 
10 
11 namespace clangmetatool {
12 namespace collectors {
13 
18 class VariableRefsImpl;
19 
24 class VariableRefs {
25 private:
29  VariableRefsImpl *impl;
30 
31 public:
35  VariableRefs(clang::CompilerInstance *ci,
36  clang::ast_matchers::MatchFinder *f);
37 
41  ~VariableRefs();
42 
47 };
48 }
49 }
50 
51 #endif
52 
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 ----------------------------------
VariableRefs(clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f)