|
@@ -176,7 +176,7 @@ def process_line(root_directory, command_prefix, file_path):
|
|
# escape the pound sign '#', either as '\#' or '$(pound)' (depending on the
|
|
# escape the pound sign '#', either as '\#' or '$(pound)' (depending on the
|
|
# kernel version). The compile_commands.json file is not interepreted
|
|
# kernel version). The compile_commands.json file is not interepreted
|
|
# by Make, so this code replaces the escaped version with '#'.
|
|
# by Make, so this code replaces the escaped version with '#'.
|
|
- prefix = command_prefix.replace('\#', '#').replace('$(pound)', '#')
|
|
|
|
|
|
+ prefix = command_prefix.replace(r'\#', '#').replace('$(pound)', '#')
|
|
|
|
|
|
# Use os.path.abspath() to normalize the path resolving '.' and '..' .
|
|
# Use os.path.abspath() to normalize the path resolving '.' and '..' .
|
|
abs_path = os.path.abspath(os.path.join(root_directory, file_path))
|
|
abs_path = os.path.abspath(os.path.join(root_directory, file_path))
|