KDAB / hotspot

The Linux perf GUI for performance analysis.
4.16k stars 257 forks source link

clangd warnings (parsers/perf/perfparser.cpp) #552

Closed GitMensch closed 1 year ago

GitMensch commented 1 year ago

Describe the bug Seen with the updated #445 - clangd has several complains

To Reproduce Steps to reproduce the behavior: Run clangd manually (using compile_commands.json which may be created by passing `-D

Possibly expected behavior Warning free. At least a one time check seems reasonable.

clangd complains in json format as this is most easy for me to copy+paste

[{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "unused-includes",
        "target": {
            "$mid": 1,
            "external": "https://clangd.llvm.org/guides/include-cleaner",
            "path": "/guides/include-cleaner",
            "scheme": "https",
            "authority": "clangd.llvm.org"
        }
    },
    "severity": 4,
    "message": "Included header functional is not used directly (fix available)",
    "source": "clangd",
    "startLineNumber": 32,
    "startColumn": 1,
    "endLineNumber": 32,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator>>'",
    "source": "clang",
    "startLineNumber": 277,
    "startColumn": 14,
    "endLineNumber": 277,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator<<'",
    "source": "clang",
    "startLineNumber": 282,
    "startColumn": 8,
    "endLineNumber": 282,
    "endColumn": 16,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator>>'",
    "source": "clang",
    "startLineNumber": 371,
    "startColumn": 14,
    "endLineNumber": 371,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator<<'",
    "source": "clang",
    "startLineNumber": 376,
    "startColumn": 8,
    "endLineNumber": 376,
    "endColumn": 16,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator>>'",
    "source": "clang",
    "startLineNumber": 393,
    "startColumn": 14,
    "endLineNumber": 393,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator<<'",
    "source": "clang",
    "startLineNumber": 398,
    "startColumn": 8,
    "endLineNumber": 398,
    "endColumn": 16,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator>>'",
    "source": "clang",
    "startLineNumber": 414,
    "startColumn": 14,
    "endLineNumber": 414,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator<<'",
    "source": "clang",
    "startLineNumber": 419,
    "startColumn": 8,
    "endLineNumber": 419,
    "endColumn": 16,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator>>'",
    "source": "clang",
    "startLineNumber": 434,
    "startColumn": 14,
    "endLineNumber": 434,
    "endColumn": 22,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wunused-function",
    "severity": 4,
    "message": "Unused function 'operator<<'",
    "source": "clang",
    "startLineNumber": 439,
    "startColumn": 8,
    "endLineNumber": 439,
    "endColumn": 16,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 649,
    "startColumn": 45,
    "endLineNumber": 649,
    "endColumn": 46,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 664,
    "startColumn": 39,
    "endLineNumber": 664,
    "endColumn": 40,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 674,
    "startColumn": 39,
    "endLineNumber": 674,
    "endColumn": 40,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 712,
    "startColumn": 31,
    "endLineNumber": 712,
    "endColumn": 32,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 715,
    "startColumn": 37,
    "endLineNumber": 715,
    "endColumn": 38,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 725,
    "startColumn": 35,
    "endLineNumber": 725,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 745,
    "startColumn": 35,
    "endLineNumber": 745,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 763,
    "startColumn": 35,
    "endLineNumber": 763,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 771,
    "startColumn": 35,
    "endLineNumber": 771,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 779,
    "startColumn": 35,
    "endLineNumber": 779,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 786,
    "startColumn": 35,
    "endLineNumber": 786,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 793,
    "startColumn": 35,
    "endLineNumber": 793,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 800,
    "startColumn": 35,
    "endLineNumber": 800,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 807,
    "startColumn": 35,
    "endLineNumber": 807,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 815,
    "startColumn": 35,
    "endLineNumber": 815,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 822,
    "startColumn": 35,
    "endLineNumber": 822,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 829,
    "startColumn": 35,
    "endLineNumber": 829,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 837,
    "startColumn": 35,
    "endLineNumber": 837,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 847,
    "startColumn": 35,
    "endLineNumber": 847,
    "endColumn": 36,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 859,
    "startColumn": 37,
    "endLineNumber": 859,
    "endColumn": 38,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 1141,
    "startColumn": 37,
    "endLineNumber": 1141,
    "endColumn": 38,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 1202,
    "startColumn": 41,
    "endLineNumber": 1202,
    "endColumn": 42,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 1616,
    "startColumn": 43,
    "endLineNumber": 1616,
    "endColumn": 44,
    "relatedInformation": [
        {
            "startLineNumber": 122,
            "startColumn": 11,
            "endLineNumber": 122,
            "endColumn": 18,
            "message": "Macro 'qCDebug' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/src/parsers/perf/perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 1666,
    "startColumn": 37,
    "endLineNumber": 1666,
    "endColumn": 38,
    "relatedInformation": [
        {
            "startLineNumber": 138,
            "startColumn": 11,
            "endLineNumber": 138,
            "endColumn": 20,
            "message": "Macro 'qCWarning' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtCore/qloggingcategory.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "unused-includes",
        "target": {
            "$mid": 1,
            "path": "/guides/include-cleaner",
            "scheme": "https",
            "authority": "clangd.llvm.org"
        }
    },
    "severity": 4,
    "message": "Included header unistd.h is not used directly (fixes available)",
    "source": "clangd",
    "startLineNumber": 22,
    "startColumn": 1,
    "endLineNumber": 22,
    "endColumn": 20,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "unused-includes",
        "target": {
            "$mid": 1,
            "path": "/guides/include-cleaner",
            "scheme": "https",
            "authority": "clangd.llvm.org"
        }
    },
    "severity": 4,
    "message": "Included header exception is not used directly (fixes available)",
    "source": "clangd",
    "startLineNumber": 28,
    "startColumn": 1,
    "endLineNumber": 28,
    "endColumn": 21,
    "tags": [
        1
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-branch-clone",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/branch-clone.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Repeated branch body in conditional chain",
    "source": "clang-tidy",
    "startLineNumber": 34,
    "startColumn": 54,
    "endLineNumber": 34,
    "endColumn": 55,
    "relatedInformation": [
        {
            "startLineNumber": 36,
            "startColumn": 7,
            "endLineNumber": 36,
            "endColumn": 11,
            "message": "End of the original",
            "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp"
        },
        {
            "startLineNumber": 36,
            "startColumn": 69,
            "endLineNumber": 36,
            "endColumn": 70,
            "message": "Clone 1 starts here",
            "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "performance-move-const-arg",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/performance/move-const-arg.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Passing result of std::move() as a const reference argument; no move will actually happen (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 83,
    "startColumn": 21,
    "endLineNumber": 83,
    "endColumn": 31
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "performance-move-const-arg",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/performance/move-const-arg.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Passing result of std::move() as a const reference argument; no move will actually happen (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 83,
    "startColumn": 40,
    "endLineNumber": 83,
    "endColumn": 50
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 166,
    "startColumn": 73,
    "endLineNumber": 166,
    "endColumn": 74,
    "relatedInformation": [
        {
            "startLineNumber": 192,
            "startColumn": 9,
            "endLineNumber": 192,
            "endColumn": 14,
            "message": "Macro 'QSKIP' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 200,
    "startColumn": 11,
    "endLineNumber": 200,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-make-member-function-const",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/make-member-function-const.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testCppInliningCallGraphDwarf_data' can be made const (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 210,
    "startColumn": 10,
    "endLineNumber": 210,
    "endColumn": 44
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 238,
    "startColumn": 11,
    "endLineNumber": 238,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 261,
    "startColumn": 11,
    "endLineNumber": 261,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 282,
    "startColumn": 11,
    "endLineNumber": 282,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-convert-member-functions-to-static",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/convert-member-functions-to-static.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testCppInliningEventCyclesInstructions_data' can be made static (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 309,
    "startColumn": 10,
    "endLineNumber": 309,
    "endColumn": 53
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 329,
    "startColumn": 11,
    "endLineNumber": 329,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 348,
    "startColumn": 11,
    "endLineNumber": 348,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 358,
    "startColumn": 25,
    "endLineNumber": 358,
    "endColumn": 26,
    "relatedInformation": [
        {
            "startLineNumber": 192,
            "startColumn": 9,
            "endLineNumber": 192,
            "endColumn": 14,
            "message": "Macro 'QSKIP' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 375,
    "startColumn": 11,
    "endLineNumber": 375,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 395,
    "startColumn": 11,
    "endLineNumber": 395,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-convert-member-functions-to-static",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/convert-member-functions-to-static.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testSendStdIn' can be made static (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 416,
    "startColumn": 10,
    "endLineNumber": 416,
    "endColumn": 23
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 454,
    "startColumn": 11,
    "endLineNumber": 454,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 475,
    "startColumn": 11,
    "endLineNumber": 475,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 509,
    "startColumn": 98,
    "endLineNumber": 509,
    "endColumn": 99,
    "relatedInformation": [
        {
            "startLineNumber": 192,
            "startColumn": 9,
            "endLineNumber": 192,
            "endColumn": 14,
            "message": "Macro 'QSKIP' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 525,
    "startColumn": 11,
    "endLineNumber": 525,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 554,
    "startColumn": 47,
    "endLineNumber": 554,
    "endColumn": 48,
    "relatedInformation": [
        {
            "startLineNumber": 192,
            "startColumn": 9,
            "endLineNumber": 192,
            "endColumn": 14,
            "message": "Macro 'QSKIP' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": "-Wgnu-zero-variadic-macro-arguments",
    "severity": 4,
    "message": "Must specify at least one argument for '...' parameter of variadic macro",
    "source": "clang",
    "startLineNumber": 559,
    "startColumn": 98,
    "endLineNumber": 559,
    "endColumn": 99,
    "relatedInformation": [
        {
            "startLineNumber": 192,
            "startColumn": 9,
            "endLineNumber": 192,
            "endColumn": 14,
            "message": "Macro 'QSKIP' defined here",
            "resource": "/usr/include/x86_64-linux-gnu/qt5/QtTest/qtestcase.h"
        }
    ]
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 572,
    "startColumn": 11,
    "endLineNumber": 572,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 601,
    "startColumn": 11,
    "endLineNumber": 601,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-convert-member-functions-to-static",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/convert-member-functions-to-static.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testCustomCostAggregation_data' can be made static (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 627,
    "startColumn": 10,
    "endLineNumber": 627,
    "endColumn": 40
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "bugprone-empty-catch",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/bugprone/empty-catch.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether",
    "source": "clang-tidy",
    "startLineNumber": 659,
    "startColumn": 11,
    "endLineNumber": 659,
    "endColumn": 16
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-convert-member-functions-to-static",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/convert-member-functions-to-static.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testDecompression_data' can be made static (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 682,
    "startColumn": 10,
    "endLineNumber": 682,
    "endColumn": 32
},{
    "resource": "/workspace/hotspot/tests/integrationtests/tst_perfparser.cpp",
    "owner": "_generated_diagnostic_collection_name_#4",
    "code": {
        "value": "readability-convert-member-functions-to-static",
        "target": {
            "$mid": 1,
            "path": "/extra/clang-tidy/checks/readability/convert-member-functions-to-static.html",
            "scheme": "https",
            "authority": "clang.llvm.org"
        }
    },
    "severity": 4,
    "message": "Method 'testDecompression' can be made static (fix available)",
    "source": "clang-tidy",
    "startLineNumber": 699,
    "startColumn": 10,
    "endLineNumber": 699,
    "endColumn": 27
}]
milianw commented 1 year ago

it seems like you have a ton of debatable clang-tidy checks enabled - we have a .clang-tidy with some hand-picked rules enabled. and our CI doesn't report any issues, so could it be that your clangd simply doesn't pick up our config?

anyhow, if you want to fix those feel free to do, but some are simply false positives like or not to my liking - esp. those in the tst_* files or relating to -Wgnu-zero-variadic-macro-arguments.