Go to file
Fangrui Song e46ac5fb9d [libclang] Add clang_File_tryGetRealPathName
Summary:
clang_getFileName() may return a path relative to WorkingDir.
On Arch Linux, during clang_indexTranslationUnit(), clang_getFileName() on
CXIdxIncludedIncludedFileInfo::file may return
"/../lib64/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../include/c++/7.3.0/string",
for `#include <string>`.

I presume WorkingDir is somehow changed to /usr/lib or /usr/include and
clang_getFileName() returns a path relative to WorkingDir.

clang_File_tryGetRealPathName() returns "/usr/include/c++/7.3.0/string"
which is more useful for the indexer in this case.

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D42893

llvm-svn: 329515
2018-04-07 20:50:35 +00:00
clang [libclang] Add clang_File_tryGetRealPathName 2018-04-07 20:50:35 +00:00
clang-tools-extra [clang-tidy] Fix compilation for MSVS@PSP4 for ParentVirtualCallCheck.cpp 2018-04-07 11:22:01 +00:00
compiler-rt [libFuzzer] Print a correct error message when a directory can't be 2018-04-06 18:15:24 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc select: simplify implementation and fix fp16 2018-04-06 22:00:00 +00:00
libcxx [libcxx][test] Silence -Wself-assign diagnostics 2018-04-07 10:36:03 +00:00
libcxxabi [CMake] Support for monorepo layout 2018-04-04 17:40:59 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld [tests] Fix format-binary-non-ascii.s to work with Python 3 on Windows 2018-04-07 00:55:26 +00:00
lldb [lldb-server] Set a more generous timeout when testing gdbremote. 2018-04-06 17:17:20 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm Revert "Followup for r329293: Temporarily disable the breaking test on windows." 2018-04-07 20:22:38 +00:00
openmp [OpenMP] enable bc file compilation using the latest clang 2018-04-03 15:01:34 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [doc] Overhaul doc on preparing IR for processing by Polly. 2018-04-06 19:24:18 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.