clang-tools 19.0.0git
Namespaces | Macros | Functions
InlayHints.cpp File Reference
#include "InlayHints.h"
#include "../clang-tidy/utils/DesignatedInitializers.h"
#include "AST.h"
#include "Config.h"
#include "HeuristicResolver.h"
#include "ParsedAST.h"
#include "SourceCode.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclarationName.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/AST/Type.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/OperatorKinds.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/SaveAndRestore.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
#include <string>
#include "clang/AST/TypeNodes.inc"

Go to the source code of this file.

Namespaces

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

Macros

#define ABSTRACT_TYPE(TY, BASE)
 
#define TYPE(TY, BASE)
 
#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

◆ ABSTRACT_TYPE

#define ABSTRACT_TYPE (   TY,
  BASE 
)

◆ 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

◆ TYPE

#define TYPE (   TY,
  BASE 
)
Value:
case Type::TY: \
return getDeclForTypeImpl(llvm::cast<TY##Type>(T));

Variable Documentation

◆ Decl

const FunctionDecl* Decl = nullptr

Definition at line 378 of file InlayHints.cpp.

◆ ElseIfs

llvm::DenseSet<const IfStmt *> ElseIfs

Definition at line 557 of file InlayHints.cpp.

◆ Loc

FunctionProtoTypeLoc Loc

Definition at line 379 of file InlayHints.cpp.