/llvm-project/clang-tools-extra/unittests/clang-change-namespace/ |
H A D | ChangeNamespaceTests.cpp | 34 std::string runChangeNamespaceOnCode(llvm::StringRef Code) { in runChangeNamespaceOnCode() 53 std::string format(llvm::StringRef Code) { in format() 73 std::string Code = "namespace na {\n" in TEST_F() local 87 std::string Code = "namespace na {\n" in TEST_F() local 103 std::string Code = "namespace na {\n" in TEST_F() local 120 std::string Code = "namespace na {\n" in TEST_F() local 141 std::string Code = "namespace na {\n" in TEST_F() local 161 std::string Code = "namespace na {\n" in TEST_F() local 184 std::string Code = "namespace na {\n" in TEST_F() local 200 std::string Code = "namespace na {\n" in TEST_F() local [all …]
|
/llvm-project/clang/unittests/Tooling/ |
H A D | HeaderIncludesTest.cpp | 23 std::string insert(llvm::StringRef Code, llvm::StringRef Header, in insert() 36 std::string remove(llvm::StringRef Code, llvm::StringRef Header) { in remove() 51 std::string Code = "int main() {}"; in TEST_F() local 58 std::string Code; in TEST_F() local 67 std::string Code = "#include \"a.h\"\n"; in TEST_F() local 73 std::string Code = "#import \"a.h\"\n"; in TEST_F() local 78 std::string Code = R"cpp( in TEST_F() local 86 std::string Code = "#ifndef A_H\n" in TEST_F() local 102 std::string Code = "#ifndef A_H\n" in TEST_F() local 126 std::string Code = "#include \"fix.h\"\n" in TEST_F() local [all …]
|
H A D | RangeSelectorTest.cpp | 42 template <typename M> TestMatch matchCode(StringRef Code, M Matcher) { in matchCode() 88 StringRef Code = R"cc( in selectFromAssorted() local 131 StringRef Code = R"cc( in TEST() local 150 StringRef Code = R"cc( in TEST() local 170 StringRef Code = R"cc( in TEST() local 208 StringRef Code = R"cc( in TEST() local 224 StringRef Code = R"cc( in TEST() local 239 StringRef Code = R"cc( in TEST() local 255 StringRef Code = R"cc( in TEST() local 267 StringRef Code = R"cc( in TEST() local [all …]
|
H A D | RefactoringCallbacksTest.cpp | 21 void expectRewritten(const std::string &Code, const std::string &Expected, in expectRewritten() 38 std::string Code = "void f() { int i = 1; }"; in TEST() local 45 std::string Code = "#define A void f() { int i = 1; }\nA"; in TEST() local 52 std::string Code = "#define A void f() { int i = 1; }"; in TEST() local 59 std::string Code = "void f() { int i = 1; }"; in TEST() local 66 std::string Code = "void f() { int i = false ? 1 : i * 2; }"; in TEST() local 78 std::string Code = "bool a; void f() { if (a) f(); else a = true; }"; in TEST() local 89 std::string Code = "void f() { if (false) int i = 0; }"; in TEST() local 98 std::string Code = "void f() { int i = 1; }"; in TEST() local 106 std::string Code = "void f() { int i = 1; }"; in TEST() local [all …]
|
/llvm-project/clang/unittests/Format/ |
H A D | CleanupTest.cpp | 25 std::string cleanup(StringRef Code, const std::vector<tooling::Range> &Ranges, in cleanup() 35 std::string cleanupAroundOffsets(ArrayRef<unsigned> Offsets, StringRef Code, in cleanupAroundOffsets() 45 std::string Code = "namespace A {\n" in TEST_F() local 60 std::string Code = "namespace A {\n" in TEST_F() local 76 std::string Code = "namespace A {\n\n" in TEST_F() local 87 std::string Code = "namespace A {\n" in TEST_F() local 101 std::string Code = "namespace A\n" in TEST_F() local 120 std::string Code = "#ifdef A\n" in TEST_F() local 138 std::string Code = "class A {\nA() : , {} };"; in TEST_F() local 153 std::string Code = "class A {\nA() try : , {} };"; in TEST_F() local [all …]
|
H A D | SortIncludesTest.cpp | 23 std::vector<tooling::Range> GetCodeRange(StringRef Code) { in GetCodeRange() argument 27 std::string sort(StringRef Code, std::vector<tooling::Range> Ranges, in sort() argument 41 std::string sort(StringRef Code, StringRef FileName = "input.cpp", in sort() argument 46 unsigned newCursor(StringRef Code, unsigned Cursor) { in newCursor() argument 160 StringRef Code = "#include <a>\n" TEST_F() local 170 StringRef Code = "#include <string>\n" TEST_F() local 227 StringRef Code = "// clang-format off\r\n" TEST_F() local 797 StringRef Code = "#include <ccc>\n" // Start of line: 0 TEST_F() local 811 StringRef Code = "#include \"b\"\n" // Start of line: 0 TEST_F() local 830 StringRef Code = "#include \"a\"\r\n" // Start of line: 0 TEST_F() local 853 StringRef Code = "#include \"a\"\r\n" // Start of line: 0 TEST_F() local 1013 StringRef Code = "#include <b>\n" // Start of line: 0 TEST_F() local 1050 StringRef Code = "#include <a>\n" TEST_F() local 1078 StringRef Code = "#include \"b.h\"\n" TEST_F() local 1087 StringRef Code = "#include \"b.h\"\r\n" TEST_F() local 1094 StringRef Code = "#include <a>\n" TEST_F() local 1212 StringRef Code = "#include \"d.h\"\r\n" TEST_F() local 1251 StringRef Code = "\xEF\xBB\xBF#include \"d.h\"\r\n" TEST_F() local 1269 StringRef Code = "\xEF\xBB\xBF#include \"d.h\"\r\n" TEST_F() local 1288 StringRef Code = "#include \"c.h\"\r\n" TEST_F() local 1459 StringRef Code{"/* #include \"foo.h\"\n" TEST_F() local [all...] |
/llvm-project/lldb/docs/resources/ |
H A D | lldbdap.md | 66 inside the VS Code extension. When adding a new extension, please first look argument 14 Pre-requisitesLLDB-DAP""Local Installation for Visual Studio Code global() argument 20 Packaging and installationLLDB-DAP""Local Installation for Visual Studio Code global() argument 34 Updating the extensionLLDB-DAP""Local Installation for Visual Studio Code global() argument [all...] |
/llvm-project/offload/src/OpenMP/OMPT/ |
H A D | Callback.cpp | 40 defineOmptCallback(Name,Type,Code) global() argument 85 beginTargetDataAlloc(int64_t DeviceId,void * HstPtrBegin,void ** TgtPtrBegin,size_t Size,void * Code) beginTargetDataAlloc() argument 108 endTargetDataAlloc(int64_t DeviceId,void * HstPtrBegin,void ** TgtPtrBegin,size_t Size,void * Code) endTargetDataAlloc() argument 124 beginTargetDataSubmit(int64_t SrcDeviceId,void * SrcPtrBegin,int64_t DstDeviceId,void * DstPtrBegin,size_t Size,void * Code) beginTargetDataSubmit() argument 145 endTargetDataSubmit(int64_t SrcDeviceId,void * SrcPtrBegin,int64_t DstDeviceId,void * DstPtrBegin,size_t Size,void * Code) endTargetDataSubmit() argument 159 beginTargetDataDelete(int64_t DeviceId,void * TgtPtrBegin,void * Code) beginTargetDataDelete() argument 180 endTargetDataDelete(int64_t DeviceId,void * TgtPtrBegin,void * Code) endTargetDataDelete() argument 195 beginTargetDataRetrieve(int64_t SrcDeviceId,void * SrcPtrBegin,int64_t DstDeviceId,void * DstPtrBegin,size_t Size,void * Code) beginTargetDataRetrieve() argument 216 endTargetDataRetrieve(int64_t SrcDeviceId,void * SrcPtrBegin,int64_t DstDeviceId,void * DstPtrBegin,size_t Size,void * Code) endTargetDataRetrieve() argument 252 beginTargetDataEnter(int64_t DeviceId,void * Code) beginTargetDataEnter() argument 266 endTargetDataEnter(int64_t DeviceId,void * Code) endTargetDataEnter() argument 280 beginTargetDataExit(int64_t DeviceId,void * Code) beginTargetDataExit() argument 295 endTargetDataExit(int64_t DeviceId,void * Code) endTargetDataExit() argument 308 beginTargetUpdate(int64_t DeviceId,void * Code) beginTargetUpdate() argument 322 endTargetUpdate(int64_t DeviceId,void * Code) endTargetUpdate() argument 335 beginTarget(int64_t DeviceId,void * Code) beginTarget() argument 349 endTarget(int64_t DeviceId,void * Code) endTarget() argument 468 bindOmptCallback(Name,Type,Code) connectLibrary() argument [all...] |
/llvm-project/clang/unittests/ASTMatchers/ |
H A D | ASTMatchersTest.h | 150 matchesConditionally(const Twine & Code,const T & AMatcher,bool ExpectMatch,ArrayRef<TestLanguage> TestLanguages) matchesConditionally() argument 187 matchesC(const Twine & Code,const T & AMatcher) matchesC() argument 193 notMatchesObjC(const Twine & Code,const T & AMatcher) notMatchesObjC() argument 201 matchesConditionallyWithCuda(const Twine & Code,const T & AMatcher,bool ExpectMatch,llvm::StringRef CompileArg) matchesConditionallyWithCuda() argument 257 matchesWithCuda(const Twine & Code,const T & AMatcher) matchesWithCuda() argument 262 notMatchesWithCuda(const Twine & Code,const T & AMatcher) notMatchesWithCuda() argument 268 matchesWithOpenMP(const Twine & Code,const T & AMatcher) matchesWithOpenMP() argument 274 notMatchesWithOpenMP(const Twine & Code,const T & AMatcher) notMatchesWithOpenMP() argument 280 matchesWithOpenMP51(const Twine & Code,const T & AMatcher) matchesWithOpenMP51() argument 287 notMatchesWithOpenMP51(const Twine & Code,const T & AMatcher) notMatchesWithOpenMP51() argument 445 matches(const Twine & Code,const T & AMatcher) matches() argument 453 notMatches(const Twine & Code,const T & AMatcher) notMatches() argument [all...] |
/llvm-project/clang/unittests/StaticAnalyzer/ |
H A D | MemRegionDescriptiveNameTest.cpp | 54 return runCheckerOnCode<addDescriptiveNameChecker>(Code.str(), Output, in runChecker() argument 60 StringRef Code = R"cpp( TEST() local 74 StringRef Code = R"cpp( TEST() local 88 StringRef Code = R"cpp( TEST() local 102 StringRef Code = R"cpp( TEST() local 116 StringRef Code = R"cpp( TEST() local 131 StringRef Code = R"cpp( TEST() local [all...] |
/llvm-project/clang/unittests/Analysis/FlowSensitive/ |
H A D | MultiVarConstantPropagationTest.cpp | 218 void RunDataflow(llvm::StringRef Code, Matcher Expectations) { in RunDataflow() 237 std::string Code = R"( in TEST() local 249 std::string Code = R"( in TEST() local 267 std::string Code = R"( in TEST() local 281 std::string Code = R"( in TEST() local 294 std::string Code = R"( in TEST() local 311 std::string Code = R"cc( in TEST() local 341 std::string Code = R"( in TEST() local 365 std::string Code = R"cc( in TEST() local 399 std::string Code = R"cc( in TEST() local [all …]
|
H A D | SingleVarConstantPropagationTest.cpp | 197 void RunDataflow(llvm::StringRef Code, Matcher Expectations) { in RunDataflow() 216 std::string Code = R"( in TEST() local 228 std::string Code = R"( in TEST() local 246 std::string Code = R"( in TEST() local 261 std::string Code = R"( in TEST() local 274 std::string Code = R"( in TEST() local 286 std::string Code = R"( in TEST() local 301 std::string Code = R"cc( in TEST() local 325 std::string Code = R"cc( in TEST() local 343 std::string Code = R"cc( in TEST() local [all …]
|
H A D | TransferTest.cpp | 84 runDataflow(llvm::StringRef Code,std::function<void (const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &,ASTContext &)> VerifyResults,DataflowAnalysisOptions Options,LangStandard::Kind Std=LangStandard::lang_cxx17,llvm::StringRef TargetFun="target") runDataflow() argument 98 runDataflow(llvm::StringRef Code,std::function<void (const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &,ASTContext &)> VerifyResults,LangStandard::Kind Std=LangStandard::lang_cxx17,bool ApplyBuiltinTransfer=true,llvm::StringRef TargetFun="target") runDataflow() argument 112 runDataflowOnLambda(llvm::StringRef Code,std::function<void (const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &,ASTContext &)> VerifyResults,DataflowAnalysisOptions Options,LangStandard::Kind Std=LangStandard::lang_cxx17) runDataflowOnLambda() argument 129 runDataflowOnLambda(llvm::StringRef Code,std::function<void (const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &,ASTContext &)> VerifyResults,LangStandard::Kind Std=LangStandard::lang_cxx17,bool ApplyBuiltinTransfer=true) runDataflowOnLambda() argument 177 std::string Code = R"( TEST() local 200 std::string Code = R"( TEST() local 225 std::string Code = R"( TEST() local 250 std::string Code = R"( TEST() local 279 std::string Code = R"( TEST() local 331 std::string Code = R"( TEST() local 372 std::string Code = R"( TEST() local 415 std::string Code = R"( TEST() local 437 std::string Code = R"( TEST() local 479 std::string Code = R"( TEST() local 505 std::string Code = R"( TEST() local 610 std::string Code = R"( TEST() local 640 std::string Code = R"( TEST() local 754 std::string Code = R"( TEST() local 776 std::string Code = R"( TEST() local 811 std::string Code = R"( TEST() local 865 std::string Code = R"( TEST() local 894 std::string Code = R"( TEST() local 919 std::string Code = R"( TEST() local 947 std::string Code = R"( TEST() local 980 std::string Code = R"( TEST() local 1016 std::string Code = R"( TEST() local 1067 std::string Code = R"( TEST() local 1101 std::string Code = R"( TEST() local 1141 std::string Code = R"( TEST() local 1165 std::string Code = R"( TEST() local 1193 std::string Code = R"( TEST() local 1239 std::string Code = R"( TEST() local 1261 std::string Code = R"( TEST() local 1394 std::string Code = R"( TEST() local 1413 std::string Code = R"( TEST() local 1432 std::string Code = R"( TEST() local 1483 std::string Code = R"( TEST() local 1524 std::string Code = R"( TEST() local 1549 std::string Code = R"( TEST() local 1583 std::string Code = R"( TEST() local 1641 std::string Code = R"( TEST() local 1689 std::string Code = R"( TEST() local 1734 std::string Code = R"( TEST() local 1780 std::string Code = R"( TEST() local 1850 std::string Code = R"( TEST() local 1920 std::string Code = R"( TEST() local 2065 std::string Code = R"( TEST() local 2097 std::string Code = R"( TEST() local 2130 std::string Code = R"( TEST() local 2165 std::string Code = R"( TEST() local 2198 std::string Code = R"( TEST() local 2230 std::string Code = R"( TEST() local 2317 std::string Code = R"( TEST() local 2351 std::string Code = R"( TEST() local 2392 std::string Code = R"( TEST() local 2413 std::string Code = R"( TEST() local 2433 std::string Code = R"( TEST() local 2451 std::string Code = R"( TEST() local 2499 std::string Code = R"( TEST() local 2518 std::string Code = R"( TEST() local 2537 std::string Code = R"( TEST() local 2555 std::string Code = R"cc( TEST() local 2570 std::string Code = R"cc( TEST() local 2601 std::string Code = R"cc( TEST() local 2635 std::string Code = R"cc( TEST() local 2668 std::string Code = R"( TEST() local 2737 std::string Code = R"( TEST() local 2782 std::string Code = R"( TEST() local 2825 std::string Code = R"( TEST() local 2859 std::string Code = R"( TEST() local 2873 std::string Code = R"( TEST() local 2942 std::string Code = R"( TEST() local 2978 std::string Code = R"( TEST() local 3037 std::string Code = R"( TEST() local 3071 std::string Code = R"( TEST() local 3110 std::string Code = R"( TEST() local 3140 std::string Code = R"cc( TEST() local 3176 std::string Code = R"cc( TEST() local 3215 std::string Code = R"( TEST() local 3265 std::string Code = R"( TEST() local 3297 std::string Code = R"( TEST() local 3323 std::string Code = R"( TEST() local 3349 std::string Code = R"( TEST() local 3375 std::string Code = R"( TEST() local 3420 std::string Code = R"( TEST() local 3442 __anon7f451ee25602(llvm::StringRef Code, llvm::StringRef TargetFun) TEST() argument 3451 std::string Code = R"cc( TEST() local 3492 std::string Code = R"( TEST() local 3520 std::string Code = R"( TEST() local 3539 std::string Code = R"( TEST() local 3559 std::string Code = R"( TEST() local 3587 std::string Code = R"cc( TEST() local 3603 std::string Code = R"( TEST() local 3668 std::string Code = R"( TEST() local 3691 std::string Code = R"( TEST() local 3714 std::string Code = R"( TEST() local 3736 std::string Code = R"( TEST() local 3764 std::string Code = R"( TEST() local 3790 std::string Code = R"( TEST() local 3816 std::string Code = R"( TEST() local 3843 std::string Code = R"( TEST() local 3861 std::string Code = R"( TEST() local 3871 std::string Code = R"( TEST() local 3883 std::string Code = R"( TEST() local 3917 std::string Code = R"( TEST() local 3955 std::string Code = R"( TEST() local 4064 std::string Code = R"( TEST() local 4090 std::string Code = R"( TEST() local 4127 std::string Code = R"( TEST() local 4143 std::string Code = R"( TEST() local 4193 std::string Code = R"( TEST() local 4228 std::string Code = R"( TEST() local 4276 std::string Code = R"( TEST() local 4324 std::string Code = R"( TEST() local 4378 std::string Code = R"( TEST() local 4411 std::string Code = R"( TEST() local 4438 std::string Code = R"( TEST() local 4462 std::string Code = R"( TEST() local 4494 std::string Code = R"( TEST() local 4525 std::string Code = R"( TEST() local 4555 std::string Code = R"( TEST() local 4580 std::string Code = R"( TEST() local 4617 std::string Code = R"( TEST() local 4646 std::string Code = R"( TEST() local 4677 std::string Code = R"( TEST() local 4708 std::string Code = R"( TEST() local 4750 std::string Code = R"( TEST() local 4784 std::string Code = R"( TEST() local 4818 std::string Code = R"cc( TEST() local 4878 std::string Code = R"cc( TEST() local 4906 std::string Code = R"( TEST() local 4925 std::string Code = R"( TEST() local 4975 std::string Code = R"( TEST() local 5006 std::string Code = R"( TEST() local 5043 std::string Code = R"( TEST() local 5073 std::string Code = R"( TEST() local 5126 std::string Code = R"cc( TEST() local 5144 std::string Code = R"cc( TEST() local 5166 std::string Code = R"cc( TEST() local 5184 std::string Code = R"cc( TEST() local 5208 std::string Code = R"cc( TEST() local 5230 std::string Code = (CoroutineLibrary + R"cc( TEST() local 5246 std::string Code = R"( TEST() local 5306 std::string Code = R"( TEST() local 5365 std::string Code = R"( TEST() local 5425 std::string Code = R"( TEST() local 5506 std::string Code = R"( TEST() local 5588 std::string Code = R"( TEST() local 5616 std::string Code = R"( TEST() local 5650 std::string Code = R"( TEST() local 5679 std::string Code = R"cc( TEST() local 5709 std::string Code = R"( TEST() local 5742 std::string Code = R"( TEST() local 5776 std::string Code = R"( TEST() local 5819 std::string Code = R"( TEST() local 5853 std::string Code = R"( TEST() local 5878 std::string Code = R"( TEST() local 5906 std::string Code = R"( TEST() local 5932 std::string Code = R"( TEST() local 5961 std::string Code = R"( TEST() local 6012 std::string Code = R"( TEST() local 6040 std::string Code = R"( TEST() local 6067 std::string Code = R"( TEST() local 6094 std::string Code = R"( TEST() local 6132 std::string Code = R"( TEST() local 6161 std::string Code = R"( TEST() local 6189 std::string Code = R"( TEST() local 6219 std::string Code = R"( TEST() local 6248 std::string Code = R"( TEST() local 6292 std::string Code = R"( TEST() local 6330 std::string Code = R"( TEST() local 6372 std::string Code = R"( TEST() local 6391 std::string Code = R"( TEST() local 6416 std::string Code = R"( TEST() local 6441 std::string Code = R"( TEST() local 6469 std::string Code = R"( TEST() local 6488 std::string Code = R"( TEST() local 6521 std::string Code = R"( TEST() local 6553 std::string Code = R"( TEST() local 6582 std::string Code = R"( TEST() local 6614 std::string Code = R"( TEST() local 6646 std::string Code = R"( TEST() local 6681 std::string Code = R"( TEST() local 6715 std::string Code = R"( TEST() local 6749 std::string Code = R"( TEST() local 6780 std::string Code = R"( TEST() local 6811 std::string Code = R"( TEST() local 6844 std::string Code = R"( TEST() local 6877 std::string Code = R"( TEST() local 6903 std::string Code = R"( TEST() local 6923 std::string Code = R"( TEST() local 6989 std::string Code = R"( TEST() local 7009 std::string Code = R"( TEST() local 7048 std::string Code = R"( TEST() local 7089 std::string Code = R"( TEST() local 7127 std::string Code = R"( TEST() local 7174 std::string Code = R"( TEST() local 7206 std::string Code = R"( TEST() local 7237 std::string Code = R"( TEST() local 7275 std::string Code = R"( TEST() local 7290 std::string Code = R"( TEST() local 7323 std::string Code = R"( TEST() local 7356 std::string Code = R"( TEST() local 7389 std::string Code = R"( TEST() local 7424 std::string Code = R"( TEST() local 7459 std::string Code = R"( TEST() local 7496 std::string Code = R"( TEST() local 7532 std::string Code = R"cc( TEST() local [all...] |
/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | CodeExpander.h | 33 StringRef Code; variable 43 : Code(Code), Expansions(Expansions), Loc(Loc), in Code() argument
|
H A D | CXXPredicates.h | 54 static const CXXPredicateCode &getMatchCode(std::string Code) { in getMatchCode() argument 58 static const CXXPredicateCode &getCustomActionCode(std::string Code) { in getCustomActionCode() argument 70 const std::string Code; variable [all...] |
/llvm-project/clang-tools-extra/pseudo/unittests/ |
H A D | TokenTest.cpp |
|
/llvm-project/clang/unittests/AST/ |
H A D | DeclTest.cpp | 74 StringRef Code = R"( in TEST() local 112 StringRef Code = R"( in TEST() local 146 llvm::StringRef Code(R"( in TEST() local 161 llvm::Annotations Code(R"( in TEST() local 177 llvm::Annotations Code(R"( in TEST() local 191 llvm::Annotations Code(R"( in TEST() local 233 llvm::Annotations Code(R"( in TEST() local 263 llvm::Annotations Code(R"( in TEST() local 282 llvm::Annotations Code(R"( in TEST() local 313 llvm::Annotations Code(R"( in TEST() local [all …]
|
H A D | NamedDeclPrinterTest.cpp | 66 StringRef Code, const std::vector<std::string> &Args, in PrintedDeclMatches() 78 PrintedNamedDeclMatches(StringRef Code, const std::vector<std::string> &Args, in PrintedNamedDeclMatches() 93 PrintedNamedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedNamedDeclCXX98Matches() 103 PrintedWrittenNamedDeclCXX11Matches(StringRef Code, StringRef DeclName, in PrintedWrittenNamedDeclCXX11Matches() 113 PrintedWrittenPropertyDeclObjCMatches(StringRef Code, StringRef DeclName, in PrintedWrittenPropertyDeclObjCMatches() 123 PrintedNestedNameSpecifierMatches(StringRef Code, StringRef DeclName, in PrintedNestedNameSpecifierMatches() 199 const char *Code = in TEST() local 215 const char *Code = in TEST() local 236 const char *Code = in TEST() local 252 const char *Code = in TEST() local [all …]
|
/llvm-project/clang/unittests/Analysis/ |
H A D | IntervalPartitionTest.cpp | 114 const char *Code = R"(void f() { in TEST() local 134 const char *Code = R"(void f() { in TEST() local 157 const char *Code = R"(void f() { in TEST() local 181 const char *Code = R"(void f() { in TEST() local 198 const char *Code = R"(void f() { in TEST() local 216 const char *Code = R"(void f() { in TEST() local 240 const char *Code = R"(void f() { in TEST() local 263 const char *Code = R"(void f() { in TEST() local 293 const char *Code = R"(void f() { in TEST() local 332 const char *Code = R"(void f() { in TEST() local [all …]
|
H A D | CFGTest.cpp | 30 const char *Code = "class Foo;\n" in TEST() local 40 const char *Code = "void f() {\n" in TEST() local 58 const char *Code = "template<class T>\n" in TEST() local 68 const char *Code = "template<class T> void f() {\n" in TEST() local 77 const char *Code = R"( in TEST() local 97 __anonfae6d04c0202(bool IsLinear, const char *Code) TEST() argument 114 const char *Code = R"(void f() { TEST() local 247 const char *Code = "int f(bool cond) {\n" TEST() local [all...] |
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | TestWorkspace.h | 33 void addSource(llvm::StringRef Filename, llvm::StringRef Code) { in addSource() 36 void addMainFile(llvm::StringRef Filename, llvm::StringRef Code) { in addMainFile() 46 std::string Code; member
|
/llvm-project/clang/unittests/Index/ |
H A D | IndexTests.cpp | 164 std::string Code = R"cpp( in TEST() local 207 std::string Code = "void foo(int bar);"; in TEST() local 222 std::string Code = R"cpp( in TEST() local 244 std::string Code = R"cpp( in TEST() local 265 std::string Code = R"cpp( in TEST() local 284 std::string Code = R"cpp( in TEST() local 313 std::string Code = R"cpp( in TEST() local 327 std::string Code = R"cpp( in TEST() local 353 std::string Code = R"cpp( in TEST() local 374 std::string Code = R"cpp( in TEST() local [all …]
|
/llvm-project/clang/unittests/Sema/ |
H A D | CodeCompleteTest.cpp | 142 ParsedSourceLocation offsetToPosition(llvm::StringRef Code, size_t Offset) { in offsetToPosition() 152 CompletionContext runCompletion(StringRef Code, size_t Offset) { in runCompletion() 183 CollectCompletedFunctions(StringRef Code, std::size_t Point) { in CollectCompletedFunctions() 193 llvm::Annotations Code(R"cpp( in TEST() local 317 StringRef Code = R"cpp( in TEST() local 462 StringRef Code = R"cpp( in TEST() local 476 StringRef Code = R"cpp( in TEST() local 491 StringRef Code = R"cpp( in TEST() local 507 StringRef Code = R"cpp( in TEST() local 555 StringRef Code = R"cpp( in TEST() local [all …]
|
/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/ |
H A D | Extract.h | 35 ExtractFunction(CodeRangeASTSelection Code, in ExtractFunction() 43 CodeRangeASTSelection Code; variable
|
/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
H A D | Parser.h | 210 static bool parseExpression(StringRef &Code, Sema *S, VariantValue *Value, in parseExpression() 214 static bool parseExpression(StringRef &Code, VariantValue *Value, in parseExpression() 234 completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S) { in completeExpression() 238 completeExpression(StringRef &Code, unsigned CompletionOffset) { in completeExpression()
|