apply clang-format-19
(Debian clang-format version 19.1.7 (3+build4))
No options in .clang-format needed to be updated.
Bug: 433316976
Change-Id: I49636616bf55c0f72390cf20ee9a5b1bbd765054
diff --git a/mkvmuxer/mkvmuxer.cc b/mkvmuxer/mkvmuxer.cc
index 77520b7..c1a7caa 100644
--- a/mkvmuxer/mkvmuxer.cc
+++ b/mkvmuxer/mkvmuxer.cc
@@ -4023,7 +4023,7 @@
memcpy(&str[chunking_base_name_length], ext_chk, ext_chk_length);
str[chunking_base_name_length + ext_chk_length] = '\0';
- delete[] * name;
+ delete[] *name;
*name = str;
return true;
diff --git a/mkvparser/mkvparser.cc b/mkvparser/mkvparser.cc
index 021d27d..edb3c14 100644
--- a/mkvparser/mkvparser.cc
+++ b/mkvparser/mkvparser.cc
@@ -4550,7 +4550,7 @@
codecNameAsUTF8 = NULL;
}
-int Track::Info::CopyStr(char* Info::*str, Info& dst_) const {
+int Track::Info::CopyStr(char* Info::* str, Info& dst_) const {
if (str == static_cast<char * Info::*>(NULL))
return -1;
diff --git a/mkvparser/mkvparser.h b/mkvparser/mkvparser.h
index 848d01f..d00eb6f 100644
--- a/mkvparser/mkvparser.h
+++ b/mkvparser/mkvparser.h
@@ -356,7 +356,7 @@
private:
Info(const Info&);
Info& operator=(const Info&);
- int CopyStr(char* Info::*str, Info&) const;
+ int CopyStr(char* Info::* str, Info&) const;
};
long GetFirst(const BlockEntry*&) const;
diff --git a/webm_parser/src/master_value_parser.h b/webm_parser/src/master_value_parser.h
index 2a02a3f..490c2a6 100644
--- a/webm_parser/src/master_value_parser.h
+++ b/webm_parser/src/master_value_parser.h
@@ -158,7 +158,7 @@
template <typename Parser, typename Value, typename... Tags>
class SingleChildFactory {
public:
- constexpr SingleChildFactory(Id id, Element<Value> T::*member)
+ constexpr SingleChildFactory(Id id, Element<Value> T::* member)
: id_(id), member_(member) {}
// Builds a std::pair<Id, std::unique_ptr<ElementParser>>. The parent
@@ -195,14 +195,14 @@
private:
Id id_;
- Element<Value> T::*member_;
+ Element<Value> T::* member_;
};
template <typename Parser, typename Value, typename... Tags>
class RepeatedChildFactory {
public:
constexpr RepeatedChildFactory(Id id,
- std::vector<Element<Value>> T::*member)
+ std::vector<Element<Value>> T::* member)
: id_(id), member_(member) {}
// Builds a std::pair<Id, std::unique_ptr<ElementParser>>. The parent
@@ -242,13 +242,13 @@
private:
Id id_;
- std::vector<Element<Value>> T::*member_;
+ std::vector<Element<Value>> T::* member_;
};
template <typename Parser, typename... Tags>
class RecursiveChildFactory {
public:
- constexpr RecursiveChildFactory(Id id, std::vector<Element<T>> T::*member,
+ constexpr RecursiveChildFactory(Id id, std::vector<Element<T>> T::* member,
std::size_t max_recursion_depth)
: id_(id), member_(member), max_recursion_depth_(max_recursion_depth) {}
@@ -291,7 +291,7 @@
private:
Id id_;
- std::vector<Element<T>> T::*member_;
+ std::vector<Element<T>> T::* member_;
std::size_t max_recursion_depth_;
};
@@ -310,7 +310,7 @@
// the necessary factories to the constructor.
template <typename Parser, typename Value>
static SingleChildFactory<Parser, Value> MakeChild(
- Id id, Element<Value> T::*member) {
+ Id id, Element<Value> T::* member) {
static_assert(std::is_base_of<ElementParser, Parser>::value,
"Parser must derive from ElementParser");
static_assert(!std::is_base_of<MasterValueParser<T>, Parser>::value,
@@ -320,7 +320,7 @@
template <typename Parser, typename Value>
static RepeatedChildFactory<Parser, Value> MakeChild(
- Id id, std::vector<Element<Value>> T::*member) {
+ Id id, std::vector<Element<Value>> T::* member) {
static_assert(std::is_base_of<ElementParser, Parser>::value,
"Parser must derive from ElementParser");
static_assert(!std::is_base_of<MasterValueParser<T>, Parser>::value,
@@ -330,7 +330,7 @@
template <typename Parser>
static RecursiveChildFactory<Parser> MakeChild(
- Id id, std::vector<Element<T>> T::*member,
+ Id id, std::vector<Element<T>> T::* member,
std::size_t max_recursion_depth) {
static_assert(std::is_base_of<MasterValueParser<T>, Parser>::value,
"Child must be recusrive to use maximum recursion depth");
diff --git a/webm_parser/src/recursive_parser.h b/webm_parser/src/recursive_parser.h
index 1646f2f..333f5df 100644
--- a/webm_parser/src/recursive_parser.h
+++ b/webm_parser/src/recursive_parser.h
@@ -28,7 +28,7 @@
class RecursiveParser : public ElementParser {
public:
explicit RecursiveParser(std::size_t max_recursion_depth = 25)
- : max_recursion_depth_(max_recursion_depth){};
+ : max_recursion_depth_(max_recursion_depth) {};
RecursiveParser(RecursiveParser&&) = default;
RecursiveParser& operator=(RecursiveParser&&) = default;