clang  6.0.0svn
Classes | Namespaces | Macros
ProgramStateTrait.h File Reference
#include "llvm/Support/Allocator.h"
#include "llvm/Support/DataTypes.h"
Include dependency graph for ProgramStateTrait.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::ImmutableMap< K, D, I >
class  llvm::ImmutableSet< K, I >
class  llvm::ImmutableList< T >
class  llvm::ImmutableListImpl< T >
struct  clang::ento::ProgramStatePartialTrait< T >
struct  clang::ento::ProgramStatePartialTrait< llvm::ImmutableMap< Key, Data, Info > >
struct  clang::ento::ProgramStatePartialTrait< llvm::ImmutableSet< Key, Info > >
struct  clang::ento::ProgramStatePartialTrait< llvm::ImmutableList< T > >
struct  clang::ento::ProgramStatePartialTrait< bool >
struct  clang::ento::ProgramStatePartialTrait< unsigned >
struct  clang::ento::ProgramStatePartialTrait< void * >
struct  clang::ento::ProgramStatePartialTrait< const void * >


 DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterators.
 Dataflow Directional Tag Classes.


 Declares a program state trait for type Type called Name, and introduce a typedef named NameTy. More...
#define CLANG_ENTO_PROGRAMSTATE_MAP(Key, Value)   llvm::ImmutableMap<Key, Value>
 Helper for registering a map trait. More...

Macro Definition Documentation


)    llvm::ImmutableMap<Key, Value>

Helper for registering a map trait.

If the map type were written directly in the invocation of REGISTER_TRAIT_WITH_PROGRAMSTATE, the comma in the template arguments would be treated as a macro argument separator, which is wrong. This allows the user to specify a map type in a way that the preprocessor can deal with.

Definition at line 108 of file ProgramStateTrait.h.


namespace { \
class Name {}; \
typedef Type Name ## Ty; \
} \
namespace clang { \
namespace ento { \
template <> \
struct ProgramStateTrait<Name> \
: public ProgramStatePartialTrait<Name ## Ty> { \
static void *GDMIndex() { static int Index; return &Index; } \
}; \
} \
The l-value was considered opaque, so the alignment was determined from a type.
Dataflow Directional Tag Classes.

Declares a program state trait for type Type called Name, and introduce a typedef named NameTy.

The macro should not be used inside namespaces, or for traits that must be accessible from more than one translation unit.

Definition at line 40 of file ProgramStateTrait.h.