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 年前 | |
[clang] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to remove #include "llvm/ADT/Optional.h". This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 | 3 年前 | |
[clang][transformer] Introduce a constructExprArgs range selector. (#95901) This is similar to callArgs but for construct exprs like S(42) or {42}. | 1 年前 | |
[libTooling] Rename getRangeForEdit as getFileRangeForEdit With the addition of getFileRange, we rename getRangeForEdit as getFileRangeForEdit for consistency in the API. Depends on D141634 Differential Revision: https://reviews.llvm.org/D141636 | 3 年前 | |
[libTooling] Fix getFileRangeForEdit for inner nested template types (#87673) When there is >> in source from the right brackets of a nested template, the end location of the inner template points into a scratch space with a single > token. This prevents the lexer from seeing the >> token in the original source. However, this causes the range to appear to be partially in a macro, and is problematic if we are trying to avoid ranges with any macro expansions. This change detects these split tokens in token ranges, converting it to the corresponding character range without the expansion. | 2 年前 | |
[clang] Remove uses of ::testing::Matcher<const Optional<T> &> Change a few functions (getCheckTraversalKind, some clang/Tooling/ API, etc) from llvm::Optional to std::optional. | 3 年前 | |
[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 comment to remove raw_string_ostream::str(). | 1 年前 | |
[libTooling] Support TransformerResult<void> in consumer callbacks Support TransformerResult<void> in the consumer callback, which allows generic code to more naturally use the Transformer interface (instead of needing to specialize on void). This also delete the specialization that existed within Transformer itself, instead replacing it with an std::function adapter. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D122499 | 4 年前 |