clang-tools 22.0.0git
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)
 Describes the structure of a source file, as seen by the preprocessor.
std::vector< Token::Rangeclang::clangd::pairDirectiveRanges (const DirectiveTree &Tree, const TokenStream &Code)
 Pairs preprocessor conditional directives and computes their token ranges.

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; \
}

Definition at line 186 of file DirectiveTree.cpp.