forked from qt-creator/qt-creator
Clang: Clean up qobjectdefs.h
* Remove unneeded #include that might lead to false diagnostics * Fix typo Change-Id: I38a3bbe07dbcb33f004c7b7a2a4ca4a90fb77350 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
#ifndef WRAPPED_QOBJECT_DEFS_H
|
||||
#define WRAPPED_QOBJECT_DEFS_H
|
||||
|
||||
#include <utility>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wmacro-redefined"
|
||||
#pragma clang diagnostic ignored "-Wgnu-string-literal-operator-template"
|
||||
@@ -60,7 +58,7 @@
|
||||
# define Q_SLOT __attribute__((annotate("qt_slot")))
|
||||
#endif
|
||||
|
||||
// static_assert can be found as a class child but does not add extra AST nodes for copmpletion
|
||||
// static_assert can be found as a class child but does not add extra AST nodes for completion
|
||||
#define Q_PROPERTY(arg) static_assert("Q_PROPERTY", #arg);
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user