[patch] Add missing license headers to libc++
Nico Weber
thakis at chromium.org
Thu Dec 26 09:47:49 PST 2013
Hi,
we noticed that a handful of files in libc++ are missing license headers
(mostly test files, and some files added for the solaris port). The
attached patch adds them. Ok?
Fixes PR18291.
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131226/bcdea75e/attachment.html>
-------------- next part --------------
Index: test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp
===================================================================
--- test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp (revision 198052)
+++ test/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_min_max.pass.cpp (working copy)
@@ -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>
Index: test/strings/basic.string/test_traits.h
===================================================================
--- test/strings/basic.string/test_traits.h (revision 198052)
+++ test/strings/basic.string/test_traits.h (working copy)
@@ -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
Index: test/strings/basic.string/input_iterator.h
===================================================================
--- test/strings/basic.string/input_iterator.h (revision 198052)
+++ test/strings/basic.string/input_iterator.h (working copy)
@@ -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
Index: test/containers/Emplaceable.h
===================================================================
--- test/containers/Emplaceable.h (revision 198052)
+++ test/containers/Emplaceable.h (working copy)
@@ -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
Index: test/containers/Copyable.h
===================================================================
--- test/containers/Copyable.h (revision 198052)
+++ test/containers/Copyable.h (working copy)
@@ -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
Index: test/containers/NotConstructible.h
===================================================================
--- test/containers/NotConstructible.h (revision 198052)
+++ test/containers/NotConstructible.h (working copy)
@@ -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
Index: test/containers/test_hash.h
===================================================================
--- test/containers/test_hash.h (revision 198052)
+++ test/containers/test_hash.h (working copy)
@@ -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
Index: test/containers/stack_allocator.h
===================================================================
--- test/containers/stack_allocator.h (revision 198052)
+++ test/containers/stack_allocator.h (working copy)
@@ -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
Index: test/containers/test_compare.h
===================================================================
--- test/containers/test_compare.h (revision 198052)
+++ test/containers/test_compare.h (working copy)
@@ -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
Index: test/containers/MoveOnly.h
===================================================================
--- test/containers/MoveOnly.h (revision 198052)
+++ test/containers/MoveOnly.h (working copy)
@@ -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
Index: test/thread/futures/test_allocator.h
===================================================================
--- test/thread/futures/test_allocator.h (revision 198052)
+++ test/thread/futures/test_allocator.h (working copy)
@@ -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
Index: test/utilities/tuple/tuple.tuple/alloc_last.h
===================================================================
--- test/utilities/tuple/tuple.tuple/alloc_last.h (revision 198052)
+++ test/utilities/tuple/tuple.tuple/alloc_last.h (working copy)
@@ -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
Index: test/utilities/tuple/tuple.tuple/alloc_first.h
===================================================================
--- test/utilities/tuple/tuple.tuple/alloc_first.h (revision 198052)
+++ test/utilities/tuple/tuple.tuple/alloc_first.h (working copy)
@@ -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
Index: test/utilities/tuple/tuple.tuple/MoveOnly.h
===================================================================
--- test/utilities/tuple/tuple.tuple/MoveOnly.h (revision 198052)
+++ test/utilities/tuple/tuple.tuple/MoveOnly.h (working copy)
@@ -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
Index: test/utilities/time/clock.h
===================================================================
--- test/utilities/time/clock.h (revision 198052)
+++ test/utilities/time/clock.h (working copy)
@@ -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
Index: test/utilities/time/rep.h
===================================================================
--- test/utilities/time/rep.h (revision 198052)
+++ test/utilities/time/rep.h (working copy)
@@ -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
Index: test/utilities/function.objects/bitwise.operations/transparent.pass.cpp
===================================================================
--- test/utilities/function.objects/bitwise.operations/transparent.pass.cpp (revision 198052)
+++ test/utilities/function.objects/bitwise.operations/transparent.pass.cpp (working copy)
@@ -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>
Index: test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
===================================================================
--- test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp (revision 198052)
+++ test/utilities/function.objects/arithmetic.operations/transparent.pass.cpp (working copy)
@@ -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>
Index: test/utilities/function.objects/logical.operations/transparent.pass.cpp
===================================================================
--- test/utilities/function.objects/logical.operations/transparent.pass.cpp (revision 198052)
+++ test/utilities/function.objects/logical.operations/transparent.pass.cpp (working copy)
@@ -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>
Index: test/utilities/function.objects/comparisons/transparent.pass.cpp
===================================================================
--- test/utilities/function.objects/comparisons/transparent.pass.cpp (revision 198052)
+++ test/utilities/function.objects/comparisons/transparent.pass.cpp (working copy)
@@ -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>
Index: test/support/test_iterators.h
===================================================================
--- test/support/test_iterators.h (revision 198052)
+++ test/support/test_iterators.h (working copy)
@@ -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
Index: test/support/private_constructor.hpp
===================================================================
--- test/support/private_constructor.hpp (revision 198052)
+++ test/support/private_constructor.hpp (working copy)
@@ -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
Index: test/support/test_allocator.h
===================================================================
--- test/support/test_allocator.h (revision 198052)
+++ test/support/test_allocator.h (working copy)
@@ -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
Index: test/support/allocators.h
===================================================================
--- test/support/allocators.h (revision 198052)
+++ test/support/allocators.h (working copy)
@@ -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
Index: test/support/min_allocator.h
===================================================================
--- test/support/min_allocator.h (revision 198052)
+++ test/support/min_allocator.h (working copy)
@@ -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
Index: test/support/DefaultOnly.h
===================================================================
--- test/support/DefaultOnly.h (revision 198052)
+++ test/support/DefaultOnly.h (working copy)
@@ -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
Index: include/support/solaris/floatingpoint.h
===================================================================
--- include/support/solaris/floatingpoint.h (revision 198052)
+++ include/support/solaris/floatingpoint.h (working copy)
@@ -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"
Index: include/support/solaris/wchar.h
===================================================================
--- include/support/solaris/wchar.h (revision 198052)
+++ include/support/solaris/wchar.h (working copy)
@@ -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
Index: include/support/solaris/xlocale.h
===================================================================
--- include/support/solaris/xlocale.h (revision 198052)
+++ include/support/solaris/xlocale.h (working copy)
@@ -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.
Index: src/support/solaris/xlocale.c
===================================================================
--- src/support/solaris/xlocale.c (revision 198052)
+++ src/support/solaris/xlocale.c (working copy)
@@ -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__
More information about the cfe-commits
mailing list