llvm-project/clang/test
Scott Linder de6beb02a5 Implement -frecord-command-line (-frecord-gcc-switches)
Implement options in clang to enable recording the driver command-line
in an ELF section.

Implement a new special named metadata, llvm.commandline, to support
frontends embedding their command-line options in IR/ASM/ELF.

This differs from the GCC implementation in some key ways:

* In GCC there is only one command-line possible per compilation-unit,
  in LLVM it mirrors llvm.ident and multiple are allowed.
* In GCC individual options are separated by NULL bytes, in LLVM entire
  command-lines are separated by NULL bytes. The advantage of the GCC
  approach is to clearly delineate options in the face of embedded
  spaces. The advantage of the LLVM approach is to support merging
  multiple command-lines unambiguously, while handling embedded spaces
  with escaping.

Differential Revision: https://reviews.llvm.org/D54487
Clang Differential Revision: https://reviews.llvm.org/D54489

llvm-svn: 349155
2018-12-14 15:38:15 +00:00
..
ARCMT
AST [AST] Store "UsesADL" information in CallExpr. 2018-12-12 21:50:55 +00:00
ASTMerge
Analysis [analyzer] RunLoopAutoreleaseLeakChecker: Come up with a test for r348822. 2018-12-13 01:30:47 +00:00
CXX [constexpr][c++2a] Try-catch blocks in constexpr functions 2018-12-10 19:03:12 +00:00
CodeCompletion [CodeComplete] Set preferred type to bool on conditions 2018-12-13 15:36:32 +00:00
CodeGen [Builltins][X86] Provide implementations of __lzcnt16, __lzcnt, __lzcnt64 for MS compatibility. Remove declarations from intrin.h and implementations from lzcntintrin.h 2018-12-14 00:21:02 +00:00
CodeGenCUDA [CUDA] Make all host-side shadows of device-side variables undef. 2018-12-13 21:43:04 +00:00
CodeGenCXX Emit a proper diagnostic when attempting to forward inalloca arguments 2018-12-12 23:46:06 +00:00
CodeGenCoroutines Revert "[CodeGenCXX] Treat 'this' as noalias in constructors" 2018-10-15 15:43:00 +00:00
CodeGenObjC Convert some ObjC msgSends to runtime calls. 2018-12-08 05:13:50 +00:00
CodeGenObjCXX Pass the function type instead of the return type to FunctionDecl::Create 2018-11-11 00:56:15 +00:00
CodeGenOpenCL [OpenCL][CodeGen] Fix replacing memcpy with addrspacecast 2018-12-10 12:03:00 +00:00
CodeGenOpenCLCXX [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
Coverage
CoverageMapping [Coverage] Specify the Itanium ABI triple for a C++ test 2018-11-28 20:51:09 +00:00
Driver Implement -frecord-command-line (-frecord-gcc-switches) 2018-12-14 15:38:15 +00:00
FixIt Introduce the _Clang scoped attribute token. 2018-11-09 17:19:45 +00:00
Format
Frontend [frontend][darwin] warn_stdlibcxx_not_found: supress warning for preprocessed input 2018-12-06 22:45:58 +00:00
Headers [OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension 2018-11-08 11:25:41 +00:00
Import [AST] Store "UsesADL" information in CallExpr. 2018-12-12 21:50:55 +00:00
Index [CodeComplete] Fill preferred type on binary expressions 2018-12-13 16:06:11 +00:00
Integration
Layout
Lexer [c++20] Implement P0482R6: enable -fchar8_t by default in C++20 mode. 2018-11-14 21:04:34 +00:00
Misc [Unroll/UnrollAndJam/Vectorizer/Distribute] Add followup loop attributes. 2018-12-12 17:32:52 +00:00
Modules Reapply "Avoid emitting redundant or unusable directories in DIFile metadata entries."" 2018-12-06 18:44:50 +00:00
OpenMP [OPENMP][NVPTX] Fix globalization of the mapped array sections. 2018-12-06 15:35:13 +00:00
PCH Reuse code from CGDebugInfo::getOrCreateFile() when creating the file 2018-12-11 16:58:43 +00:00
Parser Move AST tests into their own test directory; NFC. 2018-11-30 18:43:02 +00:00
Preprocessor Basic: make `int_least64_t` and `int_fast64_t` match on Darwin 2018-12-12 17:05:20 +00:00
Profile
Refactor
Rewriter
Sema Replace Const-Member checking with non-recursive version. 2018-12-11 21:54:52 +00:00
SemaCUDA
SemaCXX Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds" 2018-12-14 00:43:34 +00:00
SemaObjC Move AST tests into their own test directory; NFC. 2018-11-30 18:43:02 +00:00
SemaObjCXX
SemaOpenCL OpenCL: Improve vector printf warnings 2018-12-01 22:16:27 +00:00
SemaOpenCLCXX [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00
SemaTemplate Fix crash if an in-class explicit function specialization has explicit 2018-12-04 22:26:32 +00:00
TableGen
Templight
Tooling Move detection of libc++ include dirs to Driver on MacOS 2018-12-05 14:24:14 +00:00
Unit
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt
TestRunner.sh
cxx-sections.data
lit.cfg.py Fix some issues with LLDB's lit configuration files. 2018-11-19 15:12:34 +00:00
lit.site.cfg.py.in
make_test_dirs.pl