Update clang-format
This commit is contained in:
parent
c755a885bf
commit
9f18b7f4d8
89 changed files with 11377 additions and 11546 deletions
|
|
@ -5,7 +5,8 @@
|
|||
/// \file
|
||||
/// Generates enum `to_string()` code.
|
||||
///
|
||||
/// Given an input file, it will generate a to_string() function for all enums marked with [[generate::to_string]].
|
||||
/// Given an input file, it will generate a to_string() function for all enums marked with
|
||||
/// [[generate::to_string]].
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
@ -43,8 +44,8 @@ void generate_to_string(const cppast::cpp_file& file)
|
|||
<< ":\n";
|
||||
|
||||
// attribute can be used to override the string
|
||||
if (auto attr =
|
||||
cppast::has_attribute(enumerator, "generate::to_string"))
|
||||
if (auto attr
|
||||
= cppast::has_attribute(enumerator, "generate::to_string"))
|
||||
std::cout << " return "
|
||||
<< attr.value().arguments().value().as_string()
|
||||
<< ";\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue