| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[Lex] Preambles should contain the global module fragment. For applications like clangd, the preamble remains an important optimization when editing a module definition. The global module fragment is a good fit for it as it by definition contains only preprocessor directives. Before this patch, we would terminate the preamble immediately at the "module" keyword. Differential Revision: https://reviews.llvm.org/D158439 | 2 年前 | |
[clang][deps] Ignore import/include directives with missing filenames (#99520) Previously source input like #import resulted in infinite calls append the same token into CurDirTokens. This patch now ignores those directive lines if they won't actually end up being compiled. (e.g. macro guarded) resolves: rdar://121247565 | 1 年前 | |
[clang][NFC] Use c++17 style variable type traits This was done as a test for D137302 and it makes sense to push these changes Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D137491 | 3 年前 | |
[Lex] Use llvm::byteswap instead of sys::getSwappedBytes (NFC) | 2 年前 | |
[NFC]Fix memory leak in HeaderSearchTest (#95927) AddressSanitizer: 56 byte(s) leaked in 1 allocation(s). (clang/unittests:lex_tests) | 2 年前 | |
[Lex] Introduce Preprocessor::LexTokensUntilEOF() This new method repeatedly calls Lex() until end of file is reached and optionally fills a std::vector of Tokens. Use it in Clang's unit tests to avoid quite some code duplication. Differential Revision: https://reviews.llvm.org/D158413 | 2 年前 | |
[Lex] Introduce Preprocessor::LexTokensUntilEOF() This new method repeatedly calls Lex() until end of file is reached and optionally fills a std::vector of Tokens. Use it in Clang's unit tests to avoid quite some code duplication. Differential Revision: https://reviews.llvm.org/D158413 | 2 年前 | |
[clang][lex] Always pass suggested module to InclusionDirective() callback (#81061) This patch provides more information to the PPCallbacks::InclusionDirective() hook. We now always pass the suggested module, regardless of whether it was actually imported or not. The extra bool ModuleImported parameter then denotes whether the header #include will be automatically translated into import the the module. The main change is in clang/lib/Lex/PPDirectives.cpp, where we take care to not modify SuggestedModule after it's been populated by LookupHeaderIncludeOrImport(). We now exclusively use the SM (ModuleToImport) variable instead, which has been equivalent to SuggestedModule until now. This allows us to use the original non-modified SuggestedModule for the callback itself. (This patch turns out to be necessary for https://github.com/apple/llvm-project/pull/8011). | 2 年前 | |
[Lex] Introduce Preprocessor::LexTokensUntilEOF() This new method repeatedly calls Lex() until end of file is reached and optionally fills a std::vector of Tokens. Use it in Clang's unit tests to avoid quite some code duplication. Differential Revision: https://reviews.llvm.org/D158413 | 2 年前 | |
| 2 年前 | ||
[Lex] Introduce Preprocessor::LexTokensUntilEOF() This new method repeatedly calls Lex() until end of file is reached and optionally fills a std::vector of Tokens. Use it in Clang's unit tests to avoid quite some code duplication. Differential Revision: https://reviews.llvm.org/D158413 | 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 1 年前 | ||
| 3 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 |