From c50667bd718b0659ad71e6d054e636c89de145fd Mon Sep 17 00:00:00 2001 From: Shubhendra Kushwaha 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