[webkit-changes] [WebKit/WebKit] 81fbec: Annotate various WTF functions with [[clang::noesc...
Ryosuke Niwa
noreply at github.com
Sun Oct 27 15:00:50 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 81fbecbe3fd4cad0f1296627466b1efa63c4f806
https://github.com/WebKit/WebKit/commit/81fbecbe3fd4cad0f1296627466b1efa63c4f806
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2024-10-27 (Sun, 27 Oct 2024)
Changed paths:
M Source/WTF/wtf/AggregateLogger.h
M Source/WTF/wtf/Algorithms.h
M Source/WTF/wtf/Compiler.h
M Source/WTF/wtf/EmbeddedFixedVector.h
M Source/WTF/wtf/FixedVector.h
M Source/WTF/wtf/HashMap.h
M Source/WTF/wtf/HashSet.h
M Source/WTF/wtf/HashTable.h
M Source/WTF/wtf/LocklessBag.h
M Source/WTF/wtf/PriorityQueue.h
M Source/WTF/wtf/RobinHoodHashTable.h
M Source/WTF/wtf/StackTrace.h
M Source/WTF/wtf/StdLibExtras.h
M Source/WTF/wtf/TinyPtrSet.h
M Source/WTF/wtf/TrailingArray.h
M Source/WTF/wtf/Vector.h
M Source/WTF/wtf/WeakHashMap.h
M Source/WTF/wtf/WeakHashSet.h
M Source/WTF/wtf/cocoa/VectorCocoa.h
M Source/WTF/wtf/threads/Signals.cpp
M Source/WTF/wtf/threads/Signals.h
M Source/WTF/wtf/win/SignalsWin.cpp
M Source/WebCore/bindings/js/JSDOMExceptionHandling.h
Log Message:
-----------
Annotate various WTF functions with [[clang::noescape]]
https://bugs.webkit.org/show_bug.cgi?id=282149
Reviewed by Geoffrey Garen.
In order to prepare WebKit for the deployment of lambda captures checker,
annotate various functions in WTF (and one function in WebCore) with
[[clang::noescape]], which is defined using NOESCAPE macro.
* Source/WTF/wtf/AggregateLogger.h:
(WTF::AggregateLogger::willLog const): Replace the use of allOf with a for
loop since clang doesn't like it.
* Source/WTF/wtf/Algorithms.h:
(WTF::forEach):
(WTF::anyOf):
(WTF::allOf):
* Source/WTF/wtf/Compiler.h:
* Source/WTF/wtf/EmbeddedFixedVector.h:
* Source/WTF/wtf/FixedVector.h:
(WTF::FixedVector::createWithSizeFromGenerator):
* Source/WTF/wtf/HashMap.h:
(WTF::HashMapTranslator::translate):
(WTF::HashMapEnsureTranslator::translate):
(WTF::HashMapTranslatorAdapter::translate):
(WTF::HashMapEnsureTranslatorAdapter::translate):
(WTF::shouldValidateKey>::inlineEnsure):
(WTF::shouldValidateKey>::ensure):
(WTF::shouldValidateKey>::removeIf):
* Source/WTF/wtf/HashSet.h:
(WTF::HashSetTranslator::translate):
(WTF::HashSetEnsureTranslatorAdaptor::translate):
(WTF::TableTraits>::ensure):
(WTF::W>::removeIf):
* Source/WTF/wtf/HashTable.h:
(WTF::IdentityHashTranslator::translate):
(WTF::shouldValidateKey>::addUniqueForInitialization):
(WTF::shouldValidateKey>::add):
(WTF::shouldValidateKey>::addPassingHashCode):
(WTF::shouldValidateKey>::removeIf):
(WTF::shouldValidateKey>::takeIf):
* Source/WTF/wtf/LocklessBag.h:
* Source/WTF/wtf/PriorityQueue.h:
* Source/WTF/wtf/RobinHoodHashTable.h:
(WTF::SizePolicy>::add):
(WTF::SizePolicy>::addPassingHashCode):
* Source/WTF/wtf/StackTrace.h:
(WTF::StackTraceSymbolResolver::forEach const):
(WTF::StackTrace::forEachFrame const):
* Source/WTF/wtf/StdLibExtras.h:
(WTF::valueOrCompute):
* Source/WTF/wtf/TinyPtrSet.h:
(WTF::TinyPtrSet::forEach const):
(WTF::TinyPtrSet::genericFilter):
* Source/WTF/wtf/TrailingArray.h:
(WTF::TrailingArray::TrailingArray):
* Source/WTF/wtf/Vector.h:
(WTF::Vector::Vector):
(WTF::Vector::containsIf const):
(WTF::Malloc>::findIf const):
(WTF::Malloc>::reverseFindIf const):
(WTF::Malloc>::appendUsingFunctor):
(WTF::Malloc>::removeFirstMatching):
(WTF::Malloc>::removeLastMatching):
(WTF::Malloc>::removeAllMatching):
(WTF::Malloc>::map const):
(WTF:: const const):
(WTF::Malloc>::appendContainerWithMapping):
(WTF::map):
(WTF::CompactMapper::compactMap):
(WTF::compactMap):
(WTF::flatMap):
* Source/WTF/wtf/WeakHashMap.h:
* Source/WTF/wtf/WeakHashSet.h:
* Source/WTF/wtf/cocoa/VectorCocoa.h:
(WTF::createNSArray):
(WTF::makeVector):
* Source/WTF/wtf/threads/Signals.cpp:
(WTF::SignalHandlers::forEachHandler const):
* Source/WTF/wtf/threads/Signals.h:
* Source/WTF/wtf/win/SignalsWin.cpp:
(WTF::SignalHandlers::forEachHandler const):
* Source/WebCore/bindings/js/JSDOMExceptionHandling.h:
(WebCore::invokeFunctorPropagatingExceptionIfNecessary):
Canonical link: https://commits.webkit.org/285751@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list