diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2021-11-09 21:14:47 +0100 |
---|---|---|
committer | Marc Poulhiès <dkm@kataplop.net> | 2021-11-09 21:14:47 +0100 |
commit | 2a070169814df9776626d3a4455987808c872edc (patch) | |
tree | 7159be3407a292cf2d80b7eedb500bc33c433664 | |
parent | 07fee63db7b06207917849410e12de750bdb646f (diff) | |
download | gcc-2a070169814df9776626d3a4455987808c872edc.zip gcc-2a070169814df9776626d3a4455987808c872edc.tar.gz gcc-2a070169814df9776626d3a4455987808c872edc.tar.bz2 |
Partially disable clang-format in rust-diagnostics.h
clang-format is confused by attribute macros and does a very bad job at
indenting the code.
Changes merged in #779 make all clang-format checks to fail.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
-rw-r--r-- | gcc/rust/rust-diagnostics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index d9461f1..1c2ec84 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -48,6 +48,7 @@ // All other format specifiers are as defined by 'sprintf'. The final resulting // message is then sent to the back end via rust_be_error_at/rust_be_warning_at. +// clang-format off // simple location extern void rust_internal_error_at (const Location, const char *fmt, ...) @@ -71,6 +72,7 @@ rust_inform (const Location, const char *fmt, ...) extern void rust_error_at (const RichLocation &, const char *fmt, ...) RUST_ATTRIBUTE_GCC_DIAG (2, 3); +// clang-format on // These interfaces provide a way for the front end to ask for // the open/close quote characters it should use when formatting @@ -86,6 +88,7 @@ rust_close_quote (); // instead use the equivalent routines above. The back end is required to // implement these routines. +// clang-format off extern void rust_be_internal_error_at (const Location, const std::string &errmsg) RUST_ATTRIBUTE_NORETURN; @@ -104,6 +107,7 @@ extern void rust_be_get_quotechars (const char **open_quote, const char **close_quote); extern bool rust_be_debug_p (void); +// clang-format on namespace Rust { /* A structure used to represent an error. Useful for enabling |