Go to file
Yitzhak Mandelbaum aecc59c5f9 [LibTooling] Change Transformer's TextGenerator to a partial function.
Summary:
Changes the signature of the TextGenerator std::function to return an Expected<std::string>
instead of std::string to allow for (non-fatal) failures.  Previously, we
expected that any failures would be expressed with assertions. However, that's
unfriendly to running the code in servers or other places that don't want their
library calls to crash the program.

Correspondingly, updates Transformer's handling of failures in TextGenerators
and the signature of `ChangeConsumer`.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 359574
2019-04-30 16:48:33 +00:00
clang [LibTooling] Change Transformer's TextGenerator to a partial function. 2019-04-30 16:48:33 +00:00
clang-tools-extra [clangd] gen_std uses multiprocessing pool to be fast. While here, log ambiguous symbols. NFC 2019-04-30 14:21:10 +00:00
compiler-rt [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc travis: Add LLVM-8 build 2019-03-27 21:28:31 +00:00
libcxx [libc++][CMake] Refactor how we link against system libraries 2019-04-30 15:44:19 +00:00
libcxxabi Update DemangleConfig.h to better mangle LLVM's version. 2019-04-30 06:38:24 +00:00
libunwind [NFC] Fix typo in debug log 2019-04-22 15:40:50 +00:00
lld [LLD][ELF] /DISCARD/ output sections should not be orphans 2019-04-30 14:31:22 +00:00
lldb Un-xfail the TestMiniDump tests on Windows 2019-04-30 16:42:39 +00:00
llgo IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
llvm gn build: Add check-clangd target after r3359424 2019-04-30 15:36:02 +00:00
openmp [OPENMP][NVPTX]Correctly handle L2 parallelism in SPMD mode. 2019-04-26 19:30:34 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly Apply include-what-you-use #include removal suggestions. NFC. 2019-03-28 20:19:49 +00:00
pstl [pstl] Make the default backend be the serial backend and always provide parallel policies 2019-04-24 20:12:36 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
.gitignore Add a reduced copy of the llvm .gitignore 2019-04-09 00:52:49 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

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