Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Friedrich W. H. Kossebau
kdevelop
Commits
84952f49
Commit
84952f49
authored
Dec 12, 2019
by
Milian Wolff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lambda init captures are visited starting with clang 9.0.0
parent
9cbb6f2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
plugins/clang/tests/CMakeLists.txt
plugins/clang/tests/CMakeLists.txt
+1
-0
plugins/clang/tests/test_files.cpp
plugins/clang/tests/test_files.cpp
+4
-1
No files found.
plugins/clang/tests/CMakeLists.txt
View file @
84952f49
...
...
@@ -100,6 +100,7 @@ LINK_LIBRARIES
KDev::Language
KDev::Tests
KDev::DefinesAndIncludesManager
KDevClangPrivate
)
if
(
NOT COMPILER_OPTIMIZATIONS_DISABLED
)
...
...
plugins/clang/tests/test_files.cpp
View file @
84952f49
...
...
@@ -30,6 +30,7 @@
#include "testfilepaths.h"
#include "testprovider.h"
#include "duchain/clanghelpers.h"
//Include all used json tests, otherwise "Test not found"
#include <tests/json/jsondeclarationtests.h>
...
...
@@ -40,6 +41,7 @@
#include <QTest>
#include <QLoggingCategory>
#include <QProcess>
#include <QVersionNumber>
using
namespace
KDevelop
;
...
...
@@ -121,7 +123,8 @@ void TestFiles::testFiles()
qDebug
()
<<
problem
;
}
QEXPECT_FAIL
(
"lambdas.cpp"
,
"capture with identifier and initializer aren't visited apparently"
,
Abort
);
if
(
QVersionNumber
::
fromString
(
ClangHelpers
::
clangVersion
())
<
QVersionNumber
(
9
,
0
,
0
))
QEXPECT_FAIL
(
"lambdas.cpp"
,
"capture with identifier and initializer aren't visited apparently"
,
Abort
);
QVERIFY
(
validator
.
testsPassed
());
if
(
!
QTest
::
currentDataTag
()
||
strcmp
(
"invalid.cpp"
,
QTest
::
currentDataTag
())
!=
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment