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