clang-tools 20.0.0git
Namespaces | Macros | Functions
DirectiveTree.cpp File Reference
#include "DirectiveTree.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/TokenKinds.h"
#include "llvm/Support/FormatVariadic.h"
#include <optional>
#include <variant>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Macros

#define OSTREAM_DUMP(Type)
 

Functions

void clang::clangd::chooseConditionalBranches (DirectiveTree &, const TokenStream &Code)
 Selects a "taken" branch for each conditional directive in the file.
 

Macro Definition Documentation

◆ OSTREAM_DUMP

#define OSTREAM_DUMP (   Type)
Value:
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Type &T) { \
Dumper{OS}(T); \
return OS; \
}
llvm::raw_ostream & OS
NodeType Type

Definition at line 186 of file DirectiveTree.cpp.

Variable Documentation

◆ Directives

int Directives = 0

Definition at line 218 of file DirectiveTree.cpp.

Referenced by clang::clangd::SymbolCollector::finish().

◆ Errors

int Errors = 0

◆ Indent

unsigned Indent = 0

Definition at line 149 of file DirectiveTree.cpp.

◆ OS

llvm::raw_ostream& OS

Definition at line 148 of file DirectiveTree.cpp.

Referenced by clang::clangd::abbreviatedString(), clang::clangd::markup::Block::asMarkdown(), clang::clangd::markup::Block::asPlainText(), clang::clangd::clangdMain(), clang::clangd::trace::createCSVMetricTracer(), clang::clangd::trace::createJSONTracer(), clang::clangd::SubsequenceMatcher< T >::DescribeTo(), clang::clangd::FuzzyMatcher::dumpLast(), dumpXPCObject(), clang::clangd::escapeBackslashAndQuotes(), clang::tidy::exportReplacements(), llvm::format_provider< clang::clangd::Position >::format(), clang::doc::HTMLGenerator::generateDocForInfo(), clang::doc::MDGenerator::generateDocForInfo(), clang::doc::YAMLGenerator::generateDocForInfo(), clang::doc::genIndex(), clang::doc::genMarkdown(), clang::tidy::utils::getFullPrefix(), clang::tidy::bugprone::getName(), clang::tidy::bugprone::getNameAsString(), clang::clangd::SelectionTree::Node::kind(), clang::clangd::IgnoreDiagnostics::log(), clang::clangd::LSPError::log(), clang::clangd::CancelledError::log(), main(), llvm::yaml::NormalizedSymbolID::NormalizedSymbolID(), clang::clangd::riff::operator<<(), clang::clangd::operator<<(), llvm::yaml::ScalarTraits< SmallString< U > >::output(), llvm::yaml::ScalarTraits< std::array< unsigned char, 20 > >::output(), clang::clangd::HoverInfo::present(), clang::clangd::TokenStream::print(), clang::clangd::printArgv(), clang::clangd::printObjCContainer(), clang::clangd::printObjCMethod(), clang::clangd::printQualifiedName(), clang::clangd::printTemplateSpecializationArgs(), clang::clangd::config::PrintTo(), clang::clangd::printType(), printVersion(), clang::clangd::markup::Paragraph::renderMarkdown(), clang::clangd::markup::BulletList::renderMarkdown(), clang::clangd::markup::Paragraph::renderPlainText(), clang::clangd::markup::BulletList::renderPlainText(), clang::find_all_symbols::YamlReporter::reportSymbols(), clang::query::InvalidQuery::run(), clang::query::HelpQuery::run(), clang::query::MatchQuery::run(), clang::doc::serializeIndex(), clang::doc::serializeReference(), clang::clangd::sortText(), clang::tidy::ClangTidyProfiling::StorageParams::StorageParams(), clang::clangd::toYAML(), CollectEntitiesVisitor::VisitNamedDecl(), clang::clangd::writeCodeToFixMessage(), clang::doc::writeDescription(), clang::doc::writeFileDefinition(), clang::doc::writeHeader(), clang::doc::writeLine(), writeModuleMap(), clang::doc::writeNameLink(), clang::doc::writeNewLine(), clang::find_all_symbols::WriteSymbolInfosToStream(), and clang::clangd::writeYAML().

◆ Tokens

int Tokens = 0

Definition at line 217 of file DirectiveTree.cpp.