Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.7.0
-
None
Description
Qt Creator: 4.7.0 built on Jul 17 2018 04:23:40 from revision dedbb40f57.
OS: CentOS Linux release 7.5.1804 (Core)
GCC: 4.8.5 20150623 (Red Hat 4.8.5-28)
Steps to reproduce:
1. Open the project
2. Click 'Analyze' -> 'Clang-Tidy and Clazy...'
3. Select 'Clang-Tidy and Clazy preselected checks [built-in]' for the 'Diagnostic Configuration'
4. Click 'Analyze' button
Expected result:
The analysis succeeds, possibly with some warnings/suggestions for code improvement.
Actual result:
Failed to analyze "<path-to>/test_proj.cpp": Clang-Tidy and Clazy finished with exit code: 1.
Source and project file contents follow.
---------- test_proj.cpp ----------
#include <functional>
#include <iostream>
typedef std::function<void()> Callback;
class Test {
public:
void setCallback(Callback callback) { mCallback = callback; }
void doCallback() { mCallback(); }
private:
Callback mCallback;
};
int main(int argc, char **argv) {
Test t;
t.setCallback([]() { std::cout << "Callback" << std::endl; });
t.doCallback();
}
---------- End test_proj.cpp ----------
---------- makefile ----------
all : test_proj
test_proj : test_proj.cpp g++ -std=c++11 -o $@ $^
clean : rm test_proj
---------- End makefile ----------
---------- TestProj.config ----------
// Need the following uncommented for editor warning/error highlighting to work with C++11
//#define __cplusplus 201103L
---------- End TestProj.config ----------
---------- TestProj.creator ----------
[General]
---------- End TestProj.creator ----------
---------- TestProj.files ----------
makefile
test_proj.cpp
---------- End TestProj.files ----------
---------- TestProj.includes ----------
.
---------- End TestProj.includes ----------