| /llvm-project-15.0.7/llvm/utils/lit/tests/unit/ |
| H A D | ShUtil.py | 9 def lex(self, str, *args, **kwargs): member in TestShLexer 10 return list(ShLexer(str, *args, **kwargs).lex()) 13 self.assertEqual(self.lex('a|b>c&d<e;f'), 18 self.assertEqual(self.lex('a2>c'), 20 self.assertEqual(self.lex('a 2>c'), 24 self.assertEqual(self.lex(""" 'a' """), 26 self.assertEqual(self.lex(""" "hello\\"world" """), 28 self.assertEqual(self.lex(""" "hello\\'world" """), 32 self.assertEqual(self.lex(""" he"llo wo"rld """), 34 self.assertEqual(self.lex(""" a\\ b a\\\\b """), [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/ |
| H A D | MIParser.cpp | 630 lex(); in expectAndConsume() 637 lex(); in consumeIfPresent() 644 lex(); in parseSectionID() 659 lex(); in parseSectionID() 671 lex(); in parseBasicBlockDefinition() 753 lex(); in parseBasicBlockDefinitions() 797 lex(); in parseBasicBlockLiveins() 830 lex(); in parseBasicBlockSuccessors() 863 lex(); in parseBasicBlock() 955 lex(); in parseBasicBlocks() [all …]
|
| /llvm-project-15.0.7/llvm/utils/lit/lit/ |
| H A D | ShUtil.py | 180 def lex(self): member in ShLexer 193 self.tokens = ShLexer(data, win32Escapes = win32Escapes).lex() 195 def lex(self): member in ShParser 201 token = self.lex() 207 tok = self.lex() 224 args.append(self.lex()) 233 op = self.lex() 234 arg = self.lex() 246 self.lex() 254 operator = self.lex()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/benchmarks/ |
| H A D | Benchmark.cpp | 76 TokenStream RawStream = pseudo::lex(*SourceText, LangOpts); in lexAndPreprocess() 86 static void lex(benchmark::State &State) { in lex() function 89 clang::pseudo::lex(*SourceText, LangOpts); in lex() 93 BENCHMARK(lex); 97 auto Stream = clang::pseudo::lex(*SourceText, LangOpts); in pairBrackets() 107 TokenStream RawStream = clang::pseudo::lex(*SourceText, LangOpts); in preprocess()
|
| /llvm-project-15.0.7/utils/bazel/llvm-project-overlay/clang/unittests/ |
| H A D | BUILD.bazel | 26 "//clang:lex", 109 "//clang:lex", 133 "//clang:lex", 154 "//clang:lex", 179 "//clang:lex", 228 "//clang:lex", 252 "//clang:lex", 338 "//clang:lex", 410 "//clang:lex", 463 "//clang:lex", [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/ |
| H A D | Nodes.td | 59 Expression for literals. C++ [lex.literal] 64 Expression for integer literals. C++ [lex.icon] 76 Expression for character literals. C++ [lex.ccon] 84 Expression for floating-point literals. C++ [lex.fcon] 96 Expression for string-literals. C++ [lex.string] 107 Expression for boolean literals. C++ [lex.bool] 115 Expression for the `nullptr` literal. C++ [lex.nullptr] 123 Expression for user-defined literal. C++ [lex.ext] 133 Expression for user-defined-integer-literal. C++ [lex.ext] 149 Expression for user-defined-character-literal. C++ [lex.ext] [all …]
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | ParserState.h | 52 lex(sourceMgr, config.getContext(), codeCompleteContext), in ParserState() 53 curToken(lex.lexToken()), symbols(symbols), asmState(asmState), in ParserState() 62 Lexer lex; member
|
| H A D | Parser.h | 37 const llvm::SourceMgr &getSourceMgr() { return state.lex.getSourceMgr(); } in getSourceMgr() 93 return state.lex.getEncodedSourceLocation(loc); in getEncodedSourceLocation() 117 state.curToken = state.lex.lexToken(); in consumeToken() 130 state.lex.resetPointer(tokPos); in resetToken() 131 state.curToken = state.lex.lexToken(); in resetToken()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | TokenTest.cpp | 46 TokenStream Raw = lex(Code, Opts); in TEST() 107 TokenStream Raw = lex(Code, Opts); in TEST() 138 TokenStream Raw = lex(Code, Opts); in TEST() 172 TokenStream Raw = lex(Code, Opts); in TEST() 190 TokenStream Cook = cook(lex(Code, Opts), Opts); in TEST() 208 TokenStream Raw = cook(lex(Code, Opts), Opts); in TEST()
|
| H A D | DirectiveTreeTest.cpp | 67 TokenStream S = cook(lex(Code, Opts), Opts); in TEST() 114 TokenStream S = cook(lex(Code, Opts), Opts); in TEST() 135 TokenStream S = cook(lex(Code, Opts), Opts); in TEST() 290 TokenStream S = cook(lex(Code, Opts), Opts); in TEST() 339 TokenStream S = lex(Code, Opts); in TEST()
|
| H A D | GLRTest.cpp | 404 TokenStream Tokens = cook(lex("{ ? ? ? }", LOptions), LOptions); in TEST_F() 417 TokenStream NoRBrace = cook(lex("{ ? ? ? ?", LOptions), LOptions); in TEST_F() 442 TokenStream Tokens = cook(lex("{ { { ? } }", LOptions), LOptions); in TEST_F() 488 TokenStream Tokens = cook(lex("{ ? }", LOptions), LOptions); in TEST_F() 522 const TokenStream &Tokens = cook(lex("{ abc", LOptions), LOptions); in TEST_F() 558 const TokenStream &Tokens = cook(lex("IDENTIFIER", LOptions), LOptions); in TEST_F() 587 TokenStream Tokens = cook(lex("{ { 42 ? } }", LOptions), LOptions); in TEST_F() 618 TokenStream Tokens = cook(lex("foo", LOptions), LOptions); in TEST_F() 640 const TokenStream &Tokens = cook(lex("id id", LOptions), LOptions); in TEST_F() 670 const TokenStream &Succeeded = cook(lex(Input, LOptions), LOptions); in TEST_F() [all …]
|
| H A D | ForestTest.cpp | 64 cook(lex("a + b", clang::LangOptions()), clang::LangOptions()); in TEST_F() 100 const auto &TS = cook(lex("abc", clang::LangOptions()), clang::LangOptions()); in TEST_F()
|
| /llvm-project-15.0.7/utils/bazel/llvm-project-overlay/clang/ |
| H A D | BUILD.bazel | 762 ":lex", 787 ":lex", 814 ":lex", 884 ":lex", 937 ":lex", 958 ":lex", 993 ":lex", 1025 ":lex", 1051 ":lex", 1070 ":lex", [all …]
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | TestLexer.h | 66 TokenList lex(llvm::StringRef Code) { in lex() function 68 ArrayRef<FormatToken *> Result = Lex.lex(); in lex() 74 auto Tokens = Lex.lex(); in annotate() 88 auto Result = uneof(lex(Code)); in id()
|
| H A D | MacroCallReconstructorTest.cpp | 75 Result.push_back(uneof(Lex.lex(Arg))); in lexArgs() 104 for (const FormatToken *Token : uneof(Lex.lex(Tokens))) { in consume() 150 UnwrappedLine line(llvm::StringRef Text) { return line({lex(Text)}); } in line() 164 TokenList lex(llvm::StringRef Text) { return uneof(Lex.lex(Text)); } in lex() function in clang::format::__anon35b0f3090111::MacroCallReconstructorTest 166 Chunk tokens(llvm::StringRef Text) { return Chunk(lex(Text)); } in tokens() 232 TokenList Call2 = Exp2.expand("C", {uneof(Lex.lex("a")), Exp1.getTokens()}); in TEST_F()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Language/ClangCommon/ |
| H A D | ClangHighlighter.cpp | 181 Lexer lex(FID, buf->getMemBufferRef(), SM, Opts); in Highlight() local 183 lex.SetKeepWhitespaceMode(true); in Highlight() 197 exit = lex.LexFromRawLexer(token); in Highlight()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/ |
| H A D | SimplifyEqualityComparisonWithOnlyPredecessor-domtree-preservation-edgecase.ll | 6 define i32 @lex(i1 %c0, i1 %c1, i32 %r0, i32 %r1, i32 %v) { 7 ; CHECK-LABEL: @lex(
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | COFFModuleDefinition.cpp | 85 Token lex() { in lex() function in llvm::object::Lexer 96 return lex(); in lex() 155 Tok = Lex.lex(); in read()
|
| /llvm-project-15.0.7/llvm/test/MC/X86/ |
| H A D | crlf.test | 1 RUN: llvm-mc -triple x86_64-unknown-unknown %S/Inputs/crlf.s -as-lex | FileCheck %s
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CommentBriefParser.h | 39 L.lex(Tok); in ConsumeToken()
|
| H A D | CommentParser.h | 62 L.lex(Tok); in consumeToken()
|
| /llvm-project-15.0.7/llvm/test/MC/AArch64/ |
| H A D | arm64-separator.s | 3 ; ARM64 uses a multi-character statement separator, "%%". Check that we lex
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 417 L.lex(Tok); in getFormattedLines() 460 for (L.lex(Tok); Tok.isNot(comments::tok::eof); L.lex(Tok)) { in getFormattedLines()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/fuzzer/ |
| H A D | Fuzzer.cpp | 35 auto RawStream = lex(CodeStr, LangOpts); in operator ()()
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | FormatTokenLexer.h | 46 ArrayRef<FormatToken *> lex();
|