tools/clang/lib/SPIRV/SPIRVEmitter.cpp
/// Returns true if the given VarDecl will be translated into a SPIR-V variable
/// not in the Private or Function storage class.
Returns true if the given VarDecl will be translated into a SPIR-V variable
not in the Private or Function storage class.
Returns true if the given VarDecl will be translated into a SPIR - V variable not in the Private or Function storage class .
inline bool isExternalVar(const VarDecl *var) {
  return var->isExternallyVisible() ? !var->isStaticDataMember()
                                    : var->getAttr<HLSLGroupSharedAttr>();
}
inline bool isExternalVar ( const VarDecl * var ) { return var -> isExternallyVisible ( ) ? ! var -> isStaticDataMember ( ) : var -> getAttr < HLSLGroupSharedAttr > ( ) ; }
Returns true if the given VarDecl will be translated into a SPIR-V variable
not in the Private or Function storage class.
Returns true if the given VarDecl will be translated into a SPIR - V variable not in the Private or Function storage class .
// Class static variables should be put in the Private storage class. // groupshared variables are allowed to be declared as "static". But we still // need to put them in the Workgroup storage class. That is, when seeing // "static groupshared", ignore "static".