Skip to content

Commit 0731309

Browse files
committed
C++: Change note for StackVariable
1 parent 4d97534 commit 0731309

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

change-notes/1.24/analysis-cpp.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Improvements to C/C++ analysis
2+
3+
The following changes in version 1.24 affect C/C++ analysis in all applications.
4+
5+
## General improvements
6+
7+
## New queries
8+
9+
| **Query** | **Tags** | **Purpose** |
10+
|-----------------------------|-----------|--------------------------------------------------------------------|
11+
12+
## Changes to existing queries
13+
14+
| **Query** | **Expected impact** | **Change** |
15+
|----------------------------|------------------------|------------------------------------------------------------------|
16+
17+
## Changes to QL libraries
18+
19+
* The new class `StackVariable` should be used in place of `LocalScopeVariable`
20+
in most cases. The difference is that `StackVariable` does not include
21+
variables declared with `static` or `thread_local`.
22+
* As a rule of thumb, custom queries about the _values_ of variables should
23+
be changed from `LocalScopeVariable` to `StackVariable`, while queries
24+
about the _name or scope_ of variables should remain unchanged.
25+
* The `LocalScopeVariableReachability` library is deprecated in favor of
26+
`StackVariableReachability`. The functionality is the same.

0 commit comments

Comments
 (0)