[gnome-builder] clang: take absolute paths as is for hover provider



commit cfd33175253e829f8267ae9b9500a0faf7209ba5
Author: Günther Wagner <info gunibert de>
Date:   Sun Jan 23 09:16:16 2022 +0100

    clang: take absolute paths as is for hover provider

 src/plugins/clang/ide-clang.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/clang/ide-clang.c b/src/plugins/clang/ide-clang.c
index 5477c1343..36ad84168 100644
--- a/src/plugins/clang/ide-clang.c
+++ b/src/plugins/clang/ide-clang.c
@@ -975,6 +975,9 @@ get_path (GFile       *workdir,
   if (path == NULL)
     return path_or_uri (workdir);
 
+  if (g_path_is_absolute (path))
+    return g_strdup (path);
+
   file = g_file_new_for_path (path);
   if (g_file_has_prefix (file, workdir))
     return g_strdup (path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]