clang  3.7.0
Namespaces | Macros
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

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

Macros

#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.

Macro Definition Documentation

#define REGISTER_MATCHER (   name)
Value:
registerMatcher(#name, internal::makeMatcherAutoMarshall( \
::clang::ast_matchers::name, #name));
MatcherDescriptor * makeMatcherAutoMarshall(ReturnType(*Func)(), StringRef MatcherName)
0-arg overload
Definition: Marshallers.h:623

Definition at line 52 of file Registry.cpp.

#define REGISTER_OVERLOADED_2 (   name)
Value:
do { \
MatcherDescriptor *Callbacks[] = { \
#name), \
#name) \
}; \
registerMatcher(#name, \
new internal::OverloadedMatcherDescriptor(Callbacks)); \
} while (0)
#define SPECIFIC_MATCHER_OVERLOAD(name, Id)
Definition: Registry.cpp:56
MatcherDescriptor * makeMatcherAutoMarshall(ReturnType(*Func)(), StringRef MatcherName)
0-arg overload
Definition: Marshallers.h:623

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.