From 9bcf0b70cbae0fa1bf31fad9b95b7272991b42e9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 1 Aug 2020 19:34:53 +0200 Subject: [PATCH] AK: Hack Userspace 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. --- AK/Userspace.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AK/Userspace.h b/AK/Userspace.h index c1659821b1..4ac2ef07ed 100644 --- a/AK/Userspace.h +++ b/AK/Userspace.h @@ -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 +#else template concept PointerTypeName = IsPointer::value; - template +#endif + class Userspace { public: Userspace() { }