Add license headers to a bunch of libc++ files that were missing them. No functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@199400 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/support/solaris/floatingpoint.h b/include/support/solaris/floatingpoint.h
index 21b0349..999d144 100644
--- a/include/support/solaris/floatingpoint.h
+++ b/include/support/solaris/floatingpoint.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#define atof sun_atof
#define strtod sun_strtod
#include_next "floatingpoint.h"
diff --git a/include/support/solaris/wchar.h b/include/support/solaris/wchar.h
index 05a7241..0e8e660 100644
--- a/include/support/solaris/wchar.h
+++ b/include/support/solaris/wchar.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#define iswalpha sun_iswalpha
#define iswupper sun_iswupper
#define iswlower sun_iswlower
diff --git a/include/support/solaris/xlocale.h b/include/support/solaris/xlocale.h
index 359508d..875a39a 100644
--- a/include/support/solaris/xlocale.h
+++ b/include/support/solaris/xlocale.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
////////////////////////////////////////////////////////////////////////////////
// Minimal xlocale implementation for Solaris. This implements the subset of
// the xlocale APIs that libc++ depends on.
diff --git a/src/support/solaris/xlocale.c b/src/support/solaris/xlocale.c
index a2c1fa9..39dd8e3 100644
--- a/src/support/solaris/xlocale.c
+++ b/src/support/solaris/xlocale.c
@@ -1,3 +1,11 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
#ifdef __sun__
diff --git a/test/containers/Copyable.h b/test/containers/Copyable.h
index 121cef6..9542c7e 100644
--- a/test/containers/Copyable.h
+++ b/test/containers/Copyable.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef COPYABLE_H
#define COPYABLE_H
diff --git a/test/containers/Emplaceable.h b/test/containers/Emplaceable.h
index aab290a..34dd326 100644
--- a/test/containers/Emplaceable.h
+++ b/test/containers/Emplaceable.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef EMPLACEABLE_H
#define EMPLACEABLE_H
diff --git a/test/containers/MoveOnly.h b/test/containers/MoveOnly.h
index cbf8020..e4d9f64 100644
--- a/test/containers/MoveOnly.h
+++ b/test/containers/MoveOnly.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef MOVEONLY_H
#define MOVEONLY_H
diff --git a/test/containers/NotConstructible.h b/test/containers/NotConstructible.h
index 5705003..ac8b98e 100644
--- a/test/containers/NotConstructible.h
+++ b/test/containers/NotConstructible.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef NOTCONSTRUCTIBLE_H
#define NOTCONSTRUCTIBLE_H
diff --git a/test/containers/stack_allocator.h b/test/containers/stack_allocator.h
index e6af473..d5fab02 100644
--- a/test/containers/stack_allocator.h
+++ b/test/containers/stack_allocator.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef STACK_ALLOCATOR_H
#define STACK_ALLOCATOR_H
diff --git a/test/containers/test_compare.h b/test/containers/test_compare.h
index ba56286..9c54799 100644
--- a/test/containers/test_compare.h
+++ b/test/containers/test_compare.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef TEST_COMPARE_H
#define TEST_COMPARE_H
diff --git a/test/containers/test_hash.h b/test/containers/test_hash.h
index 95f6e9e..1a70e7c 100644
--- a/test/containers/test_hash.h
+++ b/test/containers/test_hash.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef TEST_HASH_H
#define TEST_HASH_H
diff --git a/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp b/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp
index c60ecc5..e474eca 100644
--- a/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp
+++ b/test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#include <limits>
#include <sstream>
#include <iostream>
diff --git a/test/strings/basic.string/input_iterator.h b/test/strings/basic.string/input_iterator.h
index 37939a2..fa6bb80 100644
--- a/test/strings/basic.string/input_iterator.h
+++ b/test/strings/basic.string/input_iterator.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef INPUT_ITERATOR_H
#define INPUT_ITERATOR_H
diff --git a/test/strings/basic.string/test_traits.h b/test/strings/basic.string/test_traits.h
index 45268f7..f635b1d 100644
--- a/test/strings/basic.string/test_traits.h
+++ b/test/strings/basic.string/test_traits.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef TEST_TRAITS_H
#define TEST_TRAITS_H
diff --git a/test/support/DefaultOnly.h b/test/support/DefaultOnly.h
index bdcf46d..a3d4303 100644
--- a/test/support/DefaultOnly.h
+++ b/test/support/DefaultOnly.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef DEFAULTONLY_H
#define DEFAULTONLY_H
diff --git a/test/support/allocators.h b/test/support/allocators.h
index e5e0a13..5372c07 100644
--- a/test/support/allocators.h
+++ b/test/support/allocators.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef ALLOCATORS_H
#define ALLOCATORS_H
diff --git a/test/support/min_allocator.h b/test/support/min_allocator.h
index c0d28e5..f3f08ca 100644
--- a/test/support/min_allocator.h
+++ b/test/support/min_allocator.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef MIN_ALLOCATOR_H
#define MIN_ALLOCATOR_H
diff --git a/test/support/private_constructor.hpp b/test/support/private_constructor.hpp
index 3f6f0d3..a9fcf68 100644
--- a/test/support/private_constructor.hpp
+++ b/test/support/private_constructor.hpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef __PRIVATE_CONSTRUCTOR__H
#define __PRIVATE_CONSTRUCTOR__H
diff --git a/test/support/test_allocator.h b/test/support/test_allocator.h
index 3ec7f47..99f72a0 100644
--- a/test/support/test_allocator.h
+++ b/test/support/test_allocator.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef TEST_ALLOCATOR_H
#define TEST_ALLOCATOR_H
diff --git a/test/support/test_iterators.h b/test/support/test_iterators.h
index 81f064d..5bd6df7 100644
--- a/test/support/test_iterators.h
+++ b/test/support/test_iterators.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef ITERATORS_H
#define ITERATORS_H
diff --git a/test/thread/futures/test_allocator.h b/test/thread/futures/test_allocator.h
index e04d432..ea70ada 100644
--- a/test/thread/futures/test_allocator.h
+++ b/test/thread/futures/test_allocator.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef TEST_ALLOCATOR_H
#define TEST_ALLOCATOR_H
diff --git a/test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp b/test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
index 43e2e21..72b4b4a 100644
--- a/test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
+++ b/test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#include <functional>
#include <string>
diff --git a/test/utilities/function.objects/bitwise.operations/transparent.pass.cpp b/test/utilities/function.objects/bitwise.operations/transparent.pass.cpp
index 91d263e..9f8e15d 100644
--- a/test/utilities/function.objects/bitwise.operations/transparent.pass.cpp
+++ b/test/utilities/function.objects/bitwise.operations/transparent.pass.cpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#include <functional>
#include <string>
diff --git a/test/utilities/function.objects/comparisons/transparent.pass.cpp b/test/utilities/function.objects/comparisons/transparent.pass.cpp
index 516b364..41ce4bc 100644
--- a/test/utilities/function.objects/comparisons/transparent.pass.cpp
+++ b/test/utilities/function.objects/comparisons/transparent.pass.cpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#include <functional>
#include <string>
diff --git a/test/utilities/function.objects/logical.operations/transparent.pass.cpp b/test/utilities/function.objects/logical.operations/transparent.pass.cpp
index 5b3e187..6e3b7a2 100644
--- a/test/utilities/function.objects/logical.operations/transparent.pass.cpp
+++ b/test/utilities/function.objects/logical.operations/transparent.pass.cpp
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#include <functional>
#include <string>
diff --git a/test/utilities/time/clock.h b/test/utilities/time/clock.h
index ec99f26..c72470c 100644
--- a/test/utilities/time/clock.h
+++ b/test/utilities/time/clock.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef CLOCK_H
#define CLOCK_H
diff --git a/test/utilities/time/rep.h b/test/utilities/time/rep.h
index 59c58bb..2ec3514 100644
--- a/test/utilities/time/rep.h
+++ b/test/utilities/time/rep.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef REP_H
#define REP_H
diff --git a/test/utilities/tuple/tuple.tuple/MoveOnly.h b/test/utilities/tuple/tuple.tuple/MoveOnly.h
index cbf8020..e4d9f64 100644
--- a/test/utilities/tuple/tuple.tuple/MoveOnly.h
+++ b/test/utilities/tuple/tuple.tuple/MoveOnly.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef MOVEONLY_H
#define MOVEONLY_H
diff --git a/test/utilities/tuple/tuple.tuple/alloc_first.h b/test/utilities/tuple/tuple.tuple/alloc_first.h
index 948f2a4..237a289 100644
--- a/test/utilities/tuple/tuple.tuple/alloc_first.h
+++ b/test/utilities/tuple/tuple.tuple/alloc_first.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef ALLOC_FIRST_H
#define ALLOC_FIRST_H
diff --git a/test/utilities/tuple/tuple.tuple/alloc_last.h b/test/utilities/tuple/tuple.tuple/alloc_last.h
index e87cb21..71a9b9e 100644
--- a/test/utilities/tuple/tuple.tuple/alloc_last.h
+++ b/test/utilities/tuple/tuple.tuple/alloc_last.h
@@ -1,3 +1,12 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
#ifndef ALLOC_LAST_H
#define ALLOC_LAST_H