diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/complaints.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/complaints.h')
-rw-r--r-- | gdb/complaints.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/gdb/complaints.h b/gdb/complaints.h index e9e8466..0b0461d 100644 --- a/gdb/complaints.h +++ b/gdb/complaints.h @@ -17,15 +17,13 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -#if !defined (COMPLAINTS_H) +#if !defined(COMPLAINTS_H) #define COMPLAINTS_H #include <unordered_set> /* Helper for complaint. */ -extern void complaint_internal (const char *fmt, ...) - ATTRIBUTE_PRINTF (1, 2); +extern void complaint_internal (const char *fmt, ...) ATTRIBUTE_PRINTF (1, 2); /* This controls whether complaints are emitted. */ @@ -44,12 +42,12 @@ have_complaint () avoid computing complaint's arguments when complaints are disabled. Running FMT via gettext [i.e., _(FMT)] can be quite expensive, for example. */ -#define complaint(FMT, ...) \ - do \ - { \ - if (have_complaint ()) \ - complaint_internal (FMT, ##__VA_ARGS__); \ - } \ +#define complaint(FMT, ...) \ + do \ + { \ + if (have_complaint ()) \ + complaint_internal (FMT, ##__VA_ARGS__); \ + } \ while (0) /* Clear out / initialize all complaint counters that have ever been @@ -79,12 +77,11 @@ private: /* The saved value of deprecated_warning_hook. */ void (*m_saved_warning_hook) (const char *, va_list) - ATTRIBUTE_FPTR_PRINTF (1,0); + ATTRIBUTE_FPTR_PRINTF (1, 0); /* A helper function that is used by the 'complaint' implementation to issue a complaint. */ - static void issue_complaint (const char *, va_list) - ATTRIBUTE_PRINTF (1, 0); + static void issue_complaint (const char *, va_list) ATTRIBUTE_PRINTF (1, 0); /* This object. Used by the static callback function. */ static complaint_interceptor *g_complaint_interceptor; |