Commit 8a9b6a7a authored by Christian Hergert's avatar Christian Hergert
Browse files

clang: fix source location path for absolute paths

When we have paths outside the project tree, they are likely to be
absolute paths.

Fixes #421
parent c1bce8fb
......@@ -201,7 +201,7 @@ get_path (const gchar *workpath,
{
if (path == NULL)
return g_strdup (workpath);
else if (g_str_has_prefix (path, workpath))
else if (g_path_is_absolute (path) || g_str_has_prefix (path, workpath))
return g_strdup (path);
else
return g_build_filename (workpath, path, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment