teemperor created this revision.
Herald added a subscriber: martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D50811
Files:
test/Import/while-stmt/Inputs/F.cpp
test/Import/while-stmt/test.cpp
Index: test/Import/while-stmt/test.cpp
emmettneyman updated this revision to Diff 160920.
emmettneyman added a comment.
Made the inner loop optional
Repository:
rC Clang
https://reviews.llvm.org/D50670
Files:
clang/tools/clang-fuzzer/cxx_loop_proto.proto
clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.cpp
clang/tool
dexonsmith accepted this revision.
dexonsmith added a comment.
This revision is now accepted and ready to land.
LGTM if thakis is happy.
Repository:
rCXX libc++
https://reviews.llvm.org/D50652
___
cfe-commits mailing list
cfe-commits@lists.llvm.o
hubert.reinterpretcast added a comment.
In https://reviews.llvm.org/D50736#1200774, @hubert.reinterpretcast wrote:
> In https://reviews.llvm.org/D50736#1200761, @mclow.lists wrote:
>
> > Is this test that's being added libc++ specific, or would it apply to other
> > implementations as well?
>
>
teemperor created this revision.
Herald added a subscriber: martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D50812
Files:
test/Import/for-stmt/Inputs/F.cpp
test/Import/for-stmt/test.cpp
Index: test/Import/for-stmt/test.cpp
==
joerg added a comment.
I don't understand the desire for this logic. Why can't wasm override the rest
of the types if it wants to have something special?
Repository:
rC Clang
https://reviews.llvm.org/D50477
___
cfe-commits mailing list
cfe-commi
teemperor created this revision.
Herald added a subscriber: martong.
Herald added a reviewer: a.sidorin.
Repository:
rC Clang
https://reviews.llvm.org/D50813
Files:
test/Import/indirect-goto/Inputs/F.cpp
test/Import/indirect-goto/test.cpp
Index: test/Import/indirect-goto/test.cpp
===
hubert.reinterpretcast updated this revision to Diff 160923.
hubert.reinterpretcast added a comment.
Address review comments by Marshall
Add a line break after the template-head. Add a comment with the requested
quote from the Standard. Move test from the `test/libcxx/` tree to the
`test/std/`
teemperor added a comment.
As a side note: It seems this test case actually reveals that we don't import
the body of Foo's destructor?
test/Import/cxx-default-init-expr/Inputs/S.cpp:1:8: inline function
'Foo::~Foo' is not defined
struct Foo {
^
test/Import/cxx-default-init-expr/I
morehouse added inline comments.
Comment at: clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.cpp:124
+void SingleLoopToString(std::ostream &os, const LoopFunction &x) {
+ inner_loop = false;
+ os << "void foo(int *a, int *b, int *__restrict__ c, size_t s) {\n"
-
arphaman created this revision.
arphaman added reviewers: ilya-biryukov, jkorous, sammccall.
Herald added subscribers: cfe-commits, dexonsmith, MaskRay, ioeric, javed.absar.
This patch extends Clangd to allow the clients to specify the preference for
how it wants to consume the fixes on the notes
mclow.lists created this revision.
mclow.lists added reviewers: EricWF, ldionne.
Herald added a subscriber: christof.
In C++20, we're going to have a header named for bit manipulations.
See https://wg21.link/P0553 and https://wg21.link/P0556 for more info.
This doesn't do any of that.
It just cr
sbc100 added a comment.
Please ignore this change, I had thought we wanted size_t to match either
int32_t or int64_t, but it turns out that isn't a requirement and that code
that expects this to be true needs fixing.
Repository:
rC Clang
https://reviews.llvm.org/D50477
_
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339825: [ASTImporter] Add test for IfStmt (authored by
teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50796?vs=160876&id=160930#to
ldionne added a comment.
If that's possible at all, I would like for the Chromium people to build with
this patch applied. The expectation is that we'll cherry-pick this patch onto
LLVM 7, and it would suck if that did not solve Chromium's problem for some
stupid reason.
Repository:
rCXX li
Author: teemperor
Date: Wed Aug 15 15:36:58 2018
New Revision: 339827
URL: http://llvm.org/viewvc/llvm-project?rev=339827&view=rev
Log:
[ASTImporter] Add test for IfStmt
Reviewers: a.sidorin, hiraditya
Reviewed By: hiraditya
Subscribers: hiraditya, martong, cfe-commits
Differential Revision: h
a_sidorin accepted this revision.
a_sidorin added a comment.
This revision is now accepted and ready to land.
Tests are always welcome. Thanks!
Repository:
rC Clang
https://reviews.llvm.org/D50731
___
cfe-commits mailing list
cfe-commits@lists.ll
emmettneyman updated this revision to Diff 160932.
emmettneyman added a comment.
Changed modifying global var to scoped class
Repository:
rC Clang
https://reviews.llvm.org/D50670
Files:
clang/tools/clang-fuzzer/cxx_loop_proto.proto
clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.
mclow.lists added a comment.
Thanks for doing this.
This looks good to me; but I want to play with it a bit before committing. I'll
do that tonight.
Repository:
rCXX libc++
https://reviews.llvm.org/D50736
___
cfe-commits mailing list
cfe-commits
Author: cbieneman
Date: Wed Aug 15 15:50:06 2018
New Revision: 339829
URL: http://llvm.org/viewvc/llvm-project?rev=339829&view=rev
Log:
[Darwin Driver] Fix Simulator builtins and test cases
In r339807, I broke linking the builtins libraries for simulator targets, which
itself was bad, but turns
pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.
LGTM except for a few spelling/grammar nits.
Comment at: clang/docs/ControlFlowIntegrityDesign.rst:361
+it starts by allocating two work lists, one initialized with all the
offset
a_sidorin marked an inline comment as done.
a_sidorin added inline comments.
Comment at: lib/AST/ASTImporter.cpp:1317
+ for (auto *D : FromRD->decls()) {
+Decl *ToD = Importer.GetAlreadyImportedOrNull(D);
+assert(ToRD == ToD->getDeclContext() && ToRD->containsDecl(ToD));
Author: teemperor
Date: Wed Aug 15 15:51:37 2018
New Revision: 339830
URL: http://llvm.org/viewvc/llvm-project?rev=339830&view=rev
Log:
[ASTImporter] Add test for ExprWithCleanups
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: a_sidorin, martong, cfe-commits
Differential R
This revision was automatically updated to reflect the committed changes.
Closed by commit rC339830: [ASTImporter] Add test for ExprWithCleanups
(authored by teemperor, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D50731
Files:
test/Import/expr-with-cleanups/Inputs/S.cpp
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339831: [ASTImporter] Add test for ArrayInitLoopExpr
(authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50733?vs=160682&i
Author: teemperor
Date: Wed Aug 15 15:52:21 2018
New Revision: 339831
URL: http://llvm.org/viewvc/llvm-project?rev=339831&view=rev
Log:
[ASTImporter] Add test for ArrayInitLoopExpr
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revision: h
emmettneyman updated this revision to Diff 160936.
emmettneyman added a comment.
Updated comments, rebased, and ready to land
Repository:
rC Clang
https://reviews.llvm.org/D50670
Files:
clang/tools/clang-fuzzer/cxx_loop_proto.proto
clang/tools/clang-fuzzer/proto-to-cxx/loop_proto_to_cxx.
Author: emmettneyman
Date: Wed Aug 15 16:05:48 2018
New Revision: 339832
URL: http://llvm.org/viewvc/llvm-project?rev=339832&view=rev
Log:
Implementation of nested loops in cxx_loop_proto
Summary: Extended `cxx_loop_proto` to have neste for loops. Modified
`loop_proto_to_llvm` and `loop_proto_to
This revision was automatically updated to reflect the committed changes.
Closed by commit rC339832: Implementation of nested loops in cxx_loop_proto
(authored by emmettneyman, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50670?vs=160936&id=160937#toc
Repository:
rC Cla
a_sidorin added a comment.
Hello Gabor and Balazs,
> With Balazs, we are working on something similar, but with a different, fine
> grained error value mechanism. Unfortunately we were not aware of that you
> have been working on error handling, and we didn't say that we are working on
> error
a_sidorin added a comment.
Hi Balasz,
Thank you for the fixes.
Comment at: unittests/AST/ASTImporterTest.cpp:2258
+ASSERT_EQ(lookup_res.size(), 0u);
+lookup_res = cast(FromTU)->noload_lookup(FromName);
+ASSERT_EQ(lookup_res.size(), 1u);
a_sidorin w
a_sidorin accepted this revision.
a_sidorin added a comment.
This revision is now accepted and ready to land.
Thanks!
> As a side note: It seems this test case actually reveals that we don't import
> the body of Foo's destructor?
This is strange. If you manage to find the reason, please notify
NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet,
rnkovacs.
Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho,
baloghadamsoftware.
The analyzer doesn't need them and they seem to have pretty weird AST from time
to time, so
shuaiwang updated this revision to Diff 160952.
shuaiwang marked 3 inline comments as done.
shuaiwang added a comment.
More test cases
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnal
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339834: [Driver] -print-target-triple and
-print-effective-triple options (authored by phosek, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/
Author: phosek
Date: Wed Aug 15 17:22:03 2018
New Revision: 339834
URL: http://llvm.org/viewvc/llvm-project?rev=339834&view=rev
Log:
[Driver] -print-target-triple and -print-effective-triple options
These can be used to print Clang target and effective triple.
Differential Revision: https://revi
rsmith added a comment.
There is no guarantee that you can use an address-of-label value from one
function invocation in another invocation of the same function. GCC's
documentation says it's the user's own problem to prevent inlining and cloning
if the program requires an address-of-label exte
shuaiwang added inline comments.
Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:309
+TEST(ExprMutationAnalyzerTest, CallUnresolved) {
+ auto AST =
JonasToth wrote:
> I think we are missing tests for non-type template paramters (`template
> `).
emmettneyman created this revision.
emmettneyman added reviewers: morehouse, kcc.
Herald added a subscriber: cfe-commits.
Added commands to Dockerfile to build llvm-proto-fuzzer and the other related
tools. Also added a section to the bottom of the README describing what
llvm-proto-fuzzer does a
shuaiwang updated this revision to Diff 160960.
shuaiwang added a comment.
Test case with non-type template
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
Index: unitte
emmettneyman added a comment.
Is there anything I should add to the documentation? Anything I should remove?
Repository:
rC Clang
https://reviews.llvm.org/D50829
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bi
morehouse added inline comments.
Comment at: clang/tools/clang-fuzzer/README.txt:104
+To translate a cxx_loop_proto file into LLVM IR do:
+ bin/clang-loop-proto-to-llvm
+To translate a cxx_loop_proto file into C++ do:
`bin/clang-loop-proto-to-llvm CORPUS_OUTPUT_
leonardchan updated this revision to Diff 160964.
leonardchan marked 7 inline comments as done.
leonardchan added a comment.
- Reworked logic for saturation
Repository:
rC Clang
https://reviews.llvm.org/D50616
Files:
include/clang/AST/OperationKinds.def
include/clang/AST/Type.h
include
leonardchan added inline comments.
Comment at: lib/CodeGen/CGExprScalar.cpp:1034
+ if (DstFPSema.isSaturated() &&
+ (CGF.getContext().getCorrespondingSaturatedType(SrcTy) != DstTy)) {
+auto Mask = APInt::getBitsSetFrom(
rjmccall wrote:
> leonardchan wro
Author: teemperor
Date: Wed Aug 15 18:35:47 2018
New Revision: 339837
URL: http://llvm.org/viewvc/llvm-project?rev=339837&view=rev
Log:
[ASTImporter] Add test for ForStmt and ContinueStmt
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revi
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339837: [ASTImporter] Add test for ForStmt and ContinueStmt
(authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50812?vs=1
Author: teemperor
Date: Wed Aug 15 18:36:37 2018
New Revision: 339838
URL: http://llvm.org/viewvc/llvm-project?rev=339838&view=rev
Log:
[ASTImporter] Add test for CXXScalarValueInit
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: martong, cfe-commits
Differential Revision:
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339838: [ASTImporter] Add test for CXXScalarValueInit
(authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50735?vs=160685&
Author: teemperor
Date: Wed Aug 15 18:37:43 2018
New Revision: 339839
URL: http://llvm.org/viewvc/llvm-project?rev=339839&view=rev
Log:
[ASTImporter] Add test for CXXDefaultInitExpr
Reviewers: a.sidorin, a_sidorin
Reviewed By: a_sidorin
Subscribers: a_sidorin, martong, cfe-commits
Differential
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339839: [ASTImporter] Add test for CXXDefaultInitExpr
(authored by teemperor, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D50732?vs=160678&
ldionne accepted this revision.
ldionne added a comment.
This revision is now accepted and ready to land.
LGTM
https://reviews.llvm.org/D50815
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe
rnk added a comment.
In https://reviews.llvm.org/D50805#1201805, @rsmith wrote:
> There is no guarantee that you can use an address-of-label value from one
> function invocation in another invocation of the same function. GCC's
> documentation says it's the user's own problem to prevent inlinin
hiraditya added inline comments.
Comment at: test/Import/cxx-noexcept-expr/test.cpp:1
+// RUN: clang-import-test -dump-ast -import %S/Inputs/F.cpp -expression %s |
FileCheck %s
+
Can we add a line/comment to explain what this test does? Same for the input
files
Hello Ilya,
This commit has broken the ABI test builder - lab.llvm.org:8011/builders/
clang-x86_64-linux-abi-test/builds/30676
Could you take care of this, please?
Thanks
Galina
. . .
FAILED:
tools/clang/tools/extra/unittests/clangd/CMakeFiles/ClangdTests.dir/CodeCompleteTests.cpp.o
/usr/bin
atanasyan added a comment.
Any test cases?
Comment at: lib/Basic/Targets/Mips.cpp:62
+unsigned MipsTargetInfo::getISARev(const std::string& CPU) const {
+ return llvm::StringSwitch(getCPU())
The CPU argument looks unused. We can either remove it or make this
lebedev.ri added inline comments.
Comment at: include/bit:99
+ unsigned long where;
+ // Search from LSB to MSB for first set bit.
+ // Returns zero if no set bit is found.
Pretty sure this is the other way around here.
```
// Search from MSB to LSB for first
Author: ctopper
Date: Wed Aug 15 23:20:29 2018
New Revision: 339843
URL: http://llvm.org/viewvc/llvm-project?rev=339843&view=rev
Log:
[X86] Remove masking from the 512-bit padds and psubs builtins. Use select
builtin instead.
Modified:
cfe/trunk/include/clang/Basic/BuiltinsX86.def
cfe/tr
craig.topper added inline comments.
Comment at: include/bit:145
+ static_assert(sizeof(unsigned) == 4, "");
+ return __popcnt(__x);
+#endif
How does this work on pre-Haswell X86 CPUs? Doesn't MSVC just blindly emit the
popcnt instruction when it sees this?
h
martong accepted this revision.
martong added inline comments.
This revision is now accepted and ready to land.
Comment at: lib/AST/ASTImporter.cpp:1317
+ for (auto *D : FromRD->decls()) {
+Decl *ToD = Importer.GetAlreadyImportedOrNull(D);
+assert(ToRD == ToD->getDeclCon
craig.topper added inline comments.
Comment at: include/bit:163
+ static_assert(sizeof(unsigned long long) == 8, "");
+ return __popcnt64(__x);
+#endif
I don't think __popcnt64 exists in MSVC when targeting 32-bit mode.
https://reviews.llvm.org/D50815
101 - 160 of 160 matches
Mail list logo