[clazy] Do not warn about Q_ENUM in Qt system headers

Review Request #128799 - Created Aug. 29, 2016 and submitted

Information
Christian Ehrlicher
clazy
Reviewers
smartins

The check for Q_ENUM does not check if the source is in a system header and therefore warns about usage of Q_ENUMS in installed Qt5.5 headers.

source file:

include <QToolButtin>

compile command:
/usr/bin/clazy -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5 -fPIC temp.cpp

result: no more warning about Q_ENUM usage in qtoolbutton.h:51

Christian Ehrlicher
Sergio Martins
Christian Ehrlicher
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 376b19d99e582cbe36c3583ca65c40697d3693cd by Christian Ehrlicher to branch master.
Loading...