Skip to content

Commit 0bf7ef4

Browse files
amykhuangmoheim-qt
authored andcommitted
[Backport] Fix instances of -Wmissing-template-arg-list-after-template-kw.
Clang has a new warning that requires a template argument list after using the template keyword. Remove uses of the template keyword when we're not specifying types. See llvm/llvm-project#94194 for the upstream clang change. Upstream-Status: Backport [chromium/chromium@b0088fa] Bug: 344680447 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5604664 Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Amy Huang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1311538} Pick-to: 118-based Change-Id: Icf1426fb718550346711b332ca658d92f1421064 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/586001 Reviewed-by: Peter Varga <[email protected]> (cherry picked from commit 0916f81) Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/593503 Reviewed-by: Michael Brüning <[email protected]>
1 parent ce9f95f commit 0bf7ef4

File tree

1 file changed

+4
-4
lines changed
  • chromium/third_party/blink/renderer/platform/wtf

1 file changed

+4
-4
lines changed

chromium/third_party/blink/renderer/platform/wtf/hash_table.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::ExpandBuffer(
16391639
}
16401640
}
16411641
table_ = temporary_table;
1642-
Allocator::template BackingWriteBarrier(&table_);
1642+
Allocator::BackingWriteBarrier(&table_);
16431643

16441644
HashTableBucketInitializer<Traits, Allocator, Value>::InitializeTable(
16451645
original_table, new_table_size);
@@ -1693,7 +1693,7 @@ Value* HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::RehashTo(
16931693
// This swaps the newly allocated buffer with the current one. The store to
16941694
// the current table has to be atomic to prevent races with concurrent marker.
16951695
AsAtomicPtr(&table_)->store(new_hash_table.table_, std::memory_order_relaxed);
1696-
Allocator::template BackingWriteBarrier(&table_);
1696+
Allocator::BackingWriteBarrier(&table_);
16971697
table_size_ = new_table_size;
16981698

16991699
new_hash_table.table_ = old_table;
@@ -1845,8 +1845,8 @@ void HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::swap(
18451845
// on the mutator thread, which is also the only one that writes to them, so
18461846
// there is *no* risk of data races when reading.
18471847
AtomicWriteSwap(table_, other.table_);
1848-
Allocator::template BackingWriteBarrier(&table_);
1849-
Allocator::template BackingWriteBarrier(&other.table_);
1848+
Allocator::BackingWriteBarrier(&table_);
1849+
Allocator::BackingWriteBarrier(&other.table_);
18501850
if (IsWeak<ValueType>::value) {
18511851
// Weak processing is omitted when no backing store is present. In case such
18521852
// an empty table is later on used it needs to be strongified.

0 commit comments

Comments
 (0)