Go to the documentation of this file.
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_FIND_ALL_SYMBOLS_SYMBOLINFO_H
10 #define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_FIND_ALL_SYMBOLS_SYMBOLINFO_H
12 #include "llvm/ADT/Optional.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Support/YAMLTraits.h"
15 #include "llvm/Support/raw_ostream.h"
21 namespace find_all_symbols {
49 typedef std::pair<ContextType, std::string>
Context;
75 const std::vector<Context> &Contexts);
80 llvm::StringRef
getName()
const {
return Name; }
111 std::string FilePath;
123 std::vector<Context> Contexts;
142 #endif // LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_FIND_ALL_SYMBOLS_SYMBOLINFO_H
Describes a named symbol from a header.
ContextType
The Context Type.
SymbolInfo::Signals Signals
bool operator<(const SymbolInfo &Symbol) const
Signals & operator+=(const Signals &RHS)
bool operator==(const SymbolAndSignals &RHS) const
std::string getQualifiedName() const
Get the fully-qualified symbol name.
const std::vector< SymbolInfo::Context > & getContexts() const
Get symbol contexts.
bool operator==(const SymbolInfo &Symbol) const
static constexpr llvm::StringLiteral Name
SymbolKind
The SymbolInfo Type.
bool WriteSymbolInfosToStream(llvm::raw_ostream &OS, const SymbolInfo::SignalMap &Symbols)
Write SymbolInfos to a stream (YAML format).
void SetFilePath(llvm::StringRef Path)
std::vector< SymbolAndSignals > ReadSymbolInfosFromYAML(llvm::StringRef Yaml)
Read SymbolInfos from a YAML document.
Signals operator+(const Signals &RHS) const
llvm::StringRef getFilePath() const
Get a relative file path where symbol comes from.
bool operator==(const Signals &RHS) const
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_string_ostream OS
llvm::StringRef getName() const
Get symbol name.
std::pair< ContextType, std::string > Context
A pair of <ContextType, ContextName>.
std::map< SymbolInfo, Signals > SignalMap
Signals(unsigned Seen, unsigned Used)
SymbolKind getSymbolKind() const
Get symbol type.
std::vector< HeaderHandle > Path