clang  6.0.0svn
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/STLExtras.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
 Dataflow Directional Tag Classes.
 
 clang::ast_matchers
 
 clang::ast_matchers::dynamic
 

Macros

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

Detailed Description

Registry map populated at static initialization time.

Definition in file Registry.cpp.

Macro Definition Documentation

◆ MATCHER_OVERLOAD_ENTRY

#define MATCHER_OVERLOAD_ENTRY (   name,
  Id 
)
Value:
#name)
#define SPECIFIC_MATCHER_OVERLOAD(name, Id)
Definition: Registry.cpp:63
int Id
Definition: ASTDiff.cpp:191
std::unique_ptr< MatcherDescriptor > makeMatcherAutoMarshall(ReturnType(*Func)(), StringRef MatcherName)
Helper functions to select the appropriate marshaller functions.
Definition: Marshallers.h:667

Definition at line 67 of file Registry.cpp.

◆ REGISTER_MATCHER

#define REGISTER_MATCHER (   name)
Value:
registerMatcher(#name, internal::makeMatcherAutoMarshall( \
::clang::ast_matchers::name, #name));
std::unique_ptr< MatcherDescriptor > makeMatcherAutoMarshall(ReturnType(*Func)(), StringRef MatcherName)
Helper functions to select the appropriate marshaller functions.
Definition: Marshallers.h:667

Definition at line 55 of file Registry.cpp.

◆ REGISTER_MATCHER_OVERLOAD

#define REGISTER_MATCHER_OVERLOAD (   name)
Value:
registerMatcher(#name, \
llvm::make_unique<internal::OverloadedMatcherDescriptor>(name##Callbacks))

Definition at line 59 of file Registry.cpp.

◆ REGISTER_OVERLOADED_2

#define REGISTER_OVERLOADED_2 (   name)
Value:
do { \
std::unique_ptr<MatcherDescriptor> name##Callbacks[] = { \
MATCHER_OVERLOAD_ENTRY(name, 0), \
MATCHER_OVERLOAD_ENTRY(name, 1)}; \
REGISTER_MATCHER_OVERLOAD(name); \
} while (0)

Definition at line 71 of file Registry.cpp.

◆ SPECIFIC_MATCHER_OVERLOAD

#define SPECIFIC_MATCHER_OVERLOAD (   name,
  Id 
)
Value:
static_cast<::clang::ast_matchers::name##_Type##Id>( \
::clang::ast_matchers::name)
int Id
Definition: ASTDiff.cpp:191

Definition at line 63 of file Registry.cpp.