Deleted Added
full compact
ASTConsumer.h (198954) ASTConsumer.h (208600)
1//===--- ASTConsumer.h - Abstract interface for reading ASTs ----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the ASTConsumer class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_ASTCONSUMER_H
15#define LLVM_CLANG_AST_ASTCONSUMER_H
16
17namespace clang {
18 class ASTContext;
1//===--- ASTConsumer.h - Abstract interface for reading ASTs ----*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the ASTConsumer class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_ASTCONSUMER_H
15#define LLVM_CLANG_AST_ASTCONSUMER_H
16
17namespace clang {
18 class ASTContext;
19 class CXXRecordDecl;
19 class DeclGroupRef;
20 class TagDecl;
21 class HandleTagDeclDefinition;
22 class SemaConsumer; // layering violation required for safe SemaConsumer
23 class VarDecl;
24
25/// ASTConsumer - This is an abstract interface that should be implemented by
26/// clients that read ASTs. This abstraction layer allows the client to be

--- 36 unchanged lines hidden (view full) ---

63 ///
64 /// The variable declaration itself will be a tentative
65 /// definition. If it had an incomplete array type, its type will
66 /// have already been changed to an array of size 1. However, the
67 /// declaration remains a tentative definition and has not been
68 /// modified by the introduction of an implicit zero initializer.
69 virtual void CompleteTentativeDefinition(VarDecl *D) {}
70
20 class DeclGroupRef;
21 class TagDecl;
22 class HandleTagDeclDefinition;
23 class SemaConsumer; // layering violation required for safe SemaConsumer
24 class VarDecl;
25
26/// ASTConsumer - This is an abstract interface that should be implemented by
27/// clients that read ASTs. This abstraction layer allows the client to be

--- 36 unchanged lines hidden (view full) ---

64 ///
65 /// The variable declaration itself will be a tentative
66 /// definition. If it had an incomplete array type, its type will
67 /// have already been changed to an array of size 1. However, the
68 /// declaration remains a tentative definition and has not been
69 /// modified by the introduction of an implicit zero initializer.
70 virtual void CompleteTentativeDefinition(VarDecl *D) {}
71
72 /// \brief Callback involved at the end of a translation unit to
73 /// notify the consumer that a vtable for the given C++ class is
74 /// required.
75 ///
76 /// \param RD The class whose vtable was used.
77 ///
78 /// \param DefinitionRequired Whether a definition of this vtable is
79 /// required in this translation unit; otherwise, it is only needed if
80 /// it was actually used.
81 virtual void HandleVTable(CXXRecordDecl *RD, bool DefinitionRequired) {}
82
71 /// PrintStats - If desired, print any statistics.
72 virtual void PrintStats() {}
73
74 // Support isa/cast/dyn_cast
75 static bool classof(const ASTConsumer *) { return true; }
76};
77
78} // end namespace clang.
79
80#endif
83 /// PrintStats - If desired, print any statistics.
84 virtual void PrintStats() {}
85
86 // Support isa/cast/dyn_cast
87 static bool classof(const ASTConsumer *) { return true; }
88};
89
90} // end namespace clang.
91
92#endif