skan added a comment. In D62115#1511407 <https://reviews.llvm.org/D62115#1511407>, @kimgr wrote:
> Also, consider `././Inputs/empty.h`. Firstly, on linux write the `clang_H_opt.c` file as #include "../Index/Inputs/empty.h" #include "Inputs/empty.h" #include "./Inputs/empty.h" #include "././Inputs/empty.h" Then compile it with command `gcc -H -fsyntax-only clang_H_opt.c 2>&1`, output: . ../Index/Inputs/empty.h . Inputs/empty.h . ./Inputs/empty.h . ././Inputs/empty.h compile it with command `clang -H -fsyntax-only clang_H_opt.c 2>&1` will get the same result . So i think there is no need to simplify the existing pathname in `#include` directive. Secondly, on Win2019 write the `clang_H_opt.c` file as #include "..\Index\Inputs\empty.h" #include "Inputs/empty.h" #include ".\Inputs/empty.h" #include ".\.\Inputs/empty.h" compile it with clang, output: . ..\\Index\\Inputs\\empty.h . Inputs\\empty.h . .\\Inputs\\empty.h . .\\.\\Inputs\\empty.h . .\\.\\Inputs\\empty.h i think the output is appropriate. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62115/new/ https://reviews.llvm.org/D62115 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits