Home
last modified time | relevance | path

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

/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h414 applyFirst(ArrayRef<RewriteRuleWith<MetadataT>> Rules) {
426 RewriteRuleWith<void> applyFirst(ArrayRef<RewriteRuleWith<void>> Rules);
430 applyFirst(const std::vector<RewriteRuleWith<MetadataT>> &Rules) {
431 return applyFirst(llvm::ArrayRef(Rules));
436 applyFirst(std::initializer_list<RewriteRuleWith<MetadataT>> Rules) {
437 return applyFirst(llvm::ArrayRef(Rules.begin(), Rules.end()));
/llvm-project/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStrContainsCheck.cpp26 using ::clang::transformer::applyFirst;
62 RewriteRuleWith<std::string> Rule = applyFirst( in makeRewriteRule()
/llvm-project/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/clang/unittests/Tooling/
H A DTransformerTest.cpp27 using ::clang::transformer::applyFirst;
944 testRule(applyFirst({ruleStrlenSize(), FlagRule}), Input, Expected); in TEST_F()
967 testRule(applyFirst({ReplaceF1, ReplaceF1OrF2}), Input, Expected); in TEST_F()
992 testRule(applyFirst({ReplaceF1OrF2, ReplaceF1}), Input, Expected); in TEST_F()
1023 RewriteRule Rule = applyFirst({ReplaceF1, DeclRule, ReplaceF1OrF2}); in TEST_F()
1050 testRule(applyFirst({ReplaceF1, ReplaceF2}), Input, Expected); in TEST_F()
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp272 return applyFirst( in StringviewNullptrCheckImpl()
/llvm-project/clang/lib/Tooling/Transformer/
H A DRewriteRule.cpp402 transformer::applyFirst(ArrayRef<RewriteRuleWith<void>> Rules) { in applyFirst() function in transformer