Skip to content

Commit

Permalink
Add missing known directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 24, 2024
1 parent 967dac6 commit 7ecce91
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ pub fn line_directive<'line>(
/// This is generated by collecting directives from ui tests and then extracting their directive
/// names. This is **not** an exhaustive list of all possible directives. Instead, this is a
/// best-effort approximation for diagnostics.
// tidy-alphabetical-start
const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"assembly-output",
"aux-build",
Expand Down Expand Up @@ -724,9 +725,11 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"ignore-lldb",
"ignore-llvm-version",
"ignore-loongarch64",
"ignore-macabi",
"ignore-macos",
"ignore-mode-coverage-map",
"ignore-mode-coverage-run",
"ignore-mode-run-pass-valgrind",
"ignore-msp430",
"ignore-msvc",
"ignore-musl",
Expand All @@ -743,28 +746,36 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"ignore-spirv",
"ignore-stable",
"ignore-stage1",
"ignore-stage2",
"ignore-test",
"ignore-thumbv8m.base-none-eabi",
"ignore-thumbv8m.main-none-eabi",
"ignore-unix",
"ingore-unknown",
"ignore-uwp",
"ignore-vxworks",
"ignore-wasm",
"ignore-wasm32",
"ignore-wasm32-bare",
"ignore-wasm64",
"ignore-windows",
"ignore-windows-gnu",
"ignore-x86",
"ignore-x86_64",
"ignore-x86_64-apple-darwin",
"ignore-x86_64-unknown-linux-gnu",
"incremental",
"known-bug",
"llvm-cov-flags",
"min-cdb-version",
"min-gdb-version",
"min-lldb-version",
"min-llvm-version",
"min-system-llvm-version",
"needs-asm-support",
"needs-dlltool",
"needs-dynamic-linking",
"needs-git-hash",
"needs-llvm-components",
"needs-profiler-support",
"needs-relocation-model-pic",
Expand Down Expand Up @@ -810,13 +821,15 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"only-riscv64",
"only-sparc",
"only-sparc64",
"only-stable",
"only-thumb",
"only-wasm32",
"only-wasm32-bare",
"only-windows",
"only-x86",
"only-x86_64",
"only-x86_64-fortanix-unknown-sgx",
"only-x86_64-pc-windows-gnu",
"only-x86_64-pc-windows-msvc",
"only-x86_64-unknown-linux-gnu",
"pp-exact",
Expand All @@ -839,6 +852,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"unset-exec-env",
"unset-rustc-env",
];
// tidy-alphabetical-end

/// The broken-down contents of a line containing a test header directive,
/// which [`iter_header`] passes to its callback function.
Expand Down

0 comments on commit 7ecce91

Please sign in to comment.