clang-tools 22.0.0git
clang::clangd::WithContext Class Reference

WithContext replaces Context::current() with a provided scope. More...

#include <Context.h>

Public Member Functions

 WithContext (Context C)
 ~WithContext ()
 WithContext (const WithContext &)=delete
WithContextoperator= (const WithContext &)=delete
 WithContext (WithContext &&)=delete
WithContextoperator= (WithContext &&)=delete

Detailed Description

WithContext replaces Context::current() with a provided scope.

When the WithContext is destroyed, the original scope is restored. For extending the current context with new value, prefer WithContextValue.

Definition at line 185 of file Context.h.

Constructor & Destructor Documentation

◆ WithContext() [1/3]

clang::clangd::WithContext::WithContext ( Context C)
inline

Definition at line 187 of file Context.h.

Referenced by operator=(), operator=(), WithContext(), and WithContext().

◆ ~WithContext()

clang::clangd::WithContext::~WithContext ( )
inline

Definition at line 188 of file Context.h.

References clang::clangd::Context::swapCurrent().

◆ WithContext() [2/3]

clang::clangd::WithContext::WithContext ( const WithContext & )
delete

References WithContext().

◆ WithContext() [3/3]

clang::clangd::WithContext::WithContext ( WithContext && )
delete

References WithContext().

Member Function Documentation

◆ operator=() [1/2]

WithContext & clang::clangd::WithContext::operator= ( const WithContext & )
delete

References WithContext().

◆ operator=() [2/2]

WithContext & clang::clangd::WithContext::operator= ( WithContext && )
delete

References WithContext().


The documentation for this class was generated from the following file: