forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "merge main into amd-staging" into amd-staging
- Loading branch information
Showing
636 changed files
with
57,736 additions
and
17,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
clang-tools-extra/clangd/test/delimited-input-comment-at-the-end.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# RUN: clangd -input-style=delimited -sync -input-mirror-file %t < %s | ||
# RUN: grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' %t | ||
# | ||
# RUN: clangd -lit-test -input-mirror-file %t < %s | ||
# RUN: grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' %t | ||
# | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
--- | ||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
--- | ||
{"jsonrpc":"2.0","method":"exit"} | ||
# RUN: clangd -input-style=delimited -sync -input-mirror-file %t < %s | ||
# RUN: grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' %t | ||
# | ||
# RUN: clangd -lit-test -input-mirror-file %t < %s | ||
# RUN: grep '{"jsonrpc":"2.0","id":3,"method":"exit"}' %t | ||
# | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
--- | ||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
--- | ||
{"jsonrpc":"2.0","method":"exit"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
# RUN: clangd -lit-test < %s | FileCheck %s | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
--- | ||
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"void foo(); int main() { foo(); }\n"}}} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":0,"character":27}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": { | ||
# CHECK-NEXT: "contents": { | ||
# CHECK-NEXT: "kind": "plaintext", | ||
# CHECK-NEXT: "value": "function foo\n\n→ void\n\nvoid foo()" | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "range": { | ||
# CHECK-NEXT: "end": { | ||
# CHECK-NEXT: "character": 28, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "start": { | ||
# CHECK-NEXT: "character": 25, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT:} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":0,"character":10}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": null | ||
--- | ||
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main2.cpp","languageId":"cpp","version":1,"text":"enum foo{}; int main() { foo f; }\n"}}} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main2.cpp"},"position":{"line":0,"character":27}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": { | ||
# CHECK-NEXT: "contents": { | ||
# CHECK-NEXT: "kind": "plaintext", | ||
# CHECK-NEXT: "value": "enum foo\n\nenum foo {}" | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "range": { | ||
# CHECK-NEXT: "end": { | ||
# CHECK-NEXT: "character": 28, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "start": { | ||
# CHECK-NEXT: "character": 25, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT:} | ||
--- | ||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
--- | ||
{"jsonrpc":"2.0","method":"exit"} | ||
# RUN: clangd -lit-test < %s | FileCheck %s | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
--- | ||
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main.cpp","languageId":"cpp","version":1,"text":"void foo(); int main() { foo(); }\n"}}} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":0,"character":27}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": { | ||
# CHECK-NEXT: "contents": { | ||
# CHECK-NEXT: "kind": "plaintext", | ||
# CHECK-NEXT: "value": "function foo\n\n→ void\n\nvoid foo()" | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "range": { | ||
# CHECK-NEXT: "end": { | ||
# CHECK-NEXT: "character": 28, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "start": { | ||
# CHECK-NEXT: "character": 25, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT:} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main.cpp"},"position":{"line":0,"character":10}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": null | ||
--- | ||
{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///main2.cpp","languageId":"cpp","version":1,"text":"enum foo{}; int main() { foo f; }\n"}}} | ||
--- | ||
{"jsonrpc":"2.0","id":1,"method":"textDocument/hover","params":{"textDocument":{"uri":"test:///main2.cpp"},"position":{"line":0,"character":27}}} | ||
# CHECK: "id": 1, | ||
# CHECK-NEXT: "jsonrpc": "2.0", | ||
# CHECK-NEXT: "result": { | ||
# CHECK-NEXT: "contents": { | ||
# CHECK-NEXT: "kind": "plaintext", | ||
# CHECK-NEXT: "value": "enum foo\n\nenum foo {}" | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "range": { | ||
# CHECK-NEXT: "end": { | ||
# CHECK-NEXT: "character": 28, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: }, | ||
# CHECK-NEXT: "start": { | ||
# CHECK-NEXT: "character": 25, | ||
# CHECK-NEXT: "line": 0 | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT:} | ||
--- | ||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
--- | ||
{"jsonrpc":"2.0","method":"exit"} |
26 changes: 13 additions & 13 deletions
26
clang-tools-extra/clangd/test/spaces-in-delimited-input.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# RUN: clangd -input-style=delimited -sync < %s 2>&1 | FileCheck %s | ||
# RUN: clangd -lit-test -sync < %s 2>&1 | FileCheck %s | ||
# | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
--- | ||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
--- | ||
{"jsonrpc":"2.0","method":"exit"} | ||
# CHECK-NOT: JSON parse error | ||
# RUN: clangd -input-style=delimited -sync < %s 2>&1 | FileCheck %s | ||
# RUN: clangd -lit-test -sync < %s 2>&1 | FileCheck %s | ||
# | ||
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} | ||
|
||
--- | ||
|
||
{"jsonrpc":"2.0","id":3,"method":"shutdown"} | ||
|
||
--- | ||
|
||
{"jsonrpc":"2.0","method":"exit"} | ||
# CHECK-NOT: JSON parse error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
...s-extra/test/clang-tidy/checkers/readability/Inputs/duplicate-include/duplicate-include.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#ifndef READABILITY_DUPLICATE_INCLUDE_H | ||
#define READABILITY_DUPLICATE_INCLUDE_H | ||
|
||
extern int g; | ||
#include "duplicate-include2.h" | ||
extern int h; | ||
#include "duplicate-include2.h" | ||
extern int i; | ||
// CHECK-MESSAGES: :[[@LINE-2]]:1: warning: duplicate include | ||
// CHECK-FIXES: {{^extern int g;$}} | ||
// CHECK-FIXES-NEXT: {{^#include "duplicate-include2.h"$}} | ||
// CHECK-FIXES-NEXT: {{^extern int h;$}} | ||
// CHECK-FIXES-NEXT: {{^extern int i;$}} | ||
|
||
#endif | ||
#ifndef READABILITY_DUPLICATE_INCLUDE_H | ||
#define READABILITY_DUPLICATE_INCLUDE_H | ||
|
||
extern int g; | ||
#include "duplicate-include2.h" | ||
extern int h; | ||
#include "duplicate-include2.h" | ||
extern int i; | ||
// CHECK-MESSAGES: :[[@LINE-2]]:1: warning: duplicate include | ||
// CHECK-FIXES: {{^extern int g;$}} | ||
// CHECK-FIXES-NEXT: {{^#include "duplicate-include2.h"$}} | ||
// CHECK-FIXES-NEXT: {{^extern int h;$}} | ||
// CHECK-FIXES-NEXT: {{^extern int i;$}} | ||
|
||
#endif |
2 changes: 1 addition & 1 deletion
2
...-extra/test/clang-tidy/checkers/readability/Inputs/duplicate-include/duplicate-include2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// This file is intentionally empty. | ||
// This file is intentionally empty. |
2 changes: 1 addition & 1 deletion
2
...ls-extra/test/clang-tidy/checkers/readability/Inputs/duplicate-include/system/sys/types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
// This file is intentionally empty. | ||
// This file is intentionally empty. |
Oops, something went wrong.