Home
last modified time | relevance | path

Searched refs:TweakID (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
DTweakTesting.h41 const char *TweakID; variable
59 TweakTest(const char *TweakID) : TweakID(TweakID) {} in TweakTest() argument
107 #define TWEAK_TEST(TweakID) \ argument
108 class TweakID##Test : public ::clang::clangd::TweakTest { \
110 TweakID##Test() : TweakTest(#TweakID) {} \
DTweakTesting.cpp70 applyTweak(ParsedAST &AST, const Annotations &Input, StringRef TweakID, in applyTweak() argument
78 if (auto T = prepareTweak(TweakID, S)) { in applyTweak()
89 MATCHER_P7(TweakIsAvailable, TweakID, Ctx, Header, ExtraArgs, ExtraFiles, Index,
91 (TweakID + (negation ? " is unavailable" : " is available")).str()) {
101 auto Result = applyTweak(AST, Input, TweakID, Index);
122 auto Result = applyTweak(AST, Input, TweakID, Index.get()); in apply()
153 return TweakIsAvailable(llvm::StringRef(TweakID), Context, Header, ExtraArgs, in isAvailable()
/external/llvm-project/clang-tools-extra/clangd/refactor/
DTweak.h136 llvm::Expected<std::unique_ptr<Tweak>> prepareTweak(StringRef TweakID,
/external/llvm-project/clang-tools-extra/clangd/
DClangdServer.cpp486 void ClangdServer::applyTweak(PathRef File, Range Sel, StringRef TweakID, in applyTweak() argument
494 TweakAttempt.record(1, TweakID); in applyTweak()
495 auto Action = [File = File.str(), Sel, TweakID = TweakID.str(), in applyTweak()
507 auto T = prepareTweak(TweakID, *Selection); in applyTweak()
525 TweakFailed.record(1, TweakID); in applyTweak()