clang  3.9.0
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_SUBKIND(K)
 

Functions

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

Macro Definition Documentation

#define APPLY_FOR_ROLE (   Role)
Value:
if (Roles & (unsigned)SymbolRole::Role) \
Fn(SymbolRole::Role)

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

#define APPLY_FOR_SUBKIND (   K)
Value:
if (SubKinds & (unsigned)SymbolSubKind::K) \
Fn(SymbolSubKind::K)

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

Function Documentation

static void checkForIBOutlets ( const Decl D,
SymbolSubKindSet SubKindSet 
)
static
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().

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().