-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Verify llvm-needs-components are not empty and match the --target value #144042
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -519,8 +519,11 @@ pub fn check(path: &Path, bad: &mut bool) { | |
.any(|directive| matches!(directive, Directive::Ignore(_))); | ||
let has_alphabetical_directive = line.contains("tidy-alphabetical-start") | ||
|| line.contains("tidy-alphabetical-end"); | ||
let has_recognized_directive = | ||
has_recognized_ignore_directive || has_alphabetical_directive; | ||
let has_other_tidy_ignore_directive = | ||
line.contains("ignore-tidy-target-specific-tests"); | ||
Comment on lines
+522
to
+523
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: this tidy ignore directive is new right? Can you please also describe this in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea: added a note and created a section for tidy-related test directives. |
||
let has_recognized_directive = has_recognized_ignore_directive | ||
|| has_alphabetical_directive | ||
|| has_other_tidy_ignore_directive; | ||
if contains_potential_directive && (!has_recognized_directive) { | ||
err("Unrecognized tidy directive") | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
//@ compile-flags: | ||
|
||
#![crate_type = "lib"] | ||
|
||
// A basic test function. | ||
|
Uh oh!
There was an error while loading. Please reload this page.