llvm-project/clang/lib
Egor Zhdan e917801edd [Clang][Driver] Fix include paths for `--sysroot /` on Linux
Currently if `--sysroot /` is passed to the Clang driver, the include paths generated by the Clang driver will start with a double slash: `//usr/include/...`.
 If VFS is used to inject files into the include paths (for example, the Swift compiler does this), VFS will get confused and the injected files won't be visible.

This change makes sure that the include paths start with a single slash.

Fixes #28283.

Differential Revision: https://reviews.llvm.org/D126289
2022-05-27 16:51:36 +01:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
AST Also remove the empty StoredDeclsList entry from the lookup table 2022-05-27 12:36:37 +00:00
ASTMatchers [Clang][[OpenMP5.1] Initial parser/sema for default(private) clause 2022-05-19 12:43:13 -07:00
Analysis [clang][dataflow] Improve handling of constructor initializers. 2022-05-27 13:54:11 +00:00
Basic Revert "[OpenMP] atomic compare fail : Parser & AST support" 2022-05-25 13:34:34 -04:00
CodeGen Add !nosanitize to FixedMetadataKinds 2022-05-27 09:46:13 +08:00
CrossTU [clang][analyzer][ctu] Make CTU a two phase analysis 2022-05-18 10:35:52 +02:00
DirectoryWatcher [clang] [DirectoryWatcher] Remove leading \\?\ from GetFinalPathNameByHandleW 2021-11-08 22:21:30 +02:00
Driver [Clang][Driver] Fix include paths for `--sysroot /` on Linux 2022-05-27 16:51:36 +01:00
Edit [clang] Use true/false instead of 1/0 (NFC) 2022-01-09 00:19:47 -08:00
ExtractAPI [clang][extract-api] Don't emit symbols prefixed with an underscore 2022-05-25 19:02:18 +01:00
Format [clang-format][NFC] Refactor UnwrappedLineParser::parseBlock() 2022-05-26 13:56:47 -07:00
Frontend Revert "[llvm][clang][bolt][NFC] Use llvm::less_first() when applicable" 2022-05-27 11:19:18 +02:00
FrontendTool [C++20][Modules][HU 1/5] Introduce header units as a module type. 2022-03-25 09:17:14 +00:00
Headers Roll back use of #warning for header deprecations 2022-05-26 14:51:39 -04:00
Index [AST] Improve traversal of concepts and concept requirements 2022-04-28 09:33:26 +00:00
IndexSerialization
Interpreter [ORC] Return ExecutorAddrs rather than JITEvaluatedSymbols from LLJIT::lookup. 2022-05-05 13:56:00 -07:00
Lex [Tooling/DependencyScanning & Preprocessor] Refactor dependency scanning to produce pre-lexed preprocessor directive tokens, instead of minimized sources 2022-05-26 12:50:06 -07:00
Parse Revert "[OpenMP] atomic compare fail : Parser & AST support" 2022-05-25 13:34:34 -04:00
Rewrite Add assert on End iteration distance to Rewriter::getRewrittenText. 2022-01-25 17:26:13 +00:00
Sema Revert "[llvm][clang][bolt][NFC] Use llvm::less_first() when applicable" 2022-05-27 11:19:18 +02:00
Serialization Revert "[OpenMP] atomic compare fail : Parser & AST support" 2022-05-25 13:34:34 -04:00
StaticAnalyzer Revert "[llvm][clang][bolt][NFC] Use llvm::less_first() when applicable" 2022-05-27 11:19:18 +02:00
Support [RISCV][NFC] Change interface of RVVIntrinsic::getSuffixStr 2022-05-24 17:24:32 +08:00
Testing [include-cleaner] Include-cleaner library structure, and simplistic AST walking. 2022-04-29 11:04:11 +02:00
Tooling [Tooling/DependencyScanning & Preprocessor] Refactor dependency scanning to produce pre-lexed preprocessor directive tokens, instead of minimized sources 2022-05-26 12:50:06 -07:00
CMakeLists.txt [RISCV] Moving RVV intrinsic type related util to clang/Support 2022-04-20 21:13:13 +08:00