Go to file
Marc-Andre Laperle 90a937e3e1 [clangd] Use operator<< to prevent printers issues in Gtest
Summary:
It is possible that there will be two different instantiations of
the printer template for a given type and some tests could end up calling the
wrong (default) one. For example, it was seen in CodeCompleteTests.cpp when
printing CompletionItems that it would use the wrong printer because the default
is also instantiated in ClangdTests.cpp.

With this change, objects that were previously printed with a custom Printer now
get printed through the operator<< which is declared alongside the class.
This rule of the thumb should make it less error-prone.

Reviewers: simark, ilya-biryukov, sammccall

Reviewed By: simark, ilya-biryukov, sammccall

Subscribers: bkramer, hokein, sammccall, klimek, ilya-biryukov, jkorous-apple, ioeric, MaskRay, cfe-commits

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

llvm-svn: 329725
2018-04-10 17:34:46 +00:00
clang I removed the failed test. 2018-04-10 15:45:43 +00:00
clang-tools-extra [clangd] Use operator<< to prevent printers issues in Gtest 2018-04-10 17:34:46 +00:00
compiler-rt [sanitizer] Allow BackgroundThread to not depend on StackDepot v2 2018-04-10 14:41:40 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc hypot: Port from amd builtins 2018-04-10 00:11:58 +00:00
libcxx [libcxx] [test] Use the correct type from strlen. Include correct header. 2018-04-10 03:04:07 +00:00
libcxxabi [CFI] Disable CFI checks for __cxa_decrement_exception_refcount 2018-04-09 22:11:28 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld [WebAssembly] Add support for custom sections 2018-04-10 16:12:49 +00:00
lldb Fix the Xcode build for the addition of OptionArgsParser. 2018-04-10 17:20:27 +00:00
llgo
llvm [DebugInfoPDB] Add DIA implementations of findSymbolByRVA and findSymbolByAddr 2018-04-10 17:33:18 +00:00
openmp [OpenMP] Remove extra warning when we build 2018-04-10 15:28:31 +00:00
parallel-libs
polly [CodeGen] Allow undefined loads in statement instances outside context. 2018-04-10 01:20:51 +00:00
README.md

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.