EricWF added inline comments.
Comment at: test/std/experimental/filesystem/lit.local.cfg:5
+
+# filesystem_test_helper uses random_device to generate random path.
+if 'libcpp-has-no-random-device' in config.available_features:
EricWF wrote:
> EricWF wrote:
> > I
EricWF closed this revision.
EricWF added a comment.
Committed as r324799.
Thank you!
https://reviews.llvm.org/D42344
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
EricWF added a comment.
Some initial thoughts.
@mclow.lists Are you planning on moving forward with your implementation as
well?
Comment at: include/charconv:89
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+enum class _LIBCPP_ENUM_VIS chars_format
We need to hide these nam
EricWF added a comment.
@lichray I should have mentioned: Although this header is C++17 only, the bits
compiled into the dylib need to compile as C++11 still.
Repository:
rCXX libc++
https://reviews.llvm.org/D41458
___
cfe-commits mailing list
c
EricWF added inline comments.
Comment at: CMakeLists.txt:141
+set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt")
+set(LIBCXX_CXX_ABI_INCLUDE_PATHS "/usr/include/c++/v1")
else()
Actually, I'm not sure how much I love having other libc++ header on the
include path.
EricWF added inline comments.
Comment at: CMakeLists.txt:141
+set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt")
+set(LIBCXX_CXX_ABI_INCLUDE_PATHS "/usr/include/c++/v1")
else()
EricWF wrote:
> Actually, I'm not sure how much I love having other libc++ header on th
EricWF added a comment.
So my main concern with this patch is that `nullptr` is actually `#defined`'ed
in C++03 mode. That definition comes from the `__nullptr` header, and therefore
we would need to add that header to each include which uses it. Which kind of
sucks.
Repository:
rCXX libc+
EricWF closed this revision.
EricWF added a comment.
Committed as r324853.
Repository:
rCXX libc++
https://reviews.llvm.org/D42354
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM.
Repository:
rCXX libc++
https://reviews.llvm.org/D43224
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cg
EricWF added a comment.
LGTM except the removal of the test. I think it's probably valuable to keep
around on platforms that allow it.
What do you think?
Comment at:
libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp:360
-
-
EricWF added inline comments.
Comment at:
libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp:360
-
-ec = GetTestEC();
-last_write_time(p, Clock::now());
vsapsai wrote:
> EricWF wrote:
> > I would really lov
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
I'm fine with this, but I don't really think it's a good solution (but none of
our LIT config is ideal). In particular for the link flags might not work well,
because the order of linker flags
EricWF updated this revision to Diff 134986.
EricWF added a comment.
Ping.
https://reviews.llvm.org/D40218
Files:
include/clang/Basic/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ExprConstant.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Sema/SemaChecking.cpp
test/CodeGen/bui
EricWF updated this revision to Diff 134989.
EricWF added a comment.
Ping.
https://reviews.llvm.org/D43047
Files:
include/clang/Basic/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/Cod
EricWF updated this revision to Diff 134987.
EricWF added a comment.
Ping.
https://reviews.llvm.org/D37035
Files:
docs/LanguageExtensions.rst
include/clang/AST/Expr.h
include/clang/AST/ExprCXX.h
include/clang/AST/RecursiveASTVisitor.h
include/clang/AST/SourceLocExprScope.h
include/c
EricWF created this revision.
This patch fixes a number of issues with the analysis warnings emitted when a
coroutine may reach the end of the function w/o returning.
- Fix bug where coroutines with `return_value` are incorrectly diagnosed as
missing `co_return`'s.
- Rework diagnostic message t
EricWF added inline comments.
Comment at: lib/Sema/AnalysisBasedWarnings.cpp:378
const Stmt *S = CS.getStmt();
-if ((isa(S) && !IsCoroutine) || isa(S)) {
+if (isa(S) || isa(S)) {
HasLiveReturn = true;
GorNishanov wrote:
> Is this check no long
EricWF created this revision.
According to the PDTS it's perfectly legal to have a promise type that defines
neither `return_value` nor `return_void`. However a coroutine that uses such a
promise type will almost always have UB, because it can never `co_return`.
This patch changes Clang to diag
EricWF created this revision.
This patch is needed so that Libc++ can actually tess if Clang supports
coroutines, instead of just paying lip service with a partial implementation.
Otherwise the libc++ test suite will fail against older versions of Clang
https://reviews.llvm.org/D33536
Files:
EricWF created this revision.
In order for libc++ to add `` to its module map, there
has to be a feature that can be used to detect if coroutines support is enabled
in Clang.
https://reviews.llvm.org/D33538
Files:
docs/Modules.rst
lib/Basic/Module.cpp
test/Modules/Inputs/DependsOnModule
EricWF updated this revision to Diff 100207.
EricWF added a comment.
- Alphabetize newly added switch case.
https://reviews.llvm.org/D33538
Files:
docs/Modules.rst
lib/Basic/Module.cpp
test/Modules/Inputs/DependsOnModule.framework/Headers/coroutines.h
test/Modules/Inputs/DependsOnModule
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM after addressing inline comments. Sorry for the delay.
Comment at: include/memory:3663
+template
+struct rebind
+{
This rebind isn't gettin
EricWF added inline comments.
Comment at: test/Modules/requires-coroutines.mm:1
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -Wauto-import -fmodules-cache-path=%t -fmodules
-fimplicit-module-maps -F %S/Inputs %s -verify
Should this test be called `requires-coroutines.
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
Sorry for the delay reviewing such a simple change.
https://reviews.llvm.org/D33340
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http:
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM.
https://reviews.llvm.org/D33290
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-
EricWF added a comment.
@CaseyCarter Changes like this are good for post-commit review (ie just commit
it)
https://reviews.llvm.org/D33290
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co
EricWF added a comment.
@BillyONeal Changes like this are good for post-commit review (ie just commit
it). Adding clearly correct assertions and test cases is never an objectionable
thing.
https://reviews.llvm.org/D33340
___
cfe-commits mailing li
EricWF added inline comments.
Comment at:
test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp:389
+template
+constexpr bool triviality_test =
+ std::is_trivially_copy_assignable>::value ==
`triviality_test` should also compare to an explicit
EricWF marked 6 inline comments as done.
EricWF added inline comments.
Comment at: include/__locale:370
static const mask blank = _ISblank;
-#elif defined(_LIBCPP_MSVCRT)
+#elif defined(_LIBCPP_WIN32API)
typedef unsigned short mask;
compnerd wrote:
> A
EricWF marked 3 inline comments as done.
EricWF added a comment.
In https://reviews.llvm.org/D33082#760516, @martell wrote:
> I want to give some context here to dispel the confusion of what is and isn't
> win32 api specific.
>
> First lets take `vasprintf` and `asprintf ` which are not implemen
EricWF updated this revision to Diff 100263.
EricWF added a comment.
Add `_LIBCPP_MSVCRT_LIKE` and use it to replace `_LIBCPP_WIN32API` where
appropriate.
https://reviews.llvm.org/D33082
Files:
include/__config
include/__locale
include/locale
include/stdio.h
include/support/win32/loc
EricWF added a comment.
In https://reviews.llvm.org/D33080#754442, @compnerd wrote:
> I think that we should sink the `min`/`max` checks into `__undef_macros`. I
> don't like the idea of littering that check everywhere.
I would much rather litter at the cost of the implementation than needles
EricWF updated this revision to Diff 100269.
EricWF added a comment.
- Remove the external include guards for `__undef_macros` as requested by
@compnerd.
I couldn't come up with a easy test case that showed any notable difference
having the external guards.
https://reviews.llvm.org/D33080
Fi
EricWF added a comment.
@mclow.lists Could you update this diff with more context?
https://reviews.llvm.org/D33550
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
EricWF added a comment.
In https://reviews.llvm.org/D33538#765045, @rsmith wrote:
> Do we need to conditionalize this part of libc++? Nothing in the
> header appears to need compiler support.
That's correct. I was mistaken as to why this was needed. I mistook a bug in
libc++ for the reason t
EricWF added a comment.
Also see r303936, which re-adds to the module map and
fixes the bug.
https://reviews.llvm.org/D33538
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
EricWF added a comment.
In https://reviews.llvm.org/D33538#765225, @rsmith wrote:
> In https://reviews.llvm.org/D33538#765146, @EricWF wrote:
>
> > In https://reviews.llvm.org/D33538#765045, @rsmith wrote:
> >
> > > Do we need to conditionalize this part of libc++? Nothing in the
> > > header a
EricWF added a comment.
In https://reviews.llvm.org/D33082#765282, @bcraig wrote:
> I think that we generally shouldn't be giving functions names that are
> already claimed elsewhere (like mbsnrtowcs and wcsnrtombs). It is my opinion
> that these should always be qualified as __libcpp_* symbol
EricWF updated this revision to Diff 100358.
EricWF added a comment.
- remove `asprintf` declaration and definition entirely. It's not used anywhere
within libc++.
https://reviews.llvm.org/D33082
Files:
include/__config
include/__locale
include/locale
include/stdio.h
include/support/
EricWF updated this revision to Diff 100361.
EricWF added a comment.
- Fix whitespace in `__config`.
@compnerd Any final thoughts?
https://reviews.llvm.org/D33080
Files:
include/__bit_reference
include/__config
include/__hash_table
include/__mutex_base
include/__split_buffer
includ
EricWF added a comment.
@vsk: I would include your fuzzing test in this patch. Simply put it somewhere
under `test/libcxx/containers/unordered`.
https://reviews.llvm.org/D33588
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.ll
EricWF added a comment.
In https://reviews.llvm.org/D33082#765644, @martell wrote:
> LGTM but I can't speak for the area where you added `#include ` and
> killed off the `_NEWLIB_VERSION` check
> Seems in order based on
> https://sourceware.org/ml/newlib-cvs/2014-q3/msg00038.html
> Maybe make
EricWF added a comment.
I think this patch still gets the following case wrong:
// foo.h
constexpr struct {
template void operator()(T) {} // emits unused template warning
} foo;
https://reviews.llvm.org/D29877
___
cfe-commits mailing li
EricWF added a comment.
In https://reviews.llvm.org/D29877#766176, @rsmith wrote:
> In https://reviews.llvm.org/D29877#765968, @EricWF wrote:
>
> > I think this patch still gets the following case wrong:
> >
> > // foo.h
> > constexpr struct {
> > template void operator()(T) {} // emits
EricWF added a comment.
In https://reviews.llvm.org/D29877#766196, @EricWF wrote:
> In https://reviews.llvm.org/D29877#766176, @rsmith wrote:
>
> > In https://reviews.llvm.org/D29877#765968, @EricWF wrote:
> >
> > > I think this patch still gets the following case wrong:
> > >
> > > // foo.h
>
EricWF added inline comments.
Comment at: include/clang/Basic/DiagnosticGroups.td:631
// UnusedParameter, (matches GCC's behavior)
+// UnusedTemplate, (clean-up libc++ before enabling)
// UnusedMemberFuncti
EricWF added a comment.
Even after fixing the libc++ guards, the header still emits a #warning when
it's processed when coroutines are unavailable.
It seems like a useful feature test to have available. I'll commit shortly.
https://reviews.llvm.org/D33538
___
EricWF created this revision.
The expression `await_ready` is required to be contextually convertible to bool
and `await_suspend` must be a prvalue of either `void` or `bool`.
This patch adds diagnostics for when those requirements are violated.
It also correctly performs the contextual conversi
EricWF updated this revision to Diff 100541.
EricWF added a comment.
- Format changes
https://reviews.llvm.org/D33625
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCoroutine.cpp
test/SemaCXX/coroutines.cpp
Index: test/SemaCXX/coroutines.cpp
==
EricWF marked an inline comment as done.
EricWF added inline comments.
Comment at: lib/Sema/SemaCoroutine.cpp:324
struct ReadySuspendResumeResult {
+ enum AwaitCallType { ACT_Ready, ACT_Suspend, ACT_Resume };
Expr *Results[3];
GorNishanov wrote:
> enum class
EricWF updated this revision to Diff 100557.
EricWF added a comment.
- Add requested test case.
https://reviews.llvm.org/D33625
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCoroutine.cpp
test/SemaCXX/coroutines.cpp
Index: test/SemaCXX/coroutines.cpp
EricWF marked an inline comment as done.
EricWF added inline comments.
Comment at: lib/Sema/SemaCoroutine.cpp:393
+// - await-suspend is the expression e.await_suspend(h), which shall be
+// a prvalue of type void or bool.
+QualType RetType = AwaitSuspend->getTy
EricWF created this revision.
@rsmith Does this correctly address the issues mentioned in
https://reviews.llvm.org/D33625#inline-292971 ?
https://reviews.llvm.org/D33636
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaCoroutine.cpp
test/SemaCXX/coroutines.cpp
Index: test
EricWF updated this revision to Diff 100567.
EricWF added a comment.
This patch was initially reverted due to a failing test it caused elsewhere;
which has been address in this version.
https://reviews.llvm.org/D33538
Files:
docs/Modules.rst
lib/Basic/Module.cpp
test/Index/index-module.m
EricWF created this revision.
@rsmith Is there a better place to put this test?
https://reviews.llvm.org/D33660
Files:
lib/Sema/SemaCoroutine.cpp
test/SemaCXX/coreturn.cpp
test/SemaCXX/coroutine-uninitialized-warning-crash.cpp
Index: test/SemaCXX/coroutine-uninitialized-warning-crash.cp
EricWF accepted this revision.
EricWF added a comment.
LGTM.
https://reviews.llvm.org/D33080
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rL304357: [Libc++] Use #pragma push_macro/pop_macro to better
handle min/max on Windows (authored by EricWF).
Changed prior to commit:
https://reviews.llvm.org/D33080?vs=100361&id=100925#toc
Repository:
EricWF closed this revision.
EricWF added a comment.
Committed as r304359.
Repository:
rL LLVM
https://reviews.llvm.org/D33178
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rL304360: Fix Libc++ build with MinGW64 (authored by EricWF).
Changed prior to commit:
https://reviews.llvm.org/D33082?vs=100358&id=100926#toc
Repository:
rL LLVM
https://reviews.llvm.org/D33082
Files
EricWF created this revision.
After changing libc++ to push/pop the min/max macros on Windows we have a bunch
of new test failures, caused by tests using min/max. I would like to use
test_macros.h to undefine it.
Would this work for you? How have you been dealing with these failures?
https:/
EricWF added a comment.
In https://reviews.llvm.org/D33741#769371, @STL_MSFT wrote:
> I haven't seen min/max test failures, probably because our CRT/STL headers
> never drag in Windows.h.
Ah, that makes sense. Libc++ currently does although the plan is to fix that
eventually. :-S
> I have no
EricWF abandoned this revision.
EricWF added a comment.
In https://reviews.llvm.org/D33741#769421, @CaseyCarter wrote:
> In https://reviews.llvm.org/D33741#769381, @EricWF wrote:
>
> > In https://reviews.llvm.org/D33741#769371, @STL_MSFT wrote:
> >
> > > I haven't seen min/max test failures, prob
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM.
https://reviews.llvm.org/D33636
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-
EricWF added a comment.
@loladiro The patch doesn't apply correctly to the test. Do you mind if I
hijack this and fix it?
Repository:
rL LLVM
https://reviews.llvm.org/D24371
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.ll
EricWF updated this revision to Diff 100949.
EricWF added a comment.
- Fix patch so it applies cleanly.
https://reviews.llvm.org/D24371
Files:
lib/Sema/SemaDecl.cpp
test/SemaCXX/attr-require-constant-initialization.cpp
Index: test/SemaCXX/attr-require-constant-initialization.cpp
==
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM. @loladiro Would you like to commit this?
https://reviews.llvm.org/D24371
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lis
EricWF added inline comments.
Comment at: include/__hash_table:139
{
-return size_t(1) << (std::numeric_limits::digits - __clz(__n-1));
+return (__n > 1) ? (size_t(1) << (std::numeric_limits::digits -
__clz(__n-1))) : __n;
}
Shouldn't this return `__n
EricWF added a comment.
@GorNishanov I think we should be transforming the move parameters, instead of
re-building them entirely. I'll put together a different set of changes.
https://reviews.llvm.org/D33797
___
cfe-commits mailing list
cfe-commits
EricWF updated this revision to Diff 101291.
EricWF added a comment.
- Diagnose non-moveable but otherwise unnamed parameters.
- Have TreeTransform.h check if building the move params is successful.
https://reviews.llvm.org/D33797
Files:
lib/Sema/CoroutineStmtBuilder.h
lib/Sema/SemaCoroutin
EricWF added inline comments.
Comment at: lib/Sema/SemaCoroutine.cpp:1285
+ // We needed to check it, but we don't need to generate code for it.
+ if (!paramDecl->getIdentifier())
+continue;
@rsmith Is there a better way to check if the move wou
EricWF updated this revision to Diff 101293.
EricWF added a comment.
- No longer unnamed parameters from the AST.
https://reviews.llvm.org/D33797
Files:
lib/Sema/CoroutineStmtBuilder.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/TreeTransform.h
test/CodeGenCoroutines/coro-params.cpp
test/Sema
EricWF added inline comments.
Comment at: lib/Sema/SemaCoroutine.cpp:1285
+ // We needed to check it, but we don't need to generate code for it.
+ if (!paramDecl->getIdentifier())
+continue;
rsmith wrote:
> EricWF wrote:
> > @rsmith Is there a b
EricWF updated this revision to Diff 101307.
EricWF edited the summary of this revision.
EricWF added reviewers: rtrieu, dexonsmith, dblaikie, aprantl, v.g.vassilev.
EricWF added a comment.
- Only allow the top level header search directories to be search for
`module.modulemap` files when loadin
EricWF created this revision.
Currently we build the co_await expressions on the wrong implicit statements of
the implicit ranged for; Specifically we build the co_await expression wrapping
the range declaration, but it should wrap the begin expression.
This patch fixes co_await on range for.
EricWF updated this revision to Diff 101853.
EricWF added a comment.
- Add FIXME comments for incorrect use of `getCurScope()` after initial parse.
https://reviews.llvm.org/D34021
Files:
include/clang/Sema/Sema.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/coawait_rang
EricWF updated this revision to Diff 101854.
EricWF added a comment.
- Fix clang-format nonsense in tests.
https://reviews.llvm.org/D34021
Files:
include/clang/Sema/Sema.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/coawait_range_for.cpp
Index: test/SemaCXX/coawait_ra
EricWF updated this revision to Diff 101857.
EricWF added a comment.
- More test cleanup. Sorry for the noise.
https://reviews.llvm.org/D34021
Files:
include/clang/Sema/Sema.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/coawait_range_for.cpp
Index: test/SemaCXX/coawai
EricWF updated this revision to Diff 101858.
https://reviews.llvm.org/D34021
Files:
include/clang/Sema/Sema.h
lib/Sema/SemaCoroutine.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/coawait_range_for.cpp
Index: test/SemaCXX/coawait_range_for.cpp
EricWF updated this revision to Diff 101862.
EricWF added a comment.
- Fix value category of `co_await`/`co_yield` expression. ie use the return
type of the resume expression to determine the value category.
@rsmith Should the `CoroutineSuspendExpr` constructor be using
`getCallReturnType()` to
EricWF added inline comments.
Comment at: test/SemaCXX/coawait_range_for.cpp:133
+
+struct ForLoopAwaiterCoawaitLookup {
+ struct promise_type {
This test is incorrect WRT ADL lookup.
https://reviews.llvm.org/D34021
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM.
Could you please add the benchmark under `libcxx/benchmarks`.
Could you also make sure that the existing tests (under `test/std`) for number
parsing have sufficient test coverages for t
EricWF added inline comments.
Comment at: include/clang/AST/ExprCXX.h:4136
+ : Expr(SC, Resume->getType(),
+ (Resume->getType()->isLValueReferenceType() ? VK_LValue :
+ Resume->getType()->isRValueReferenceType() ? VK_XValue :
@rsmith
EricWF updated this revision to Diff 102472.
EricWF added a comment.
- Remove changes to how `CoroutineSuspendExpr`s `ExprValueType` is calculated.
They were incorrect. However this means that Clang still fails to compile
`co_await` and `co_yield` expressions where `await_resume` returns an lval
EricWF created this revision.
The title says it all.
However I can't figure out how to test `int& x = co_yield 42;` since that
expression doesn't seem to want to parse.
https://reviews.llvm.org/D34194
Files:
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.
EricWF updated this revision to Diff 102485.
EricWF edited the summary of this revision.
EricWF added a comment.
- Fix assertion for co_yield.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunc
EricWF updated this revision to Diff 102486.
EricWF added a comment.
- Remove unneeded assertion.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCoroutines/coro-await.cp
EricWF updated this revision to Diff 102487.
EricWF added a comment.
- Improve tests
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCoroutines/coro-await.cpp
Index: tes
EricWF updated this revision to Diff 102492.
EricWF added a comment.
- Improve test by using regular expressions and [[Name]] where possible.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunct
EricWF updated this revision to Diff 102494.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCoroutines/coro-await.cpp
Index: test/CodeGenCoroutines/coro-await.cpp
===
EricWF created this revision.
Herald added a subscriber: klimek.
This patch (1) enable parsing for coroutines by default and (2) teaches
clang-format how to properly handle them.
https://reviews.llvm.org/D34225
Files:
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
lib/Format/Unwrapp
EricWF marked 2 inline comments as done.
EricWF added inline comments.
Comment at: test/CodeGenCoroutines/coro-await.cpp:310
+ int& x = co_await a;
+ // CHECK: await2.ready:
+ // CHECK-NEXT: %[[RES2:.+]] = call dereferenceable(4) i32*
@_ZN24AwaitResumeReturnsLValue12await_res
EricWF updated this revision to Diff 102701.
EricWF added a comment.
- Address most inline comments.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCoroutines/coro-await
EricWF updated this revision to Diff 102705.
EricWF added a comment.
- Fix the test when -discard-value-names is present, at least my part of the
test.
https://reviews.llvm.org/D34194
Files:
lib/AST/ExprClassification.cpp
lib/CodeGen/CGCoroutine.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/C
EricWF created this revision.
This fixes llvm.org/PR33469.
https://reviews.llvm.org/D34249
Files:
src/experimental/filesystem/operations.cpp
Index: src/experimental/filesystem/operations.cpp
===
--- src/experimental/filesystem/
EricWF added inline comments.
Comment at: src/experimental/filesystem/operations.cpp:23-28
+// We can use the presence of UTIME_OMIT to detect platforms that do not
+// provide utimensat, with some exceptions on OS X.
+#if !defined(UTIME_OMIT) || \
+ (defined(__MAC_OS_X_VERSION
EricWF added a comment.
Could you re-upload this with a updated diff against trunk, and one with more
context.
https://reviews.llvm.org/D34237
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cf
EricWF added a comment.
A large portion of this patch is UB. Any function that unconditionally calls
`__get_db()` can never be a valid constant expression, hence UB.
Is there a smaller set of operations or `__wrap_iter` that *must* be made
constexpr? Or do they all need to be?
==
EricWF updated this revision to Diff 102782.
https://reviews.llvm.org/D34249
Files:
src/experimental/filesystem/operations.cpp
Index: src/experimental/filesystem/operations.cpp
===
--- src/experimental/filesystem/operations.cpp
+
EricWF updated this revision to Diff 102783.
EricWF marked an inline comment as done.
EricWF added a comment.
- Address inline comments.
https://reviews.llvm.org/D34249
Files:
src/experimental/filesystem/operations.cpp
Index: src/experimental/filesystem/operations.cpp
==
EricWF added inline comments.
Comment at: src/experimental/filesystem/operations.cpp:22-24
+#if defined(__APPLE__)
+#include
+#endif
dexonsmith wrote:
> I only just noticed you were including Availability.h. That shouldn't be
> necessary, since the macros shou
101 - 200 of 1095 matches
Mail list logo