mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:07:34 +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
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue