aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Lexer.cpp
AgeCommit message (Expand)AuthorFilesLines
2025-07-09Address a handful of C4146 compiler warnings where literals can be replaced w...Alex Sepkowski1-1/+2
2025-07-07[clang][deps] Stop lexing if hit a failure while loading a PCH/module in a su...Volodymyr Sapsai1-0/+3
2025-07-07NFC, use structured binding to simplify the code.Haojian Wu1-3/+1
2025-06-28[clang] Remove unused includes (NFC) (#146254)Kazu Hirata1-1/+0
2025-06-26[clang] NFC: Add alias for std::pair<FileID, unsigned> used in SourceLocation...Haojian Wu1-11/+10
2025-06-26[clang][Preprocessor] Handle the first pp-token in EnterMainSourceFile (#145244)yronglin1-7/+2
2025-06-24[clang][Preprocessor] Add peekNextPPToken, makes look ahead next token withou...yronglin1-10/+11
2025-06-21[C++][Modules] A module directive may only appear as the first preprocessing ...yronglin1-0/+13
2025-04-04[clang][deps] Respect `Lexer::cutOffLexing()` (#134404)Jan Svoboda1-0/+3
2025-03-19Suppress pedantic diagnostic for a file not ending in EOL (#131794)Aaron Ballman1-22/+6
2025-03-18[C2y] Add octal prefixes, deprecate unprefixed octals (#131626)Aaron Ballman1-10/+31
2025-03-07[C2y] Implement WG14 N3411 (#130180)Aaron Ballman1-8/+7
2025-01-22[clang-reorder-fields] Reorder leading comments (#123740)Clement Courbet1-0/+21
2025-01-16[clang][refactor] Refactor `findNextTokenIncludingComments` (#123060)Clement Courbet1-1/+3
2024-12-05Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (...Samira Bazuzi1-1/+1
2024-11-16[Lex] Remove unused includes (NFC) (#116460)Kazu Hirata1-1/+0
2024-09-16Remove ^^ as a token in OpenCL (#108224)Aaron Ballman1-3/+2
2024-09-05[Clang] Warn with -Wpre-c23-compat instead of -Wpre-c++17-compat for u8 chara...Mital Ashok1-1/+3
2024-07-10[Clang] Allow raw string literals in C as an extension (#88265)Sirraide1-5/+5
2024-06-13Fix off-by-one issue found by post-commit reviewAaron Ballman1-1/+1
2024-05-28[Clang] allow `` `@$ `` in raw string delimiters in C++26 (#93216)cor3ntin1-1/+10
2024-02-15bad error message on incorrect string literal #18079 (#81670)akshaykumars6141-0/+2
2024-01-31[clang][NFC] Move isSimpleTypeSpecifier() from Sema to Token (#80101)Owen Pan1-0/+45
2023-12-13[clang] Use StringRef::{starts,ends}_with (NFC) (#75149)Kazu Hirata1-2/+2
2023-11-29[HLSL] Support vector swizzles on scalars (#67700)Chris B1-0/+4
2023-10-31[clang] Change GetCharAndSizeSlow interface to by-value styleserge-sans-paille1-33/+40
2023-10-29Revert "Perf/lexer faster slow get char and size (#70543)"Nico Weber1-40/+33
2023-10-29Perf/lexer faster slow get char and size (#70543)serge-sans-paille1-33/+40
2023-10-19[clang] Provide an SSE4.2 implementation of identifier token lexer (#68962)serge-sans-paille1-7/+39
2023-10-07[clang][Lex][NFC] Make some local variables constTimm Bäder1-4/+4
2023-09-06[Clang] Handle non-ASCII after line splicingCorentin Jabot1-17/+28
2023-09-04[clang][NFC] Remove stray slashTimm Bäder1-1/+1
2023-08-22Revert "[Clang] CWG1473: do not err on the lack of space after operator"""Reid Kleckner1-4/+46
2023-08-22[Lex] Preambles should contain the global module fragment.Sam McCall1-0/+16
2023-08-17[Clang] CWG1473: do not err on the lack of space after operator""Po-yao Chang1-46/+4
2023-08-11[C23] Rename C2x->C23 in diagnosticsAaron Ballman1-1/+1
2023-08-11[C23] Rename C2x -> C23; NFCAaron Ballman1-6/+6
2023-07-22[clang] Enable C++11-style attributes in all language modesNikolas Klauser1-5/+2
2023-07-12[Clang] Correctly handle $, @, and ` when represented as UCNCorentin Jabot1-6/+8
2023-05-04[clang] Use -std=c++23 instead of -std=c++2bMark de Wever1-4/+4
2023-05-03[clang][deps] Teach dep directive scanner about #pragma clang system_headerBen Langmuir1-0/+1
2023-04-27[C++20] [Modules] Avoid crash if the inconsistency the size of lang options e...Chuanqi Xu1-3/+1
2023-03-15Use *{Map,Set}::contains (NFC)Kazu Hirata1-1/+1
2023-01-28Use llvm::count{lr}_{zero,one} (NFC)Kazu Hirata1-1/+1
2023-01-19[Lex] For dependency directive lexing, angled includes in `__has_include` sho...Argyrios Kyrtzidis1-0/+16
2023-01-14[clang] Remove remaining uses of llvm::Optional (NFC)Kazu Hirata1-1/+0
2023-01-14[clang] Use std::optional instead of llvm::Optional (NFC)Kazu Hirata1-12/+12
2023-01-14[clang] Add #include <optional> (NFC)Kazu Hirata1-0/+1
2023-01-03[Clang] Fix a crash when encountering an ill-formed delimited UCN.Corentin Jabot1-1/+1
2022-12-16[clang] silence unused variable warningKrasimir Georgiev1-0/+2