Skip to content

C++: Test changes for discover_walk #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2018
Merged

Conversation

ian-semmle
Copy link
Contributor

No description provided.

@ian-semmle ian-semmle added C++ depends on internal PR This PR should only be merged in sync with an internal Semmle PR labels Oct 12, 2018
Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

This is a big diff, most of the changes appear to be trivial changes related to varargs or unnamed parameters. Nothing stood out to me as obviously wrong.

@@ -3,5 +3,4 @@
| usings.cpp:9:1:9:17 | using namespace N |
| usings.cpp:18:3:18:13 | using bf |
| usings.cpp:21:5:21:14 | using gf |
| usings.cpp:34:3:34:20 | using tbf |
Copy link
Contributor

Choose a reason for hiding this comment

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

Any idea what's happened here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -100,20 +96,37 @@ isFromUninstantiatedTemplate
| isfromtemplateinstantiation.cpp:93:55:93:55 | return ... | isfromtemplateinstantiation.cpp:93:7:93:15 | myMethod1 |
| isfromtemplateinstantiation.cpp:94:7:94:15 | declaration of myMethod2 | isfromtemplateinstantiation.cpp:77:26:77:45 | AnotherTemplateClass<T> |
| isfromtemplateinstantiation.cpp:94:7:94:15 | declaration of myMethod2 | isfromtemplateinstantiation.cpp:97:25:97:60 | myMethod2 |
| isfromtemplateinstantiation.cpp:94:7:94:15 | declaration of myMethod2 | isfromtemplateinstantiation.cpp:97:52:97:52 | myMethod2 |
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like @jbj to look at these changes at some point (no need to hold back merging though).

Copy link
Contributor

Choose a reason for hiding this comment

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

@ian-semmle and @nickrolfe, have you checked that the test changes in isfromtemplateinstantiation/*.expected are what they should be? These tests are very sensitive to exactly the things you changed in the discover branch, and they contain some of the edge cases that have been problematic in the past.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The changes look OK to me. There's a new | I | T | row in isfromuninstantiatedtemplate, but that's probably the same issue as the existing rows.

@nickrolfe nickrolfe merged commit 121596d into github:next Oct 18, 2018
@ian-semmle ian-semmle deleted the discover_walk branch October 18, 2018 21:53
aibaars pushed a commit that referenced this pull request Oct 14, 2021
Temporarily disable operation call resolution
smowton pushed a commit to smowton/codeql that referenced this pull request Apr 16, 2022
Kotlin: Workarounds for codeql-cli
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.

4 participants