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 /gdbsupport/gdb_regex.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/gdb_regex.h')
-rw-r--r-- | gdbsupport/gdb_regex.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdbsupport/gdb_regex.h b/gdbsupport/gdb_regex.h index 74c3ece..aa89bee 100644 --- a/gdbsupport/gdb_regex.h +++ b/gdbsupport/gdb_regex.h @@ -19,7 +19,7 @@ #ifndef GDB_REGEX_H #define GDB_REGEX_H 1 -# include "xregex.h" +#include "xregex.h" /* A compiled regex. This is mainly a wrapper around regex_t. The the constructor throws on regcomp error and the destructor is @@ -31,8 +31,7 @@ class compiled_regex public: /* Compile a regexp and throw an exception on error, including MESSAGE. REGEX and MESSAGE must not be NULL. */ - compiled_regex (const char *regex, int cflags, - const char *message) + compiled_regex (const char *regex, int cflags, const char *message) ATTRIBUTE_NONNULL (2) ATTRIBUTE_NONNULL (4); ~compiled_regex (); @@ -40,14 +39,13 @@ public: DISABLE_COPY_AND_ASSIGN (compiled_regex); /* Wrapper around ::regexec. */ - int exec (const char *string, - size_t nmatch, regmatch_t pmatch[], - int eflags) const; + int exec (const char *string, size_t nmatch, regmatch_t pmatch[], + int eflags) const; /* Wrapper around ::re_search. (Not const because re_search's regex_t parameter isn't either.) */ - int search (const char *string, int size, int startpos, - int range, struct re_registers *regs); + int search (const char *string, int size, int startpos, int range, + struct re_registers *regs); private: /* The compiled pattern. */ |