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:
Andreas Kling 2020-08-01 19:34:53 +02:00
parent 597b0c9efd
commit 9bcf0b70cb

View file

@ -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() { }