Go to file
Jonas Toth 618c0bc363 [clang-tidy] Add the abseil-duration-factory-float check
Summary:
This check finds cases where calls to an absl::Duration factory could use the more efficient integer overload.

For example:
// Original - Providing a floating-point literal.
absl::Duration d = absl::Seconds(10.0);

// Suggested - Use an integer instead.
absl::Duration d = absl::Seconds(10);

Patch by hwright.

Reviewers: alexfh, hokein, aaron.ballman, JonasToth

Reviewed By: hokein, JonasToth

Subscribers: zturner, xazax.hun, Eugene.Zelenko, mgorny, cfe-commits

Tags: #clang-tools-extra

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

llvm-svn: 345167
2018-10-24 17:40:50 +00:00
clang CodeGen: extract some local variables in CFConstantString creation (NFC) 2018-10-24 16:56:36 +00:00
clang-tools-extra [clang-tidy] Add the abseil-duration-factory-float check 2018-10-24 17:40:50 +00:00
compiler-rt [hwasan] when printing a stack-related bugs, also print stack frame descriptions provided by the compiler 2018-10-24 01:35:50 +00:00
debuginfo-tests Revert "(Retry) Add a basic integration test for C++ smart pointers" 2018-08-20 19:53:33 +00:00
libclc configure: Rework support for gfx9+ devices that were added post LLVM 3.9 2018-09-15 22:02:01 +00:00
libcxx Adjust unsupported C++ versions in some tests 2018-10-24 15:09:08 +00:00
libcxxabi cxa_demangle: make demangler's parsing functions overridable 2018-10-16 14:29:14 +00:00
libunwind [CMake] Link to compiler-rt if LIBUNWIND_USE_COMPILER_RT is ON. 2018-10-08 18:35:00 +00:00
lld Refactor assignFileOffsets. NFC. 2018-10-24 15:47:46 +00:00
lldb Revert rL345127: [LLDB] - Add support for DW_RLE_base_address and DW_RLE_offset_pair entries 2018-10-24 16:21:56 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [docs] Add rawspeed to test-suite proposals. 2018-10-24 17:35:35 +00:00
openmp [OpenMP] Convert KMP_DYNAMIC_LIB to a 0 or 1 guard everywhere 2018-10-05 17:59:39 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [TI removal] Generically discuss terminators rather than use the soon to 2018-10-18 07:43:30 +00:00
README.md Update the project name in README.md 2018-10-19 00:03:01 +00:00

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.