clang-tools 17.0.0git
Namespaces | Macros | Functions
InlayHints.cpp File Reference
#include "InlayHints.h"
#include "AST.h"
#include "Config.h"
#include "HeuristicResolver.h"
#include "ParsedAST.h"
#include "SourceCode.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclarationName.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/ScopeExit.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 

Macros

#define CHECK_KIND(Enumerator, ConfigProperty)
 

Functions

std::vector< InlayHint > clang::clangd::inlayHints (ParsedAST &AST, std::optional< Range > RestrictRange)
 Compute and return inlay hints for a file.
 

Macro Definition Documentation

◆ CHECK_KIND

#define CHECK_KIND (   Enumerator,
  ConfigProperty 
)
Value:
case InlayHintKind::Enumerator: \
assert(Cfg.InlayHints.ConfigProperty && \
"Shouldn't get here if kind is disabled!"); \
if (!Cfg.InlayHints.ConfigProperty) \
return; \
break