clang API Documentation

Namespaces | Defines
Registry.cpp File Reference

Registry map populated at static initialization time. More...

#include "clang/ASTMatchers/Dynamic/Registry.h"
#include "Marshallers.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ManagedStatic.h"
#include <set>
#include <utility>
Include dependency graph for Registry.cpp:

Go to the source code of this file.

Namespaces

namespace  clang
namespace  clang::ast_matchers
namespace  clang::ast_matchers::dynamic

Defines

#define REGISTER_MATCHER(name)
#define SPECIFIC_MATCHER_OVERLOAD(name, Id)
#define REGISTER_OVERLOADED_2(name)

Detailed Description

Registry map populated at static initialization time.

Definition in file Registry.cpp.


Define Documentation

#define REGISTER_MATCHER (   name)
Value:
registerMatcher(#name, internal::makeMatcherAutoMarshall(                    \
                             ::clang::ast_matchers::name, #name));

Definition at line 52 of file Registry.cpp.

#define REGISTER_OVERLOADED_2 (   name)
Value:
do {                                                                         \
    MatcherDescriptor *Callbacks[] = {                                         \
      internal::makeMatcherAutoMarshall(SPECIFIC_MATCHER_OVERLOAD(name, 0),    \
                                        #name),                                \
      internal::makeMatcherAutoMarshall(SPECIFIC_MATCHER_OVERLOAD(name, 1),    \
                                        #name)                                 \
    };                                                                         \
    registerMatcher(#name,                                                     \
                    new internal::OverloadedMatcherDescriptor(Callbacks));     \
  } while (0)

Definition at line 60 of file Registry.cpp.

#define SPECIFIC_MATCHER_OVERLOAD (   name,
  Id 
)
Value:
static_cast< ::clang::ast_matchers::name##_Type##Id>(                        \
      ::clang::ast_matchers::name)

Definition at line 56 of file Registry.cpp.


Variable Documentation

ConstructorMap Constructors

Definition at line 43 of file Registry.cpp.