diff options
author | 2024-02-26 15:10:55 +0100 | |
---|---|---|
committer | 2024-02-26 15:12:53 +0100 | |
commit | b0fda2fcb472454474b858a06419249d7eca56db (patch) | |
tree | b9e111922464bb944c719a26c49e7fe1edb27095 /scripts/clang-tools/gen_compile_commands.py | |
parent | drm/i915: Fix possible null pointer dereference after drm_dbg_printer conversion (diff) | |
parent | Merge v6.8-rc6 into drm-next (diff) | |
download | wireguard-linux-b0fda2fcb472454474b858a06419249d7eca56db.tar.xz wireguard-linux-b0fda2fcb472454474b858a06419249d7eca56db.zip |
Merge drm/drm-next into drm-misc-next-fixes
Backmerging from drm/drm-next to prepare drm-misc-next-fixes for
the rest of the release cycle.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
-rwxr-xr-x | scripts/clang-tools/gen_compile_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py index 5dea4479240b..e4fb686dfaa9 100755 --- a/scripts/clang-tools/gen_compile_commands.py +++ b/scripts/clang-tools/gen_compile_commands.py @@ -170,7 +170,7 @@ def process_line(root_directory, command_prefix, file_path): # escape the pound sign '#', either as '\#' or '$(pound)' (depending on the # kernel version). The compile_commands.json file is not interepreted # by Make, so this code replaces the escaped version with '#'. - prefix = command_prefix.replace('\#', '#').replace('$(pound)', '#') + prefix = command_prefix.replace(r'\#', '#').replace('$(pound)', '#') # Return the canonical path, eliminating any symbolic links encountered in the path. abs_path = os.path.realpath(os.path.join(root_directory, file_path)) |