mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Switch clang-format to 6.0
Change-Id: Id96d1f47fb3d479d10d1022f1259dc030a148192 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -44,4 +44,4 @@ class SettingsFileReader : public SettingsReader {
|
||||
std::map<std::string, int32_t> settingValueMap;
|
||||
std::map<std::string, std::string> settingStringMap;
|
||||
};
|
||||
};
|
||||
}; // namespace OCLRT
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -36,4 +36,4 @@ SettingsReader *SettingsReader::createFileReader() {
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -45,4 +45,4 @@ class SettingsReader {
|
||||
|
||||
static const char *settingsFileName;
|
||||
};
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -30,4 +30,4 @@ class Directory {
|
||||
public:
|
||||
static std::vector<std::string> getFiles(std::string &path);
|
||||
};
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -27,4 +27,4 @@ namespace OCLRT {
|
||||
bool operator<(const HeapChunk &hc1, const HeapChunk &hc2) {
|
||||
return hc1.ptr < hc2.ptr;
|
||||
}
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -483,4 +483,4 @@ class IDRefList : public IDList<IDNodeRef<NodeObjectType>, ThreadSafe, OwnsNodes
|
||||
refNode.release();
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -206,4 +206,4 @@ class IFRefList : public IFList<IFNodeRef<NodeObjectType>, ThreadSafe, OwnsNodes
|
||||
up.release();
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -33,4 +33,4 @@ class EnvironmentVariableReader : public SettingsReader {
|
||||
bool getSetting(const char *settingName, bool defaultValue) override;
|
||||
std::string getSetting(const char *settingName, const std::string &value) override;
|
||||
};
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -51,4 +51,4 @@ std::vector<std::string> Directory::getFiles(std::string &path) {
|
||||
closedir(dir);
|
||||
return files;
|
||||
}
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -108,4 +108,4 @@ Timer &Timer::operator=(const Timer &t) {
|
||||
void Timer::setFreq() {
|
||||
TimerImpl::setFreq();
|
||||
}
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -102,4 +102,4 @@ struct UnsignedFixedPointValue {
|
||||
};
|
||||
|
||||
using FixedU4D8 = UnsignedFixedPointValue<4, 8>;
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -188,4 +188,4 @@ void PerfProfiler::logTimes(long long start, long long end, long long span, unsi
|
||||
void PerfProfiler::logSysTimes(long long start, unsigned long long time, unsigned int id) {
|
||||
systemLogs.emplace_back(SystemLog{id, start, time});
|
||||
}
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -46,4 +46,4 @@ template <typename T>
|
||||
Range<T> CreateRange(T *base, size_t count) {
|
||||
return Range<T>(base, count);
|
||||
}
|
||||
}
|
||||
} // namespace OCLRT
|
@ -190,4 +190,4 @@ template <typename DerivedClass>
|
||||
inline ReferenceTrackedObject<DerivedClass>::~ReferenceTrackedObject() {
|
||||
DEBUG_BREAK_IF(refInternal.peek() > 1);
|
||||
}
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -37,4 +37,4 @@ class SpinLock {
|
||||
}
|
||||
};
|
||||
|
||||
} // OCLRT
|
||||
} // namespace OCLRT
|
||||
|
@ -95,6 +95,7 @@ class TagAllocator {
|
||||
((void)(usedNode));
|
||||
freeTags.pushFrontOne(*node);
|
||||
}
|
||||
|
||||
protected:
|
||||
IDList<NodeType> freeTags;
|
||||
IDList<NodeType> usedTags;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -49,4 +49,4 @@ class Timer {
|
||||
class TimerImpl;
|
||||
TimerImpl *timerImpl;
|
||||
};
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -79,4 +79,4 @@ struct Vec3 {
|
||||
T y;
|
||||
T z;
|
||||
};
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -51,4 +51,4 @@ std::vector<std::string> Directory::getFiles(std::string &path) {
|
||||
FindClose(hFind);
|
||||
return files;
|
||||
}
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -124,4 +124,4 @@ Timer &Timer::operator=(const Timer &t) {
|
||||
void Timer::setFreq() {
|
||||
TimerImpl::setFreq();
|
||||
}
|
||||
};
|
||||
}; // namespace OCLRT
|
||||
|
Reference in New Issue
Block a user