clang  6.0.0svn
Classes | Public Member Functions | Public Attributes | List of all members
clang::Sema::PragmaStack< ValueType > Struct Template Reference

#include "clang/Sema/Sema.h"

Inheritance diagram for clang::Sema::PragmaStack< ValueType >:
Inheritance graph
[legend]
Collaboration diagram for clang::Sema::PragmaStack< ValueType >:
Collaboration graph
[legend]

Classes

struct  Slot
 

Public Member Functions

void Act (SourceLocation PragmaLocation, PragmaMsStackAction Action, llvm::StringRef StackSlotLabel, ValueType Value)
 
void SentinelAction (PragmaMsStackAction Action, StringRef Label)
 
 PragmaStack (const ValueType &Default)
 
bool hasValue () const
 

Public Attributes

SmallVector< Slot, 2 > Stack
 
ValueType DefaultValue
 
ValueType CurrentValue
 
SourceLocation CurrentPragmaLocation
 

Detailed Description

template<typename ValueType>
struct clang::Sema::PragmaStack< ValueType >

Definition at line 390 of file Sema.h.

Constructor & Destructor Documentation

◆ PragmaStack()

template<typename ValueType>
clang::Sema::PragmaStack< ValueType >::PragmaStack ( const ValueType &  Default)
inlineexplicit

Definition at line 428 of file Sema.h.

Member Function Documentation

◆ Act()

template<typename ValueType>
void Sema::PragmaStack::Act ( SourceLocation  PragmaLocation,
PragmaMsStackAction  Action,
llvm::StringRef  StackSlotLabel,
ValueType  Value 
)

Definition at line 308 of file SemaAttr.cpp.

◆ hasValue()

template<typename ValueType>
bool clang::Sema::PragmaStack< ValueType >::hasValue ( ) const
inline

Definition at line 431 of file Sema.h.

Referenced by clang::Sema::DiagnoseNonDefaultPragmaPack().

◆ SentinelAction()

template<typename ValueType>
void clang::Sema::PragmaStack< ValueType >::SentinelAction ( PragmaMsStackAction  Action,
StringRef  Label 
)
inline

Member Data Documentation

◆ CurrentPragmaLocation

template<typename ValueType>
SourceLocation clang::Sema::PragmaStack< ValueType >::CurrentPragmaLocation

◆ CurrentValue

template<typename ValueType>
ValueType clang::Sema::PragmaStack< ValueType >::CurrentValue

◆ DefaultValue

template<typename ValueType>
ValueType clang::Sema::PragmaStack< ValueType >::DefaultValue

Definition at line 434 of file Sema.h.

Referenced by clang::Sema::DiagnoseUnterminatedPragmaPack().

◆ Stack

template<typename ValueType>
SmallVector<Slot, 2> clang::Sema::PragmaStack< ValueType >::Stack

Definition at line 433 of file Sema.h.

Referenced by clang::Sema::DiagnoseUnterminatedPragmaPack().


The documentation for this struct was generated from the following files: