Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
6378 | why is CDependence a condition and not an assertion inside the if? If you're using it as a short-hand for "is this plain C and also has recovery enabled" then I'd avoid that - it's not clear that this is a language check. | |
6385 | Is this really the right place vs in BuildResolvedCallExpr? | |
6385 | why DependentTy? shouldn't it be the return type of the function, if available? | |
clang/test/AST/ast-dump-recovery.c | ||
102 | i'm not sure what the int (int) is about - can you remove it from the assertion? |
fix format.
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
6385 |
BuildResolvedCallExpr does some semantic analysis/check, it might emit diagnostics, which we want to avoid. And putting the logic here also aligns with what C++ code path does.
oh, yeah, I missed this. Added. |
why is CDependence a condition and not an assertion inside the if?
(If it's for performance, then we're going to lose this performance when flipping the flag, so I'd consider just flipping it now)
If you're using it as a short-hand for "is this plain C and also has recovery enabled" then I'd avoid that - it's not clear that this is a language check.