MCPcopy Create free account
hub / github.com/avast/retdec / isStringArrayType

Function isStringArrayType

src/bin2llvmir/utils/llvm.cpp:104–108  ·  view source on GitHub ↗

* @return @c True if @a t is a string array -- an array of char elements, * @c false otherwise. */

Source from the content-addressed store, hash-verified

102 * @c false otherwise.
103 */
104bool isStringArrayType(const llvm::Type* t)
105{
106 auto* at = dyn_cast_or_null<ArrayType>(t);
107 return at ? isCharType(at->getElementType()) : false;
108}
109
110/**
111 * @return @c True if @a t is a pointer to string array type

Callers 1

isStringArrayPointeTypeFunction · 0.85

Calls 2

isCharTypeFunction · 0.85
getElementTypeMethod · 0.45

Tested by

no test coverage detected