diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-07-31 18:51:27 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-07-31 18:51:27 +0000 |
commit | 124fd5d9aff57cf47bf077df81ad939b289acc6e (patch) | |
tree | 340906fb5f85f639f43abcd5b221170d3667f101 /lib/sanitizer_common/sanitizer_type_traits.cpp | |
parent | 161e951c0ec6aff29998380416fff2070509a6cf (diff) | |
download | compiler-rt-124fd5d9aff57cf47bf077df81ad939b289acc6e.tar.gz |
compiler-rt: Rename .cc file in lib/sanitizer_common to .cpp
See https://reviews.llvm.org/D58620 for discussion, and for the commands
I ran. In addition I also ran
for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $f . ; done
and manually updated (many) references to renamed files found by that.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_type_traits.cpp')
-rw-r--r-- | lib/sanitizer_common/sanitizer_type_traits.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_type_traits.cpp b/lib/sanitizer_common/sanitizer_type_traits.cpp new file mode 100644 index 000000000..5ee37d737 --- /dev/null +++ b/lib/sanitizer_common/sanitizer_type_traits.cpp @@ -0,0 +1,20 @@ +//===-- sanitizer_type_traits.cpp -------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// Implements a subset of C++ type traits. This is so we can avoid depending +// on system C++ headers. +// +//===----------------------------------------------------------------------===// +#include "sanitizer_type_traits.h" + +namespace __sanitizer { + +const bool true_type::value; +const bool false_type::value; + +} // namespace __sanitizer |