Home | History | Annotate | Download | only in Lex

Lines Matching full:lex

14 #include "clang/Lex/Lexer.h"
18 #include "clang/Lex/CodeCompletionHandler.h"
19 #include "clang/Lex/LexDiagnostic.h"
20 #include "clang/Lex/LiteralSupport.h"
21 #include "clang/Lex/Preprocessor.h"
97 // to quickly lex the tokens of the buffer, e.g. when handling a "#if 0" block
160 /// Preprocessor::Lex virtual. Given that, we could just dump in a magic lexer
170 // Create the lexer as if we were going to lex the file normally.
176 // just lex the subsection of the file that we want. This is lexing from a
303 // Lex from the start of the given location.
487 // Lex tokens until we find the token that contains the source location.
1178 // Lex from the start of the given location.
1560 /// LexNumericConstant - Lex the remainder of a integer or floating point
1623 /// LexUDSuffix - Lex the ud-suffix production for user-defined literal suffixes
1652 // C++11 [lex.ext]p10, [usrlit.suffix]p1: A program containing a ud-suffix
1714 /// LexStringLiteral - Lex the remainder of a string literal, after having lexed
1757 // If we are in C++11, lex the optional ud-suffix.
1772 /// LexRawStringLiteral - Lex the remainder of a raw string literal, after
1776 // This function doesn't use getAndAdvanceChar because C++0x [lex.pptoken]p3:
1789 // If the last character was not a '(', then we didn't lex a valid delimiter.
1841 // If we are in C++11, lex the optional ud-suffix.
1852 /// LexAngledStringLiteral - Lex the remainder of an angled string literal,
1889 /// LexCharConstant - Lex the remainder of a character constant, after having
1939 // If we are in C++11, lex the optional ud-suffix.
2459 // Next, lex the character, which should handle the EOD transition.
2460 Lex(Tmp);
2464 Lex(Tmp);
2476 /// This returns true if Result contains a token, false if PP.Lex should be
2521 // C++11 [lex.phases] 2.2 p2
2550 // Switch to 'skipping' mode. This will ensure that we can lex a token
2563 Lex(Tok);
2766 // C++11 [lex.charset]p2: If the hexadecimal value for a
2868 bool Lexer::Lex(Token &Result) {
2894 assert((returnedToken || !isRawLex) && "Raw lex must succeed");
3312 // want to lex this as a comment. There is one problem with this though,
3314 // resultant program. For example, In "foo //**/ bar", C89 would lex
3315 // this as "foo / bar" and langauges with Line comments would lex it as
3317 // If so, we will lex that as a "/" instead of the start of a comment.
3420 // C++0x [lex.pptoken]p3:
3560 // UCNs (C99 6.4.3, C++11 [lex.charset]p2)
3645 // We parsed the directive; lex a token with the new state.