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/StringRef.h"
13#include "llvm/Support/YAMLTraits.h"
14#include "llvm/Support/raw_ostream.h"
20namespace find_all_symbols {
48 typedef std::pair<ContextType, std::string>
Context;
74 const std::vector<Context> &Contexts);
79 llvm::StringRef
getName()
const {
return Name; }
110 std::string FilePath;
122 std::vector<Context> Contexts;
llvm::SmallString< 256U > Name
std::vector< HeaderHandle > Path
llvm::raw_string_ostream OS
Describes a named symbol from a header.
bool operator==(const SymbolInfo &Symbol) const
ContextType
The Context Type.
std::pair< ContextType, std::string > Context
A pair of <ContextType, ContextName>.
const std::vector< SymbolInfo::Context > & getContexts() const
Get symbol contexts.
SymbolKind
The SymbolInfo Type.
std::string getQualifiedName() const
Get the fully-qualified symbol name.
void SetFilePath(llvm::StringRef Path)
bool operator<(const SymbolInfo &Symbol) const
llvm::StringRef getFilePath() const
Get a relative file path where symbol comes from.
std::map< SymbolInfo, Signals > SignalMap
SymbolKind getSymbolKind() const
Get symbol type.
llvm::StringRef getName() const
Get symbol name.
bool WriteSymbolInfosToStream(llvm::raw_ostream &OS, const SymbolInfo::SignalMap &Symbols)
Write SymbolInfos to a stream (YAML format).
std::vector< SymbolAndSignals > ReadSymbolInfosFromYAML(llvm::StringRef Yaml)
Read SymbolInfos from a YAML document.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
bool operator==(const SymbolAndSignals &RHS) const
SymbolInfo::Signals Signals
Signals & operator+=(const Signals &RHS)
Signals operator+(const Signals &RHS) const
bool operator==(const Signals &RHS) const
Signals(unsigned Seen, unsigned Used)