Commit bee799c
committed
[NFC] Fix evaluation order dependency in call arguments
The code assumes parseRegister() executes before the standalone SRegLoc
argument to check(). Since function arguments are indeterminately sequenced
per C++17 [expr.call]/5, check() may receive a null location instead of
the actual parsed source location.
Detected by the CFamily analyzer for SonarQube.
https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/languages/c-family/overview/1 parent dcef154 commit bee799c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11788 | 11788 | | |
11789 | 11789 | | |
11790 | 11790 | | |
11791 | | - | |
11792 | | - | |
11793 | | - | |
| 11791 | + | |
| 11792 | + | |
11794 | 11793 | | |
11795 | 11794 | | |
11796 | 11795 | | |
| |||
0 commit comments