[clazy] [Bug 436606] New: -std=c++17 mask connect-3arg-lambda check

Evgeniy A. Dushistov bugzilla_noreply at kde.org
Wed May 5 00:38:11 BST 2021


https://bugs.kde.org/show_bug.cgi?id=436606

            Bug ID: 436606
           Summary: -std=c++17  mask connect-3arg-lambda check
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: dushistov at mail.ru
                CC: smartins at kde.org
  Target Milestone: ---

SUMMARY
If compile_commands.json contains '-std=c++17' or if I use
-extra-arg='-std=c++17' then warning about usage of 3 argument connect
disappear

STEPS TO REPRODUCE
Build clazy from source code (90fc09d3047792e585d07a78a79f9648f7d5fb1c) and run
./build/bin/clazy-standalone -extra-arg='-std=c++17'
-extra-arg='-I/usr/include/qt' -extra-arg='-I/usr/lib/clang/11.1.0/include'
tests/connect-3arg-lambda/main.cpp

OBSERVED RESULT
No warnings about 'Pass a context object as 3rd connect parameter'

EXPECTED RESULT
Warnings with text 'Pass a context object as 3rd connect parameter'

SOFTWARE/OS VERSIONS
Arch Linux, Qt Version: 5.15.2+kde+r192

ADDITIONAL INFORMATION

I tried clazy/tests/run_tests.py .
By default all tests passed,
but if I replace -std=c++14 with -std=c++17,
then such tests failed:
connect-3arg-lambda
reserve-candidates
qt6-qlatin1stringchar-to-u
range-loop-detach
qstring-allocations
container-anti-pattern
detaching-member
qstring-allocations

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list