YYoungsuk Kim[clang] Avoid 'raw_string_ostream::str' (NFC)
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[openmp] Base of tablegen generated OpenMP common declaration Summary: As discussed previously when landing patch for OpenMP in Flang, the idea is to share common part of the OpenMP declaration between the different Frontend. While doing this it was thought that moving to tablegen instead of Macros will also give a cleaner and more powerful way of generating these declaration. This first part of a future series of patches is setting up the base .td file for DirectiveLanguage as well as the OpenMP version of it. The base file is meant to be used by other directive language such as OpenACC. In this first patch, the Directive and Clause enums are generated with tablegen instead of the macros on OMPConstants.h. The next pacth will extend this to other enum and move the Flang frontend to use it. Reviewers: jdoerfert, DavidTruby, fghanim, ABataev, jdenny, hfinkel, jhuber6, kiranchandramohan, kiranktp Reviewed By: jdoerfert, jdenny Subscribers: arphaman, martong, cfe-commits, mgorny, yaxunl, hiraditya, guansong, jfb, sstefan1, aaron.ballman, llvm-commits Tags: #llvm, #openmp, #clang Differential Revision: https://reviews.llvm.org/D81736 | 5 年前 | |
Reapply "[clang] NFCI: Adopt SourceManager::getFileEntryRefForID()" This reapplies ddbcc10b9e26b18f6a70e23d0611b9da75ffa52f, except for a tiny part that was reverted separately: 65331da0032ab4253a4bc0ddcb2da67664bd86a9. That will be reapplied later on, since it turned out to be more involved. This commit is enabled by 5523fefb01c282c4cbcaf6314a9aaf658c6c145f and f0f548a65a215c450d956dbcedb03656449705b9, specifically the part that makes 'clang-tidy/checkers/misc/header-include-cycle.cpp' separator agnostic. | 2 年前 | |
[Frontend] Use SmallString::operator std::string (NFC) | 2 年前 | |
Reapply "[clang] NFCI: Adopt SourceManager::getFileEntryRefForID()" This reapplies ddbcc10b9e26b18f6a70e23d0611b9da75ffa52f, except for a tiny part that was reverted separately: 65331da0032ab4253a4bc0ddcb2da67664bd86a9. That will be reapplied later on, since it turned out to be more involved. This commit is enabled by 5523fefb01c282c4cbcaf6314a9aaf658c6c145f and f0f548a65a215c450d956dbcedb03656449705b9, specifically the part that makes 'clang-tidy/checkers/misc/header-include-cycle.cpp' separator agnostic. | 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 年前 | |
Lexer: Update the Lexer to use MemoryBufferRef, NFC Update Lexer / Lexer::Lexer to use MemoryBufferRef instead of MemoryBuffer*. Callers that were acquiring a MemoryBuffer* via SourceManager::getBuffer were updated, such that if they checked Invalid they use getBufferOrNone and otherwise getBufferOrFake. Differential Revision: https://reviews.llvm.org/D89398 | 5 年前 | |
[clang] Avoid 'raw_string_ostream::str' (NFC) Since raw_string_ostream doesn't own the string buffer, it is desirable (in terms of memory safety) for users to directly reference the string buffer rather than use raw_string_ostream::str(). Work towards TODO item to remove raw_string_ostream::str(). p.s. also remove some unneeded/dead code. | 1 年前 | |
[clang][NFC] Refactor StringLiteral::StringKind This patch converts StringLiteral::StringKind to a scoped enum in namespace scope. This enabled forward-declarations of this enum where necessary, e.g. for preferred_type annotation for bit-fields. | 2 年前 | |
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636 | 7 年前 |