aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-02-20 08:13:52 +0100
committerRaphael Isemann <teemperor@gmail.com>2020-02-20 08:32:01 +0100
commitfdea9a4ec9b0d9585b8fe8a612686d9f44f40ddc (patch)
treeefbff7e17d570c0d8205f7536c9a9f1a8f2120ce /lldb/test/API/python_api
parentd8916e58cf1c37dbb1aef1a0e466537262046a8f (diff)
downloadllvm-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')
-rw-r--r--lldb/test/API/python_api/class_members/main.mm8
-rw-r--r--lldb/test/API/python_api/event/main.c7
-rw-r--r--lldb/test/API/python_api/exprpath_synthetic/main.mm7
-rw-r--r--lldb/test/API/python_api/frame/get-variables/main.c7
-rw-r--r--lldb/test/API/python_api/frame/main.c7
-rw-r--r--lldb/test/API/python_api/function_symbol/main.c7
-rw-r--r--lldb/test/API/python_api/lldbutil/frame/main.c7
-rw-r--r--lldb/test/API/python_api/lldbutil/iter/main.cpp8
-rw-r--r--lldb/test/API/python_api/lldbutil/process/main.cpp8
-rw-r--r--lldb/test/API/python_api/objc_type/main.m8
-rw-r--r--lldb/test/API/python_api/process/main.cpp7
-rw-r--r--lldb/test/API/python_api/sbdata/main.cpp7
-rw-r--r--lldb/test/API/python_api/sbtype_typeclass/main.m7
-rw-r--r--lldb/test/API/python_api/section/main.c7
-rw-r--r--lldb/test/API/python_api/signals/main.cpp7
-rw-r--r--lldb/test/API/python_api/symbol-context/main.c7
-rw-r--r--lldb/test/API/python_api/target/main.c7
-rw-r--r--lldb/test/API/python_api/thread/main.cpp7
-rw-r--r--lldb/test/API/python_api/thread/main2.cpp7
-rw-r--r--lldb/test/API/python_api/type/main.cpp7
-rw-r--r--lldb/test/API/python_api/value/empty_class/main.cpp8
-rw-r--r--lldb/test/API/python_api/value/linked_list/main.cpp7
-rw-r--r--lldb/test/API/python_api/value/main.c7
-rw-r--r--lldb/test/API/python_api/watchpoint/condition/main.cpp7
-rw-r--r--lldb/test/API/python_api/watchpoint/main.c7
-rw-r--r--lldb/test/API/python_api/watchpoint/watchlocation/main.cpp8
26 files changed, 0 insertions, 188 deletions
diff --git a/lldb/test/API/python_api/class_members/main.mm b/lldb/test/API/python_api/class_members/main.mm
index 48a2c59..b84f4d3 100644
--- a/lldb/test/API/python_api/class_members/main.mm
+++ b/lldb/test/API/python_api/class_members/main.mm
@@ -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
-//
-//===----------------------------------------------------------------------===//
-
#import <Foundation/Foundation.h>
class Base {
diff --git a/lldb/test/API/python_api/event/main.c b/lldb/test/API/python_api/event/main.c
index 5736952..f6dbff4b 100644
--- a/lldb/test/API/python_api/event/main.c
+++ b/lldb/test/API/python_api/event/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>
// This simple program is to test the lldb Python API related to events.
diff --git a/lldb/test/API/python_api/exprpath_synthetic/main.mm b/lldb/test/API/python_api/exprpath_synthetic/main.mm
index 365fe12..21db5e7 100644
--- a/lldb/test/API/python_api/exprpath_synthetic/main.mm
+++ b/lldb/test/API/python_api/exprpath_synthetic/main.mm
@@ -1,10 +1,3 @@
-//===-- main.mm --------------------------------------------------*- 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
-//
-//===----------------------------------------------------------------------===//
#import <Foundation/Foundation.h>
#include <vector>
diff --git a/lldb/test/API/python_api/frame/get-variables/main.c b/lldb/test/API/python_api/frame/get-variables/main.c
index 7606e2a..5f6bd7d 100644
--- a/lldb/test/API/python_api/frame/get-variables/main.c
+++ b/lldb/test/API/python_api/frame/get-variables/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>
int g_global_var = 123;
diff --git a/lldb/test/API/python_api/frame/main.c b/lldb/test/API/python_api/frame/main.c
index 75f4448..eb2b1a2 100644
--- a/lldb/test/API/python_api/frame/main.c
+++ b/lldb/test/API/python_api/frame/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>
// This simple program is to test the lldb Python API related to frames.
diff --git a/lldb/test/API/python_api/function_symbol/main.c b/lldb/test/API/python_api/function_symbol/main.c
index 33eea20..7dc18d2 100644
--- a/lldb/test/API/python_api/function_symbol/main.c
+++ b/lldb/test/API/python_api/function_symbol/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>
// This simple program is to test the lldb Python APIs SBTarget, SBFrame,
diff --git a/lldb/test/API/python_api/lldbutil/frame/main.c b/lldb/test/API/python_api/lldbutil/frame/main.c
index f837096..6244a38 100644
--- a/lldb/test/API/python_api/lldbutil/frame/main.c
+++ b/lldb/test/API/python_api/lldbutil/frame/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>
int a(int);
diff --git a/lldb/test/API/python_api/lldbutil/iter/main.cpp b/lldb/test/API/python_api/lldbutil/iter/main.cpp
index 6823ccc..38658e3 100644
--- a/lldb/test/API/python_api/lldbutil/iter/main.cpp
+++ b/lldb/test/API/python_api/lldbutil/iter/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
-//
-//===----------------------------------------------------------------------===//
-
// C includes
#include <stdio.h>
#include <stdint.h>
diff --git a/lldb/test/API/python_api/lldbutil/process/main.cpp b/lldb/test/API/python_api/lldbutil/process/main.cpp
index a490d8f..f310036 100644
--- a/lldb/test/API/python_api/lldbutil/process/main.cpp
+++ b/lldb/test/API/python_api/lldbutil/process/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
-//
-//===----------------------------------------------------------------------===//
-
static int foo(int x, int y) {
return x + y; // BREAK HERE
}
diff --git a/lldb/test/API/python_api/objc_type/main.m b/lldb/test/API/python_api/objc_type/main.m
index a2a7b0b..941442f 100644
--- a/lldb/test/API/python_api/objc_type/main.m
+++ b/lldb/test/API/python_api/objc_type/main.m
@@ -1,11 +1,3 @@
-//===-- main.m ------------------------------------------------*- ObjC -*-===//
-//
-// 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
-//
-//===----------------------------------------------------------------------===//
-
#import <Foundation/Foundation.h>
@interface Foo: NSObject
diff --git a/lldb/test/API/python_api/process/main.cpp b/lldb/test/API/python_api/process/main.cpp
index 32c6dee..f3cc7e1 100644
--- a/lldb/test/API/python_api/process/main.cpp
+++ b/lldb/test/API/python_api/process/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>
#include <stdint.h>
diff --git a/lldb/test/API/python_api/sbdata/main.cpp b/lldb/test/API/python_api/sbdata/main.cpp
index 78e071c..526e8cf 100644
--- a/lldb/test/API/python_api/sbdata/main.cpp
+++ b/lldb/test/API/python_api/sbdata/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 <stdint.h>
struct foo
diff --git a/lldb/test/API/python_api/sbtype_typeclass/main.m b/lldb/test/API/python_api/sbtype_typeclass/main.m
index 8e9601e..cf47922 100644
--- a/lldb/test/API/python_api/sbtype_typeclass/main.m
+++ b/lldb/test/API/python_api/sbtype_typeclass/main.m
@@ -1,10 +1,3 @@
-//===-- main.m --------------------------------------------------*- 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
-//
-//===----------------------------------------------------------------------===//
#import <Foundation/Foundation.h>
@interface ThisClassTestsThings : NSObject
diff --git a/lldb/test/API/python_api/section/main.c b/lldb/test/API/python_api/section/main.c
index f12ef5a..9d73ac7 100644
--- a/lldb/test/API/python_api/section/main.c
+++ b/lldb/test/API/python_api/section/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 <string.h>
diff --git a/lldb/test/API/python_api/signals/main.cpp b/lldb/test/API/python_api/signals/main.cpp
index c4c5a00..ef29e91 100644
--- a/lldb/test/API/python_api/signals/main.cpp
+++ b/lldb/test/API/python_api/signals/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>
#include <sys/types.h>
#if defined(_WIN32)
diff --git a/lldb/test/API/python_api/symbol-context/main.c b/lldb/test/API/python_api/symbol-context/main.c
index 4e68fb7..b6d3ee3 100644
--- a/lldb/test/API/python_api/symbol-context/main.c
+++ b/lldb/test/API/python_api/symbol-context/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>
// This simple program is to test the lldb Python API SBSymbolContext.
diff --git a/lldb/test/API/python_api/target/main.c b/lldb/test/API/python_api/target/main.c
index d075f2c..0d0580d 100644
--- a/lldb/test/API/python_api/target/main.c
+++ b/lldb/test/API/python_api/target/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>
// This simple program is to test the lldb Python API SBTarget.
diff --git a/lldb/test/API/python_api/thread/main.cpp b/lldb/test/API/python_api/thread/main.cpp
index 01c8404a..dde740a 100644
--- a/lldb/test/API/python_api/thread/main.cpp
+++ b/lldb/test/API/python_api/thread/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>
// This simple program is to test the lldb Python API related to thread.
diff --git a/lldb/test/API/python_api/thread/main2.cpp b/lldb/test/API/python_api/thread/main2.cpp
index 57c485c..b07841c 100644
--- a/lldb/test/API/python_api/thread/main2.cpp
+++ b/lldb/test/API/python_api/thread/main2.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>
#include <stdlib.h>
diff --git a/lldb/test/API/python_api/type/main.cpp b/lldb/test/API/python_api/type/main.cpp
index b43b617..40799ab 100644
--- a/lldb/test/API/python_api/type/main.cpp
+++ b/lldb/test/API/python_api/type/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/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>
diff --git a/lldb/test/API/python_api/watchpoint/condition/main.cpp b/lldb/test/API/python_api/watchpoint/condition/main.cpp
index 3f7c5f5..f0d14f3 100644
--- a/lldb/test/API/python_api/watchpoint/condition/main.cpp
+++ b/lldb/test/API/python_api/watchpoint/condition/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>
#include <stdint.h>
diff --git a/lldb/test/API/python_api/watchpoint/main.c b/lldb/test/API/python_api/watchpoint/main.c
index 6cda6d7..80d35a9 100644
--- a/lldb/test/API/python_api/watchpoint/main.c
+++ b/lldb/test/API/python_api/watchpoint/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>
diff --git a/lldb/test/API/python_api/watchpoint/watchlocation/main.cpp b/lldb/test/API/python_api/watchpoint/watchlocation/main.cpp
index e455331..0c5f5a6 100644
--- a/lldb/test/API/python_api/watchpoint/watchlocation/main.cpp
+++ b/lldb/test/API/python_api/watchpoint/watchlocation/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
-//
-//===----------------------------------------------------------------------===//
-
#include <chrono>
#include <condition_variable>
#include <cstdio>