tools/clang/lib/SPIRV/GlPerVertex.cpp
/// Returns true if the given declaration has a primitive type qualifier.
/// Returns false otherwise.
Returns true if the given declaration has a primitive type qualifier.
Returns false otherwise.
Returns true if the given declaration has a primitive type qualifier . Returns false otherwise .
inline bool hasGSPrimitiveTypeQualifier(const DeclaratorDecl *decl) {
  return decl->hasAttr<HLSLTriangleAttr>() ||
         decl->hasAttr<HLSLTriangleAdjAttr>() ||
         decl->hasAttr<HLSLPointAttr>() || decl->hasAttr<HLSLLineAttr>() ||
         decl->hasAttr<HLSLLineAdjAttr>();
}
inline bool hasGSPrimitiveTypeQualifier ( const DeclaratorDecl * decl ) { return decl -> hasAttr < HLSLTriangleAttr > ( ) || decl -> hasAttr < HLSLTriangleAdjAttr > ( ) || decl -> hasAttr < HLSLPointAttr > ( ) || decl -> hasAttr < HLSLLineAttr > ( ) || decl -> hasAttr < HLSLLineAdjAttr > ( ) ; }
Returns true if the given declaration has a primitive type qualifier.
Returns true if the given declaration has a primitive type qualifier .