gen_compile_commands.py: remove code for '\#' replacement
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 5 Feb 2025 17:18:02 +0000 (02:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:16:21 +0000 (21:16 +0900)
commit90efe2b9119ff8a83a67eb5323e52311a1a49de9
tree6d455d109db17fa5fca45d644be03a1a54be48c3
parente966ad0edd0056c7491b8f23992c11734ab61ddf
gen_compile_commands.py: remove code for '\#' replacement

Since commit 9564a8cf422d ("Kbuild: fix # escaping in .cmd files for
future Make"), '#' in the build command is replaced with $(pound) rather
than '\#'.

Calling .replace(r'\#', '#') is only necessary when this tool is used
to parse .*.cmd files generated by Linux 4.16 or earlier, which is
unlikely to happen.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
scripts/clang-tools/gen_compile_commands.py