aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quickitemnodeinstance.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2016-06-21 15:43:08 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2016-06-22 12:39:39 +0000
commitb0320387817ab0b4f8c4edfa258414b72bfdb105 (patch)
treee253e20324ff69fa9a34074855d57854bc9682f6 /share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quickitemnodeinstance.cpp
parent18cc4cc49638c5c0694a48c9662777e0493b30f3 (diff)
Clang: Tests: Use test data working with clang 3.6 *and* clang 3.8
The test data produces different results when it is run with libclang 3.6 and libclang 3.8. (lib)clang 3.8 will generate an error instead of a warning and suppress further diagnostics. See below. Use simpler test data that is agnostic to the different clang versions. $ cat input.cpp class X { X(X&&) noexcept; }; X::X(X&&) = default; int function() { } $ clang++-3.6 -fsyntax-only -std=c++11 input.cpp input.cpp:5:4: warning: 'X' is missing exception specification 'noexcept' X::X(X&&) = default; ^ noexcept input.cpp:2:5: note: previous declaration is here X(X&&) noexcept; ^ input.cpp:9:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ 2 warnings generated. $ clang++-3.8 -fsyntax-only -std=c++11 input.cpp input.cpp:5:4: error: 'X' is missing exception specification 'noexcept' X::X(X&&) = default; ^ noexcept input.cpp:2:5: note: previous declaration is here X(X&&) noexcept; ^ 1 error generated. Change-Id: I6d786a8b87eb4438fa8db36540db9358181b9a5b Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quickitemnodeinstance.cpp')
0 files changed, 0 insertions, 0 deletions