mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Hack Userspace<T> to not break Qt Creator syntax highlighting
This is a very cheesy patch and I don't like it, but as Qt Creator does not grok C++20 concepts yet, this makes it possible to still use syntax highlighting. We'll remove this hack the moment it stops being a problem. Note that it doesn't actually affect the build since we use GCC, not Clang.
This commit is contained in:
parent
597b0c9efd
commit
9bcf0b70cb
|
@ -31,10 +31,16 @@
|
|||
|
||||
namespace AK {
|
||||
|
||||
// HACK: This is just here to make syntax highlighting work in Qt Creator.
|
||||
// Once it supports C++20 concepts, we can remove this.
|
||||
#ifdef __clang__
|
||||
template<typename T>
|
||||
#else
|
||||
template<typename T>
|
||||
concept PointerTypeName = IsPointer<T>::value;
|
||||
|
||||
template<PointerTypeName T>
|
||||
#endif
|
||||
|
||||
class Userspace {
|
||||
public:
|
||||
Userspace() { }
|
||||
|
|
Loading…
Reference in a new issue