[Static-Analysis] Some cli definitions are not passed in code as strings
Categories
(Developer Infrastructure :: Source Code Analysis, defect, P1)
Tracking
(Not tracked)
People
(Reporter: andi, Assigned: andi)
References
(Regression)
Details
(Keywords: regression)
After the latest modification to compile_commands.json
the inline definitions that should be considered as strings in code are broken and they are treated as identifiers this is because bug 1607204 eliminated double quotes from the inline parameters. As example can be seen here.
Assignee | ||
Comment 1•4 years ago
|
||
Can we backout the patch for bug 1607204?
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
I'll fix the regressing patch and re-land when it's approved.
Comment 3•4 years ago
|
||
What is the problematic case? Is it that: '-DAPP_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}'
got some quotes stripped out of it along the way, or something else?
Assignee | ||
Comment 4•4 years ago
•
|
||
Yes, the quotes including the corresponding escaping chars are stripped out so the value is no longer a string literal but an identifier. The first example I could find is ‘ -DMOZ_APP_NAME=firefox’ where in the new context ‘firefox’ is no longer a string literal but an identifier.
Assignee | ||
Comment 5•4 years ago
|
||
Closing since this will be fix in Bug 1607204.
Updated•2 years ago
|
Description
•