diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2020-02-20 08:13:52 +0100 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2020-02-20 08:32:01 +0100 |
| commit | fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc (patch) | |
| tree | efbff7e17d570c0d8205f7536c9a9f1a8f2120ce /lldb/test/API/python_api/value | |
| parent | d8916e58cf1c37dbb1aef1a0e466537262046a8f (diff) | |
| download | llvm-fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc.zip llvm-fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc.tar.gz llvm-fdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc.tar.bz2 | |
[lldb] Remove license headers from all test source files
Summary:
Around a third of our test sources have LLVM license headers. This patch removes those headers from all test
sources and also fixes any tests that depended on the length of the license header.
The reasons for this are:
* A few tests verify line numbers and will start failing if the number of lines in the LLVM license header changes. Once I landed my patch for valid SourceLocations in debug info we will probably have even more tests that verify line numbers.
* No other LLVM project is putting license headers in its test files to my knowledge.
* They make the test sources much more verbose than they have to be. Several tests have longer license headers than the actual test source.
For the record, the following tests had their line numbers changed to pass with the removal of the license header:
lldb-api :: functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py
lldb-shell :: Reproducer/TestGDBRemoteRepro.test
lldb-shell :: Reproducer/TestMultipleTargets.test
lldb-shell :: Reproducer/TestReuseDirectory.test
lldb-shell :: ExecControl/StopHook/stop-hook-threads.test
lldb-shell :: ExecControl/StopHook/stop-hook.test
lldb-api :: lang/objc/exceptions/TestObjCExceptions.py
Reviewers: #lldb, espindola, JDevlieghere
Reviewed By: #lldb, JDevlieghere
Subscribers: emaste, aprantl, arphaman, JDevlieghere, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D74839
Diffstat (limited to 'lldb/test/API/python_api/value')
| -rw-r--r-- | lldb/test/API/python_api/value/empty_class/main.cpp | 8 | ||||
| -rw-r--r-- | lldb/test/API/python_api/value/linked_list/main.cpp | 7 | ||||
| -rw-r--r-- | lldb/test/API/python_api/value/main.c | 7 |
3 files changed, 0 insertions, 22 deletions
diff --git a/lldb/test/API/python_api/value/empty_class/main.cpp b/lldb/test/API/python_api/value/empty_class/main.cpp index 483a57e..9051dbb 100644 --- a/lldb/test/API/python_api/value/empty_class/main.cpp +++ b/lldb/test/API/python_api/value/empty_class/main.cpp @@ -1,11 +1,3 @@ -//===-- main.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 -// -//===----------------------------------------------------------------------===// - class Empty {}; int main (int argc, char const *argv[]) { diff --git a/lldb/test/API/python_api/value/linked_list/main.cpp b/lldb/test/API/python_api/value/linked_list/main.cpp index edd175ae..13982bf 100644 --- a/lldb/test/API/python_api/value/linked_list/main.cpp +++ b/lldb/test/API/python_api/value/linked_list/main.cpp @@ -1,10 +1,3 @@ -//===-- main.c --------------------------------------------------*- 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 -// -//===----------------------------------------------------------------------===// #include <stdio.h> class Task { diff --git a/lldb/test/API/python_api/value/main.c b/lldb/test/API/python_api/value/main.c index 68b3c12..c2e0dc8 100644 --- a/lldb/test/API/python_api/value/main.c +++ b/lldb/test/API/python_api/value/main.c @@ -1,10 +1,3 @@ -//===-- main.c --------------------------------------------------*- 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 -// -//===----------------------------------------------------------------------===// #include <stdio.h> #include <stdint.h> |
