 |
|
 |
|
| Files: |
1 |
|
Branches Taken: |
16.7% |
1 / 6 |
| Generated: |
2010-02-10 01:31 |
|
Branches Executed: |
33.3% |
2 / 6 |
| |
|
Line Coverage: |
60.0% |
6 / 10 |
| |
 |
|
 |
1 : //===--- ExternalSemaSource.h - External Sema Interface ---------*- 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 ExternalSemaSource interface.
11 : //
12 : //===----------------------------------------------------------------------===//
13 : #ifndef LLVM_CLANG_SEMA_EXTERNAL_SEMA_SOURCE_H
14 : #define LLVM_CLANG_SEMA_EXTERNAL_SEMA_SOURCE_H
15 :
16 : #include "clang/AST/DeclObjC.h"
17 : #include "clang/AST/ExternalASTSource.h"
18 :
19 : namespace clang {
20 :
21 : class Sema;
22 :
23 : /// \brief An abstract interface that should be implemented by
24 : /// external AST sources that also provide information for semantic
25 : /// analysis.
0: branch 1 not taken
44: branch 2 taken
0: branch 5 not taken
0: branch 6 not taken
0: branch 9 not taken
0: branch 10 not taken
26 44: class ExternalSemaSource : public ExternalASTSource {
27 : public:
28 48: ExternalSemaSource() {
29 48: ExternalASTSource::SemaSource = true;
30 48: }
31 :
32 : /// \brief Initialize the semantic source with the Sema instance
33 : /// being used to perform semantic analysis on the abstract syntax
34 : /// tree.
35 0: virtual void InitializeSema(Sema &S) {}
36 :
37 : /// \brief Inform the semantic consumer that Sema is no longer available.
38 0: virtual void ForgetSema() {}
39 :
40 : /// \brief Load the contents of the global method pool for a given
41 : /// selector.
42 : ///
43 : /// \returns a pair of Objective-C methods lists containing the
44 : /// instance and factory methods, respectively, with this selector.
45 : virtual std::pair<ObjCMethodList, ObjCMethodList>
46 0: ReadMethodPool(Selector Sel) {
47 0: return std::pair<ObjCMethodList, ObjCMethodList>();
48 : }
49 :
50 : // isa/cast/dyn_cast support
51 140: static bool classof(const ExternalASTSource *Source) {
52 140: return Source->SemaSource;
53 : }
54 : static bool classof(const ExternalSemaSource *) { return true; }
55 : };
56 :
57 : } // end namespace clang
58 :
59 : #endif
Generated: 2010-02-10 01:31 by zcov