diff options
author | Naveen Seth Hanig <naveen.hanig@outlook.com> | 2025-06-13 19:48:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-13 10:48:05 -0700 |
commit | 9d49b82de077c730d687593604dfa00770f11965 (patch) | |
tree | 7a82c3dca36e1dd54a890ca78f2c3b2e96eb2d1e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 09c54c2e9e044fa0857831e6ce1bf77c8ce16ecc (diff) | |
download | llvm-9d49b82de077c730d687593604dfa00770f11965.zip llvm-9d49b82de077c730d687593604dfa00770f11965.tar.gz llvm-9d49b82de077c730d687593604dfa00770f11965.tar.bz2 |
[clang-scan-deps] Implement P2223R2 for DependencyDirectiveScanner.cpp (#143950)
P2223R2 allows the line-continuation slash `\` to be followed by
additional whitespace. The Clang lexer already follows this behavior,
also for versions prior to C++23. The dependency directive scanner
however only implements it for `#define` directives (15d5f5d).
This fully implements P2223R2 for the dependency directive scanner (for
any C++ standard) and aligns the dependency directive scanner's splicing
behavior with that of the Clang lexer.
For example, the following code was previously not scanned correctly by
`clang-scan-deps` but now works as expected:
```cpp
import \<whitespace here>
A;
```
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions