Home
last modified time | relevance | path

Searched refs:applyFirst (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h409 applyFirst(ArrayRef<RewriteRuleWith<MetadataT>> Rules) {
421 RewriteRuleWith<void> applyFirst(ArrayRef<RewriteRuleWith<void>> Rules);
425 applyFirst(const std::vector<RewriteRuleWith<MetadataT>> &Rules) {
426 return applyFirst(llvm::makeArrayRef(Rules));
431 applyFirst(std::initializer_list<RewriteRuleWith<MetadataT>> Rules) {
432 return applyFirst(llvm::makeArrayRef(Rules.begin(), Rules.end()));
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStrContainsCheck.cpp28 using ::clang::transformer::applyFirst;
64 RewriteRuleWith<std::string> Rule = applyFirst( in makeRewriteRule()
/llvm-project-15.0.7/clang/docs/
H A DClangTransformerTutorial.rst330 using ``applyFirst``: it composes a list of rules as an ordered choice, where
333 that case, ``applyFirst`` is simply joining the set of rules into one.
335 The benefit of ``applyFirst`` is that, for some problems, it allows the user to
340 With ``applyFirst``, these rules can be expressed compactly as:
344 applyFirst({
350 is non-empty -- it follows from the rules position in ``applyFirst``. For more
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp26 using ::clang::transformer::applyFirst;
943 testRule(applyFirst({ruleStrlenSize(), FlagRule}), Input, Expected); in TEST_F()
966 testRule(applyFirst({ReplaceF1, ReplaceF1OrF2}), Input, Expected); in TEST_F()
991 testRule(applyFirst({ReplaceF1OrF2, ReplaceF1}), Input, Expected); in TEST_F()
1022 RewriteRule Rule = applyFirst({ReplaceF1, DeclRule, ReplaceF1OrF2}); in TEST_F()
1049 testRule(applyFirst({ReplaceF1, ReplaceF2}), Input, Expected); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp274 return applyFirst( in StringviewNullptrCheckImpl()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp386 transformer::applyFirst(ArrayRef<RewriteRuleWith<void>> Rules) { in applyFirst() function in transformer