| /llvm-project-15.0.7/clang-tools-extra/pseudo/benchmarks/ |
| H A D | Benchmark.cpp | 50 const std::string *SourceText = nullptr; variable 64 SourceText = new std::string(ReadFile(Source)); in setup() 76 TokenStream RawStream = pseudo::lex(*SourceText, LangOpts); in lexAndPreprocess() 89 clang::pseudo::lex(*SourceText, LangOpts); in lex() 91 SourceText->size()); in lex() 97 auto Stream = clang::pseudo::lex(*SourceText, LangOpts); in pairBrackets() 101 SourceText->size()); in pairBrackets() 107 TokenStream RawStream = clang::pseudo::lex(*SourceText, LangOpts); in preprocess() 115 SourceText->size()); in preprocess() 128 SourceText->size()); in glrParse() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | PPCallbacksTest.cpp | 186 CharSourceRange InclusionDirectiveFilenameRange(const char *SourceText, in InclusionDirectiveFilenameRange() argument 190 llvm::MemoryBuffer::getMemBuffer(SourceText); in InclusionDirectiveFilenameRange() 207 const char *SourceText, const char *HeaderPath, bool SystemHeader) { in InclusionDirectiveCharacteristicKind() argument 209 llvm::MemoryBuffer::getMemBuffer(SourceText); in InclusionDirectiveCharacteristicKind() 245 DirectiveExprRange(StringRef SourceText) { in DirectiveExprRange() argument 248 llvm::MemoryBuffer::getMemBuffer(SourceText); in DirectiveExprRange() 274 PragmaMarkCall(const char *SourceText) { in PragmaMarkCall() argument 276 llvm::MemoryBuffer::getMemBuffer(SourceText, "test.c"); in PragmaMarkCall() 304 PragmaOpenCLExtensionCall(const char *SourceText) { in PragmaOpenCLExtensionCall() argument 309 llvm::MemoryBuffer::getMemBuffer(SourceText, "test.cl"); in PragmaOpenCLExtensionCall()
|
| /llvm-project-15.0.7/clang/unittests/Basic/ |
| H A D | SarifTest.cpp | 60 FileID registerSource(llvm::StringRef Name, const char *SourceText, in registerSource() argument 63 llvm::MemoryBuffer::getMemBuffer(SourceText); in registerSource() 243 const char *SourceText = "int foo = 0;\n" in TEST_F() local 248 registerSource("/main.cpp", SourceText, /* IsMainFile = */ true); in TEST_F() 269 const char *SourceText = "int foo = 0;\n" in TEST_F() local 273 registerSource("/main.cpp", SourceText, /* IsMainFile = */ true); in TEST_F()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | StaticDefinitionInAnonymousNamespaceCheck.cpp | 56 StringRef SourceText = in check() local 59 if (SourceText == "static") { in check()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageView.cpp | 159 SmallString<128> SourceText(SourceName); in getSourceName() local 160 sys::path::remove_dots(SourceText, /*remove_dot_dot=*/true); in getSourceName() 161 sys::path::native(SourceText); in getSourceName() 162 return std::string(SourceText.str()); in getSourceName()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | VirtualClassDestructorCheck.cpp | 116 std::string SourceText; in getSourceText() local 117 llvm::raw_string_ostream DestructorStream(SourceText); in getSourceText() 119 return SourceText; in getSourceText()
|
| /llvm-project-15.0.7/clang/unittests/CrossTU/ |
| H A D | CrossTranslationUnitTest.cpp | 68 StringRef SourceText = "int f(int) { return 0; }\n"; in HandleTranslationUnit() local 75 SourceFile.os() << SourceText; in HandleTranslationUnit() 80 tooling::buildASTFromCode(SourceText, SourceFileName); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/tool/ |
| H A D | ClangPseudo.cpp | 105 std::string SourceText; in main() local 110 SourceText = readOrDie(Source); in main() 111 RawStream = clang::pseudo::lex(SourceText, LangOpts); in main()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/ |
| H A D | MacroExpansionContextTest.cpp | 57 getMacroExpansionContextFor(StringRef SourceText) { in getMacroExpansionContextFor() argument 59 llvm::MemoryBuffer::getMemBuffer(SourceText); in getMacroExpansionContextFor()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 330 llvm::StringRef SourceText = in getDeclarationSourceText() local 332 return SourceText.str(); in getDeclarationSourceText()
|