You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 warning generated.
/tmp/nodiscard.cpp:2:3: warning: function 'empty' should be marked [[nodiscard]] [modernize-use-nodiscard]
bool empty() const;
^
[[nodiscard]]
Expected behavior
The clang-tidy sensor adds a new finding with ID ClangTidy:modernize-use-nodiscard
Actual behavior
clang-tidy sensor fails to add the issue with an error message
07:59:32.406 ERROR - Could not add the issue 'CxxReportIssue [ruleId=[nodiscard, locations=CxxReportLocation [file=/tmp/nodiscard.cpp, line=2, info=function 'empty' should be marked]]':The rule 'ClangTidy:[nodiscard' does not exist.
', skipping issue
The text was updated successfully, but these errors were encountered:
Sample file
clang-tidy output
clang-tidy --extra-arg=-std=c++17 -checks=modernize-use-nodiscard nodiscard.cpp
Expected behavior
The clang-tidy sensor adds a new finding with ID
ClangTidy:modernize-use-nodiscard
Actual behavior
clang-tidy sensor fails to add the issue with an error message
The text was updated successfully, but these errors were encountered: