Apply .clangformat to all repo source files

Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344
This commit is contained in:
Maneesh Gupta
2018-03-12 11:29:03 +05:30
förälder 18e70b1e6b
incheckning 1ba06f63c4
293 ändrade filer med 43980 tillägg och 45830 borttagningar
+6 -9
Visa fil
@@ -29,8 +29,7 @@ THE SOFTWARE.
// Error Handling
//---
hipError_t hipGetLastError()
{
hipError_t hipGetLastError() {
HIP_INIT_API();
// Return last error, but then reset the state:
@@ -39,26 +38,24 @@ hipError_t hipGetLastError()
return e;
}
hipError_t hipPeekAtLastError()
{
hipError_t hipPeekAtLastError() {
HIP_INIT_API();
// peek at last error, but don't reset it.
return ihipLogStatus(tls_lastHipError);
}
const char *hipGetErrorName(hipError_t hip_error)
{
const char* hipGetErrorName(hipError_t hip_error) {
HIP_INIT_API(hip_error);
return ihipErrorString(hip_error);
}
const char *hipGetErrorString(hipError_t hip_error)
{
const char* hipGetErrorString(hipError_t hip_error) {
HIP_INIT_API(hip_error);
// TODO - return a message explaining the error.
// TODO - This should be set up to return the same string reported in the the doxygen comments, somehow.
// TODO - This should be set up to return the same string reported in the the doxygen comments,
// somehow.
return hipGetErrorName(hip_error);
}