clang-metatool
A framework for reusing code in clang tools
include_graph.h
Go to the documentation of this file.
1 #ifndef INCLUDED_CLANGMETATOOL_COLLECTORS_INCLUDE_GRAPH_H
2 #define INCLUDED_CLANGMETATOOL_COLLECTORS_INCLUDE_GRAPH_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 
11 
12 namespace clangmetatool {
13 namespace collectors {
14 
19 class IncludeGraphImpl;
20 
26 class IncludeGraph {
27 private:
31  IncludeGraphImpl *impl;
32 
33 public:
37  IncludeGraph(clang::CompilerInstance *ci,
38  clang::ast_matchers::MatchFinder *f);
39 
43  ~IncludeGraph();
44 
49 };
50 }
51 }
52 
53 #endif
54 
55 // ----------------------------------------------------------------------------
56 // Copyright 2018 Bloomberg Finance L.P.
57 //
58 // Licensed under the Apache License, Version 2.0 (the "License");
59 // you may not use this file except in compliance with the License.
60 // You may obtain a copy of the License at
61 //
62 // http://www.apache.org/licenses/LICENSE-2.0
63 //
64 // Unless required by applicable law or agreed to in writing, software
65 // distributed under the License is distributed on an "AS IS" BASIS,
66 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
67 // See the License for the specific language governing permissions and
68 // limitations under the License.
69 // ----------------------------- END-OF-FILE ----------------------------------
IncludeGraph(clang::CompilerInstance *ci, clang::ast_matchers::MatchFinder *f)