[clang-tidy] Use C++ using instead of typedef

Found with modernize-use-using

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-04-02 16:58:05 -07:00
committed by Fabian Homborg
parent be036c443e
commit 8d3377e923
4 changed files with 9 additions and 10 deletions

View File

@@ -89,7 +89,7 @@ static const wcstring &C_(const wcstring &s) { return s; }
/// If option is non-empty, it specifies a switch for the command. If \c comp is also not empty, it
/// contains a list of non-switch arguments that may only follow directly after the specified
/// switch.
typedef struct complete_entry_opt {
using complete_entry_opt_t = struct complete_entry_opt {
// Text of the option (like 'foo').
wcstring option;
// Type of the option: args-oly, short, single_long, or double_long.
@@ -119,8 +119,7 @@ typedef struct complete_entry_opt {
}
DIE("unreachable");
}
} complete_entry_opt_t;
};
/// Last value used in the order field of completion_entry_t.
static std::atomic<unsigned int> k_complete_order{0};