Line data Source code
1 : //===--- SymbolReporter.h - Symbol Reporter ---------------------*- 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 : #ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_SYMBOL_REPORTER_H
11 : #define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_SYMBOL_REPORTER_H
12 :
13 : #include "SymbolInfo.h"
14 :
15 : namespace clang {
16 : namespace find_all_symbols {
17 :
18 : /// \brief An interface for classes that collect symbols.
19 : class SymbolReporter {
20 : public:
21 0 : virtual ~SymbolReporter() = default;
22 :
23 : virtual void reportSymbols(llvm::StringRef FileName,
24 : const SymbolInfo::SignalMap &Symbols) = 0;
25 : };
26 :
27 : } // namespace find_all_symbols
28 : } // namespace clang
29 :
30 : #endif // LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_SYMBOL_REPORTER_H
|