-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Make clang report invalid target versions. #75373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 30 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
74f256d
Make clang report garbage target versions.
ZijunZhaoCCK 0d159b2
rephrase
ZijunZhaoCCK 835a605
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK b2dda9c
Make clang report garbage target versions.
ZijunZhaoCCK 8317657
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 8519713
Make clang report garbage target versions.
ZijunZhaoCCK 48004fe
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK a726fe2
Make clang report garbage target versions.
ZijunZhaoCCK bef0de6
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 8ed23ef
Make clang report garbage target versions.
ZijunZhaoCCK 9f5c7b3
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 1827977
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 6e62da1
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 01128aa
Make clang report garbage target versions.
ZijunZhaoCCK a6d5ffa
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 1fdd390
Make clang report garbage target versions.
ZijunZhaoCCK 2c0435b
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 752df27
Make clang report invalid target versions.
ZijunZhaoCCK 1136d39
Make clang report invalid target versions.
ZijunZhaoCCK c2e346f
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 9d1abab
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK e889780
reformat
ZijunZhaoCCK 01f4d21
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK e0af303
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 7493294
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK bc0ea97
1. update tests 2. update getEnvironmentVersion()
ZijunZhaoCCK 917c7ea
add newline
ZijunZhaoCCK d7ffb28
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK d015606
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK fb1673e
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 951e753
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK ff42931
update tests
ZijunZhaoCCK 2bf1fcd
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK f1efb18
update tests
ZijunZhaoCCK c98888d
Merge branch 'llvm:main' into clang-warning
ZijunZhaoCCK 5d89e7f
update error msg and tests
ZijunZhaoCCK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Check that we get the right Android version. | ||
|
||
// RUN: not %clang -target aarch64-linux-androidS -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-ERROR %s | ||
|
||
// CHECK-ERROR: error: Version S in triple aarch64-unknown-linux-android is invalid. | ||
|
||
// RUN: not %clang -target armv7-linux-androideabiS -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-ERROR1 %s | ||
|
||
// CHECK-ERROR1: error: Version S in triple armv7-unknown-linux-android is invalid. | ||
|
||
// RUN: %clang -target aarch64-linux-android31 -c %s -### 2>&1 | \ | ||
// RUN: FileCheck --check-prefix=CHECK-TARGET %s | ||
|
||
// CHECK-TARGET: "aarch64-unknown-linux-android31" |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.