clang-tools  16.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 dependency graph for InlayHints.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define CHECK_KIND(Enumerator, ConfigProperty)
 

Functions

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

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