clang  6.0.0svn
Macros | Functions
IndexSymbol.cpp File Reference
#include "clang/Index/IndexSymbol.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/PrettyPrinter.h"
Include dependency graph for IndexSymbol.cpp:

Go to the source code of this file.

Macros

#define APPLY_FOR_ROLE(Role)
 
#define APPLY_FOR_PROPERTY(K)
 

Functions

static bool isUnitTestCase (const ObjCInterfaceDecl *D)
 
static bool isUnitTest (const ObjCMethodDecl *D)
 
static void checkForIBOutlets (const Decl *D, SymbolPropertySet &PropSet)
 

Macro Definition Documentation

◆ APPLY_FOR_PROPERTY

#define APPLY_FOR_PROPERTY (   K)
Value:
if (Props & (unsigned)SymbolProperty::K) \
Fn(SymbolProperty::K)

Referenced by clang::index::applyForEachSymbolProperty().

◆ APPLY_FOR_ROLE

#define APPLY_FOR_ROLE (   Role)
Value:
if (Roles & (unsigned)SymbolRole::Role) \
if (!Fn(SymbolRole::Role)) \
return false;

Referenced by clang::index::applyForEachSymbolRoleInterruptible().

Function Documentation

◆ checkForIBOutlets()

static void checkForIBOutlets ( const Decl D,
SymbolPropertySet PropSet 
)
static

◆ isUnitTest()

static bool isUnitTest ( const ObjCMethodDecl D)
static
Returns
true if D is in a subclass of 'XCTestCase', returns void, has no parameters, and its name starts with 'test'.

Definition at line 33 of file IndexSymbol.cpp.

References clang::ObjCMethodDecl::getClassInterface(), clang::Selector::getNameForSlot(), clang::ObjCMethodDecl::getReturnType(), clang::ObjCMethodDecl::getSelector(), isUnitTestCase(), clang::Type::isVoidType(), and clang::ObjCMethodDecl::parameters().

Referenced by clang::index::getSymbolInfo().

◆ isUnitTestCase()

static bool isUnitTestCase ( const ObjCInterfaceDecl D)
static
Returns
true if D is a subclass of 'XCTestCase'.

Definition at line 20 of file IndexSymbol.cpp.

References clang::ObjCInterfaceDecl::getSuperClass().

Referenced by clang::index::getSymbolInfo(), and isUnitTest().