clang  10.0.0svn
Macros | Functions
JSONNodeDumper.cpp File Reference
#include "clang/AST/JSONNodeDumper.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/AST/DeclNodes.inc"
#include "clang/Basic/AttrList.inc"
Include dependency graph for JSONNodeDumper.cpp:

Go to the source code of this file.

Macros

#define DECL(DERIVED, BASE)
 
#define ABSTRACT_DECL(DECL)
 
#define ATTR(X)
 
#define FIELD2(Name, Flag)   if (RD->Flag()) Ret[Name] = true
 
#define FIELD1(Flag)   FIELD2(#Flag, Flag)
 

Functions

static llvm::json::Object createDefaultConstructorDefinitionData (const CXXRecordDecl *RD)
 
static llvm::json::Object createCopyConstructorDefinitionData (const CXXRecordDecl *RD)
 
static llvm::json::Object createMoveConstructorDefinitionData (const CXXRecordDecl *RD)
 
static llvm::json::Object createCopyAssignmentDefinitionData (const CXXRecordDecl *RD)
 
static llvm::json::Object createMoveAssignmentDefinitionData (const CXXRecordDecl *RD)
 
static llvm::json::Object createDestructorDefinitionData (const CXXRecordDecl *RD)
 

Macro Definition Documentation

◆ ABSTRACT_DECL

#define ABSTRACT_DECL (   DECL)

◆ ATTR

#define ATTR (   X)
Value:
case attr::X: \
AttrName = #X"Attr"; \
break;
X
Add a minimal nested name specifier fixit hint to allow lookup of a tag name from an outer enclosing ...
Definition: SemaDecl.cpp:14652

◆ DECL

#define DECL (   DERIVED,
  BASE 
)
Value:
case Decl::DERIVED: \
return writePreviousDeclImpl(cast<DERIVED##Decl>(D));

◆ FIELD1

#define FIELD1 (   Flag)    FIELD2(#Flag, Flag)

Definition at line 324 of file JSONNodeDumper.cpp.

Referenced by createDestructorDefinitionData().

◆ FIELD2

#define FIELD2 (   Name,
  Flag 
)    if (RD->Flag()) Ret[Name] = true

Function Documentation

◆ createCopyAssignmentDefinitionData()

static llvm::json::Object createCopyAssignmentDefinitionData ( const CXXRecordDecl RD)
static

Definition at line 377 of file JSONNodeDumper.cpp.

References FIELD2, and Ret().

Referenced by createDestructorDefinitionData().

◆ createCopyConstructorDefinitionData()

static llvm::json::Object createCopyConstructorDefinitionData ( const CXXRecordDecl RD)
static

◆ createDefaultConstructorDefinitionData()

static llvm::json::Object createDefaultConstructorDefinitionData ( const CXXRecordDecl RD)
static

Definition at line 327 of file JSONNodeDumper.cpp.

References FIELD2, and Ret().

Referenced by createDestructorDefinitionData().

◆ createDestructorDefinitionData()

static llvm::json::Object createDestructorDefinitionData ( const CXXRecordDecl RD)
static

◆ createMoveAssignmentDefinitionData()

static llvm::json::Object createMoveAssignmentDefinitionData ( const CXXRecordDecl RD)
static

Definition at line 392 of file JSONNodeDumper.cpp.

References FIELD2, and Ret().

Referenced by createDestructorDefinitionData().

◆ createMoveConstructorDefinitionData()

static llvm::json::Object createMoveConstructorDefinitionData ( const CXXRecordDecl RD)
static