[bug] ldlogger escaping characters #4208
Labels
analyzer 📈
Related to the analyze commands (analysis driver)
ld-logger 📃
tools 🛠️
Meta-tag for all the additional tools supplied with CodeChecker: plist2html, tu_collector, etc.
Describe the bug
![image](https://private-user-images.githubusercontent.com/45934483/319111841-571dd0c3-d5a3-4638-b56b-bd2ceff86822.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MzM4MzksIm5iZiI6MTcxODkzMzUzOSwicGF0aCI6Ii80NTkzNDQ4My8zMTkxMTE4NDEtNTcxZGQwYzMtZDVhMy00NjM4LWI1NmItYmQyY2VmZjg2ODIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDAxMzIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyMTk2ZjA0MzExMmNjMGI3YjE1MzRkMjYwMGEwNTg1MGMxYjU1YjZjMTBjNDFhODMzODAxMTk1ZWI5OWUyNzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3NgZHOQf-h9xw2g7JlyTTBJYvF4ldpN3GRBYqX8Jqc4)
There exists the content like:
in the makefile.
and when we set the environment variables as following
https://github.com/Ericsson/codechecker/blob/master/analyzer/tools/build-logger/README.md
and then we generate compile_commands.json.There exists -D__MACRO__=\\\"xxx/xxx.c\\\" in the value of the "command" in the compile_commands.json because it will dump buff_ into the file as is.
\\\" is expected in the shell case.
But in the case of dumping buff_ into file, \" should be what we expected.
The text was updated successfully, but these errors were encountered: