Skip to content

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Apr 16, 2019

Ongoing improvements to this query:

@@ -1,5 +1,7 @@
| tests.cpp:18:15:18:22 | Hello | This argument should be of type 'char *' but is of type 'char16_t *' |
| tests.cpp:19:15:19:22 | Hello | This argument should be of type 'char *' but is of type 'wchar_t *' |
| tests.cpp:21:15:21:21 | Hello | This argument should be of type 'char16_t *' but is of type 'char *' |
| tests.cpp:21:15:21:21 | Hello | This argument should be of type 'wchar_t *' but is of type 'char *' |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know how this will render in LGTM? One message with two values, or two separate messages on the same line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On LGTM it'll be one alert with an expandable placeholder that says [ 2 values ]. Here's an example from a Java query.

Copy link
Contributor

@jbj jbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but the test failed.

@jbj jbj added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Apr 25, 2019
@geoffw0 geoffw0 force-pushed the wrongtypeformatmore branch from 645945b to 29f13fe Compare May 1, 2019 08:18
@geoffw0 geoffw0 force-pushed the wrongtypeformatmore branch from 29f13fe to 1ee28fa Compare May 1, 2019 10:13
@jbj jbj merged commit 3905cf7 into github:master May 2, 2019
@geoffw0 geoffw0 deleted the wrongtypeformatmore branch February 10, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants