[llvm] docs: remove STRIP_FROM_INC_PATH in Doxygen to avoid incorrect source file linking (PR #140114)
Shubhendra Kushwaha via llvm-commits
llvm-commits at lists.llvm.org
Thu May 15 11:15:44 PDT 2025
https://github.com/TheShubhendra created https://github.com/llvm/llvm-project/pull/140114
Set STRIP_FROM_INC_PATH to blank in doxygen.cfg.in to preserve full relative paths for source files. This prevents Doxygen from confusing files with the same name in different directories (e.g., lib/IR/Use.cpp vs lib/SandboxIR/Use.cpp) and ensures correct linking in the generated documentation.
Fixes #139512
>From c50667bd718b0659ad71e6d054e636c89de145fd Mon Sep 17 00:00:00 2001
From: Shubhendra Kushwaha <shubhendrakushwaha94 at gmail.com>
Date: Thu, 15 May 2025 23:13:45 +0530
Subject: [PATCH] docs: fix Doxygen STRIP_FROM_INC_PATH to avoid incorrect
source file linking
Set STRIP_FROM_INC_PATH to blank in doxygen.cfg.in to preserve full relative paths
for source files. This prevents Doxygen from confusing files with the same name
in different directories (e.g., lib/IR/Use.cpp vs lib/SandboxIR/Use.cpp) and
ensures correct linking in the generated documentation.
---
llvm/docs/doxygen.cfg.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/docs/doxygen.cfg.in b/llvm/docs/doxygen.cfg.in
index 82b281ad103ba..d50e3af214aaf 100644
--- a/llvm/docs/doxygen.cfg.in
+++ b/llvm/docs/doxygen.cfg.in
@@ -153,8 +153,7 @@ STRIP_FROM_PATH = @abs_top_srcdir@/..
# specify the list of include paths that are normally passed to the compiler
# using the -I flag.
-STRIP_FROM_INC_PATH = @abs_top_srcdir@/../include
-STRIP_FROM_INC_PATH += @abs_top_srcdir@/../lib
+STRIP_FROM_INC_PATH =
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
# less readable) file names. This can be useful is your file systems doesn't
More information about the llvm-commits
mailing list