ahatanak created this revision.
Herald added subscribers: rengolin, aemerson.
Currently, clang miscompiles operations on __fp16 vectors.
For example, when the following code is compiled:
typedef __fp16 half4 __attribute__ ((vector_size (8)));
half4 hv0, hv1, hv2;
void test() {
hv0 =
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301384: [analyzer] Teach the MallocChecker about Glib API
for two arguments (authored by xiangzhai).
Changed prior to commit:
https://reviews.llvm.org/D30771?vs=96101&id=96670#toc
Repository:
rL LLVM
Author: xiangzhai
Date: Wed Apr 26 00:33:14 2017
New Revision: 301384
URL: http://llvm.org/viewvc/llvm-project?rev=301384&view=rev
Log:
[analyzer] Teach the MallocChecker about Glib API for two arguments
Reviewers: zaks.anna, NoQ, danielmarjamaki
Reviewed By: zaks.anna, NoQ, danielmarjamaki
Sub
Author: bruno
Date: Wed Apr 26 00:06:20 2017
New Revision: 301382
URL: http://llvm.org/viewvc/llvm-project?rev=301382&view=rev
Log:
[Modules][ObjC] Check definition from canonical decl on designated initializers
Use definition from canonical decl when checking for designated
initializers. This is
danielmarjamaki accepted this revision.
danielmarjamaki added a comment.
This revision is now accepted and ready to land.
If you have svn write permission then please do it.
If you need svn write permission, please see
http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access
Repositor
nikola accepted this revision.
nikola added a comment.
This revision is now accepted and ready to land.
LGTM
Comment at: test/SemaCXX/MicrosoftExtensions.cpp:516
+template struct A {};
+template struct B : A > { A::C::D d; }; // expected-error
{{missing 'typename' prior to dep
vsk created this revision.
isMicrosoftMissingTypename() uses a Type pointer without first checking
that it's non-null. PR32750 reports a case where the pointer is in fact
Author: vedantk
Date: Tue Apr 25 21:17:21 2017
New Revision: 301377
URL: http://llvm.org/viewvc/llvm-project?rev=301377&view=rev
Log:
[ubsan] Skip alignment checks on allocas with known alignment
It's possible to determine the alignment of an alloca at compile-time.
Use this information to skip e
xiangzhai added a comment.
Hi Artem,
Could I commit this patch? thanks!
Regards,
Leslie Zhai
Repository:
rL LLVM
https://reviews.llvm.org/D30771
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listi
eugenis added a comment.
r301374
Repository:
rL LLVM
https://reviews.llvm.org/D32514
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: eugenis
Date: Tue Apr 25 19:51:06 2017
New Revision: 301374
URL: http://llvm.org/viewvc/llvm-project?rev=301374&view=rev
Log:
[asan] Unconditionally enable GC of globals on COFF.
This change restores pre-r301225 behavior, where linker GC compatible global
instrumentation was used on COFF
See https://bugs.chromium.org/p/chromium/issues/detail?id=715315
Looks good, please land to get the tree back green while we investigate.
On Apr 25, 2017 8:51 PM, "Evgeniy Stepanov via Phabricator via cfe-commits"
wrote:
> eugenis added a comment.
>
> Apparently the ODR detector in Asan on Wind
eugenis added a comment.
Apparently the ODR detector in Asan on Windows has issues with full
data-sections. This way we can have limited GC for user globals.
Repository:
rL LLVM
https://reviews.llvm.org/D32514
___
cfe-commits mailing list
cfe-co
CaseyCarter created this revision.
NOTE: TEST CHANGES ONLY.
These tests will not pass with the current implementation of `variant`, but
should give the implementor of LWG2904 a head start.
Details:
test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp:
- Make `CopyAssign`'s
pcc added a comment.
Why?
Repository:
rL LLVM
https://reviews.llvm.org/D32514
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
eugenis created this revision.
This change restores pre-r301225 behavior, where linker GC compatible global
instrumentation was used on COFF targets disregarding -f(no-)data-sections
and/or
/Gw flags.
Repository:
rL LLVM
https://reviews.llvm.org/D32514
Files:
lib/CodeGen/BackendUtil.cpp
emilio updated this revision to Diff 96652.
emilio added a comment.
Updated per comments, I used `clang_TargetInfo_dispose` following recent APIs
instead of `clang_disposeTargetInfo`, let me know if I should change that.
Also, didn't add a new header for `CXTargetInfo`, since it's rather small,
CaseyCarter created this revision.
...in test_macros.h
https://reviews.llvm.org/D32510
Files:
test/support/test_macros.h
Index: test/support/test_macros.h
===
--- test/support/test_macros.h
+++ test/support/test_macros.h
@@ -20
On Tue, Apr 25, 2017 at 5:28 PM, David Majnemer
wrote:
>
>
> On Tue, Apr 25, 2017 at 2:12 PM, Nico Weber wrote:
>
>> On Tue, Apr 25, 2017 at 4:14 PM, David Majnemer > > wrote:
>>
>>>
>>>
>>> On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber
>>> wrote:
>>>
On Tue, Apr 25, 2017 at 2:06 PM, David
CaseyCarter updated this revision to Diff 96644.
CaseyCarter added a comment.
Assigning an empty optional to a non-empty optional needs to destroy the
contained value, so we need to also require `is_trivially_destructible` to
implement trivial assignments.
https://reviews.llvm.org/D32385
File
Author: kuhar
Date: Tue Apr 25 17:38:39 2017
New Revision: 301365
URL: http://llvm.org/viewvc/llvm-project?rev=301365&view=rev
Log:
[clang-tidy] run-clang-tidy.py: check if clang-apply-replacements succeeds
Summary:
When running run-clang-tidy.py with -fix it tries to apply found replacements
at
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301365: [clang-tidy] run-clang-tidy.py: check if
clang-apply-replacements succeeds (authored by kuhar).
Changed prior to commit:
https://reviews.llvm.org/D32294?vs=96097&id=96642#toc
Repository:
rL L
ahatanak added inline comments.
Comment at: include/clang/Basic/AttrDocs.td:118
+ let Content = [{
+``noescape`` placed on a block parameter is used to inform the compiler that
the block passed to a function cannot escape: that is, the block will not be
invoked after the funct
ahatanak updated this revision to Diff 96637.
ahatanak marked 4 inline comments as done.
ahatanak added a comment.
Address review comments.
https://reviews.llvm.org/D32210
Files:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/S
Prazek added inline comments.
Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115
+ const auto *MakePairCall = Result.Nodes.getNodeAs("make_pair");
+ assert(InnerCtorCall || MakePairCall);
kuhar wrote:
> Prazek wrote:
> > JDevlieghere wrote:
> > > It's h
On Tue, Apr 25, 2017 at 2:34 PM, Aaron Ballman wrote:
> On Tue, Apr 25, 2017 at 5:33 PM, Bruno Cardoso Lopes
> wrote:
>> On Tue, Apr 25, 2017 at 6:29 AM, Aaron Ballman
>> wrote:
>>> On Wed, Dec 7, 2016 at 9:13 PM, Bruno Cardoso Lopes via cfe-commits
>>> wrote:
Author: bruno
Date: Wed
Author: kparzysz
Date: Tue Apr 25 16:31:55 2017
New Revision: 301364
URL: http://llvm.org/viewvc/llvm-project?rev=301364&view=rev
Log:
[Hexagon] Handle -O4 when checking optimization level
Modified:
cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Hexagon
kuhar marked 2 inline comments as done.
kuhar added inline comments.
Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115
+ const auto *MakePairCall = Result.Nodes.getNodeAs("make_pair");
+ assert(InnerCtorCall || MakePairCall);
Prazek wrote:
> JDevlieghe
kuhar updated this revision to Diff 96634.
kuhar added a comment.
Use igoringImplicit instead of ignoringParenImpCasts. Options moved to the
anonymous namespace.
https://reviews.llvm.org/D32395
Files:
clang-tidy/modernize/UseEmplaceCheck.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks/m
On Tue, Apr 25, 2017 at 5:33 PM, Bruno Cardoso Lopes
wrote:
> On Tue, Apr 25, 2017 at 6:29 AM, Aaron Ballman wrote:
>> On Wed, Dec 7, 2016 at 9:13 PM, Bruno Cardoso Lopes via cfe-commits
>> wrote:
>>> Author: bruno
>>> Date: Wed Dec 7 20:13:56 2016
>>> New Revision: 289018
>>>
>>> URL: http://l
On Tue, Apr 25, 2017 at 6:29 AM, Aaron Ballman wrote:
> On Wed, Dec 7, 2016 at 9:13 PM, Bruno Cardoso Lopes via cfe-commits
> wrote:
>> Author: bruno
>> Date: Wed Dec 7 20:13:56 2016
>> New Revision: 289018
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=289018&view=rev
>> Log:
>> [Headers] E
On Tue, Apr 25, 2017 at 2:12 PM, Nico Weber wrote:
> On Tue, Apr 25, 2017 at 4:14 PM, David Majnemer
> wrote:
>
>>
>>
>> On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber wrote:
>>
>>> On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer <
>>> david.majne...@gmail.com> wrote:
>>>
On Tue, A
efriedma added a comment.
This should work correctly with alignment attributes, I think? IIRC those just
change the return value of getDeclAlign().
I agree it's a little fragile, but I don't have a good suggestion to avoid that.
https://reviews.llvm.org/D32456
_
On Tue, Apr 25, 2017 at 4:14 PM, David Majnemer
wrote:
>
>
> On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber wrote:
>
>> On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer > > wrote:
>>
>>>
>>>
>>> On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote:
>>>
On Mon, Apr 24, 2017 at 10:00 PM, David Maj
Author: kparzysz
Date: Tue Apr 25 15:51:51 2017
New Revision: 301361
URL: http://llvm.org/viewvc/llvm-project?rev=301361&view=rev
Log:
[Hexagon] Set -ffp-contract=fast at -O3 unless explicitly specified
Modified:
cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp
cfe/trunk/lib/Driver/ToolChains/
vsk added a comment.
In https://reviews.llvm.org/D32456#737273, @efriedma wrote:
> Err, that's not what I meant...
>
> If the alignment of a global in LLVM IR is "zero", it doesn't really mean
> zero. It means "guess the alignment I want based on the specified type of
> the global". And that'
Prazek added inline comments.
Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115
+ const auto *MakePairCall = Result.Nodes.getNodeAs("make_pair");
+ assert(InnerCtorCall || MakePairCall);
JDevlieghere wrote:
> It's highly recommended to put some kind of
efriedma added a comment.
Err, that's not what I meant...
If the alignment of a global in LLVM IR is "zero", it doesn't really mean zero.
It means "guess the alignment I want based on the specified type of the
global". And that's not a game we ever want to play when generating IR from
clang.
vsk added a comment.
In https://reviews.llvm.org/D32456#737228, @efriedma wrote:
> > If the alignment isn't explicitly set, it is initialized to 0.
>
> That's what I thought. I don't like this; clang should explicitly set an
> alignment for every global.
Ok, I will set this aside for now and
On Tue, Apr 25, 2017 at 11:42 AM, Nico Weber wrote:
> On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer
> wrote:
>
>>
>>
>> On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote:
>>
>>> On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer <
>>> david.majne...@gmail.com> wrote:
>>>
On Mon,
kuhar updated this revision to Diff 96622.
kuhar marked 4 inline comments as done.
kuhar added a comment.
Added const where possible, moved from if-else to ternary.
https://reviews.llvm.org/D32395
Files:
clang-tidy/modernize/UseEmplaceCheck.cpp
docs/ReleaseNotes.rst
docs/clang-tidy/checks
kuhar added a comment.
Thanks for the suggestions, Jonas. Fixed.
https://reviews.llvm.org/D32395
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
efriedma added a comment.
> If the alignment isn't explicitly set, it is initialized to 0.
That's what I thought. I don't like this; clang should explicitly set an
alignment for every global.
https://reviews.llvm.org/D32456
___
cfe-commits mailin
Author: cbertol
Date: Tue Apr 25 13:59:37 2017
New Revision: 301348
URL: http://llvm.org/viewvc/llvm-project?rev=301348&view=rev
Log:
Minor fix for distribute_parallel_for_num_threads_codegen on AARCH64
Modified:
cfe/trunk/test/OpenMP/distribute_parallel_for_num_threads_codegen.cpp
Modified:
On Tue, Apr 25, 2017 at 2:06 PM, David Majnemer
wrote:
>
>
> On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote:
>
>> On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer <
>> david.majne...@gmail.com> wrote:
>>
>>>
>>>
>>> On Mon, Apr 24, 2017 at 11:56 AM, Nico Weber
>>> wrote:
>>>
"Opting int
Author: davide
Date: Tue Apr 25 13:04:31 2017
New Revision: 301344
URL: http://llvm.org/viewvc/llvm-project?rev=301344&view=rev
Log:
[PGO/tests] Update comment to reflect reality.
Modified:
cfe/trunk/test/CodeGen/pgo-sample-thinlto-summary.c
Modified: cfe/trunk/test/CodeGen/pgo-sample-thinlt
teemperor created this revision.
As discussed in https://reviews.llvm.org/D30793, we have some unsafe calls to
`isConsumerInterestedIn()`. This patch implements Richard's suggestion (from
the inline comment) that we should track if we just deserialized an
declaration. If we just deserialized, w
On Tue, Apr 25, 2017 at 8:46 AM, Nico Weber wrote:
> On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer > wrote:
>
>>
>>
>> On Mon, Apr 24, 2017 at 11:56 AM, Nico Weber wrote:
>>
>>> "Opting into the conforming mode, /permissive-, during the series of VS
>>> 2017 update is a commitment to keeping
Author: davide
Date: Tue Apr 25 12:48:10 2017
New Revision: 301339
URL: http://llvm.org/viewvc/llvm-project?rev=301339&view=rev
Log:
[PGO] Update test now that we don't call IndirectCallPromotion.
Modified:
cfe/trunk/test/CodeGen/pgo-sample-thinlto-summary.c
Modified: cfe/trunk/test/CodeGen/
Arcoth updated this revision to Diff 96603.
Arcoth added a comment.
Small fix.
https://reviews.llvm.org/D32372
Files:
include/clang/Basic/DiagnosticASTKinds.td
lib/AST/ExprConstant.cpp
test/SemaCXX/constexpr-array-unknown-bound.cpp
Index: test/SemaCXX/constexpr-array-unknown-bound.cpp
==
arphaman added a comment.
Ping.
Repository:
rL LLVM
https://reviews.llvm.org/D28670
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
arphaman added a comment.
@emilio, you can request to merge this into 4.0.1 by using a script called
merge-request.sh
(http://lists.llvm.org/pipermail/llvm-dev/2017-March/111530.html).
Repository:
rL LLVM
https://reviews.llvm.org/D32348
___
cfe
Arcoth updated this revision to Diff 96594.
Arcoth marked 6 inline comments as done.
Arcoth added a comment.
Adjusted.
Implemented the changes suggested by Richard. The array-to-pointer decay
is now well-formed; the check was instead moved to the pointer
arithmetic facility.
https://reviews.l
NoQ accepted this revision.
NoQ added a comment.
This revision now requires changes to proceed.
This looks great, thanks a lot!
Repository:
rL LLVM
https://reviews.llvm.org/D30771
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lis
Author: arphaman
Date: Tue Apr 25 11:59:07 2017
New Revision: 301328
URL: http://llvm.org/viewvc/llvm-project?rev=301328&view=rev
Log:
[libclang] Check for a record declaration before a template specialization
Fixes PR32539.
Patch by Emilio Cobos Álvarez!
Differential Revision: https://reviews.
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301328: [libclang] Check for a record declaration before a
template specialization (authored by arphaman).
Changed prior to commit:
https://reviews.llvm.org/D32348?vs=96130&id=96590#toc
Repository:
r
arphaman added a comment.
Sure. You can ask Chris Lattner for commit access for future patches :)
https://reviews.llvm.org/D32348
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
emilio added a comment.
Sounds good to me, will do :)
Repository:
rL LLVM
https://reviews.llvm.org/D32389
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
emilio added a comment.
Yes, please! I've submitted a few patches, but still no commit access.
Thanks!
https://reviews.llvm.org/D32348
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit
JDevlieghere added inline comments.
Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115
+ const auto *MakePairCall = Result.Nodes.getNodeAs("make_pair");
+ assert(InnerCtorCall || MakePairCall);
It's highly recommended to put some kind of error message i
On Mon, Apr 24, 2017 at 10:00 PM, David Majnemer
wrote:
>
>
> On Mon, Apr 24, 2017 at 11:56 AM, Nico Weber wrote:
>
>> "Opting into the conforming mode, /permissive-, during the series of VS
>> 2017 update is a commitment to keeping your code base clean and to fixing
>> non-conforming constructs
Author: arphaman
Date: Tue Apr 25 10:13:42 2017
New Revision: 301315
URL: http://llvm.org/viewvc/llvm-project?rev=301315&view=rev
Log:
[index] Index type source info for class specializations
rdar://31758344
Modified:
cfe/trunk/lib/Index/IndexDecl.cpp
cfe/trunk/test/Index/Core/index-sour
mgorny created this revision.
Cover the sanitizer tests with COMPILER_RT_BUILD_SANITIZERS
conditional, and add COMPILER_RT_BUILD_XRAY conditional to the xray
tests. This makes it possible to do a pure-builtins build with tests
enabled.
Repository:
rL LLVM
https://reviews.llvm.org/D32489
File
yaron.keren accepted this revision.
yaron.keren added a comment.
This revision is now accepted and ready to land.
LGTM
https://reviews.llvm.org/D32486
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/list
teemperor updated this revision to Diff 96561.
teemperor added a comment.
- Now using unique_ptr instead of raw pointers.
https://reviews.llvm.org/D32486
Files:
lib/Frontend/PrintPreprocessedOutput.cpp
Index: lib/Frontend/PrintPreprocessedOutput.cpp
=
Anastasia added inline comments.
Comment at: lib/CodeGen/CGDecl.cpp:1105-1119
+ // Alloca always returns a pointer in alloca address space, which may
+ // be different from the type defined by the language. For example,
+ // in C++ the auto variables are in the default address
Author: arphaman
Date: Tue Apr 25 09:22:29 2017
New Revision: 301310
URL: http://llvm.org/viewvc/llvm-project?rev=301310&view=rev
Log:
[index] Record the 'SpecializationOf' relation for function specializations
rdar://31603531
Modified:
cfe/trunk/lib/Index/IndexDecl.cpp
cfe/trunk/test/In
yaron.keren added a comment.
Please move the =new out of the PP.AddPragmaHandler calls.
While at it, this code still (as the original) leaks the PragmaHandlers. These
should be deleted after RemovePragmaHandler or instead, simply use
std::unique_ptr.
https://reviews.llvm.org/D32486
xazax.hun added a comment.
In https://reviews.llvm.org/D30489#728945, @danielmarjamaki wrote:
> I would propose that I rename and cleanup RangeConstraintManager::uglyEval()
> and add it. When I tested it, the Z3 does not seem to handle this.
What do you mean by Z3 not handling this? I mean, if
teemperor created this revision.
The UnknownPragmaHandlers added by t`DoPrintPreprocessedInput` conflict with
the real PragmaHandlers from clang::Parser because they try to handle the same
`#pragma` directives. This makes it impossible to use a Preprocessor (that was
previously passed to DoPrin
malcolm.parsons added a comment.
In https://reviews.llvm.org/D32439#736631, @Serge_Preis wrote:
> What do you think?
Seems reasonable.
https://reviews.llvm.org/D32439
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/c
danielmarjamaki marked an inline comment as done.
danielmarjamaki added a comment.
Ping.
Repository:
rL LLVM
https://reviews.llvm.org/D30295
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cf
danielmarjamaki added a comment.
This revision now requires changes to proceed.
Ping. Any comments?
Repository:
rL LLVM
https://reviews.llvm.org/D30489
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/
danielmarjamaki added a comment.
Ping
Repository:
rL LLVM
https://reviews.llvm.org/D31029
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
On Wed, Dec 7, 2016 at 9:13 PM, Bruno Cardoso Lopes via cfe-commits
wrote:
> Author: bruno
> Date: Wed Dec 7 20:13:56 2016
> New Revision: 289018
>
> URL: http://llvm.org/viewvc/llvm-project?rev=289018&view=rev
> Log:
> [Headers] Enable #include_next on Darwin
>
> Allows darwin targets to provide
whisperity added inline comments.
Comment at: lib/AST/ASTContext.cpp:1497
+ auto FnUnitCacheEntry = FunctionAstUnitMap.find(MangledFnName);
+ if (FnUnitCacheEntry == FunctionAstUnitMap.end()) {
+if (FunctionFileMap.empty()) {
danielmarjamaki wrote:
> How ab
arphaman updated this revision to Diff 96538.
arphaman added a comment.
Now the patch takes the following situations into account:
- Enclose only the statement in a `case`.
- If the fixit has to enclose a declaration statement, then the fixit will try
to enclose the appropriate uses as well.
R
JonasToth added inline comments.
Comment at: docs/clang-tidy/checks/readability-strlen-argument.rst:8
+
+In the example code below the developer probably wanted to make room for an
extra char in the allocation but misplaced the addition.
+
danielmarjamaki wrote:
sdardis updated this revision to Diff 96533.
sdardis added a comment.
Rebase + ping.
https://reviews.llvm.org/D25866
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
test/Sema/vector-cast.c
test/Sema/vector-gc
salari01 abandoned this revision.
salari01 added a comment.
In https://reviews.llvm.org/D31496#721262, @rnk wrote:
> `-Wl,--defsym` is also a pretty common linker option. I'm hesitant to add
> this to the driver interface, since it seems like they could easily be
> confused.
I see. Was not aw
Serge_Preis added a comment.
In https://reviews.llvm.org/D32439#736503, @malcolm.parsons wrote:
> Is it possible to add a test for this change?
> There are some source range checks in test/Misc/ast-dump-decl.cpp
I looked into test/Misc/ast-dump-decl.cpp and other tests around, but they all
us
danielmarjamaki added inline comments.
Comment at: lib/AST/ASTContext.cpp:1495
+ ASTUnit *Unit = nullptr;
+ StringRef ASTFileName;
+ auto FnUnitCacheEntry = FunctionAstUnitMap.find(MangledFnName);
As far as I see you can move this ASTFileName declaration down.
Author: ismail
Date: Tue Apr 25 06:24:14 2017
New Revision: 301302
URL: http://llvm.org/viewvc/llvm-project?rev=301302&view=rev
Log:
Fix fuzzer.c test on platforms where CLANG_DEFAULT_CXX_STDLIB is libc++
Modified:
cfe/trunk/test/Driver/fuzzer.c
Modified: cfe/trunk/test/Driver/fuzzer.c
URL:
danielmarjamaki added inline comments.
Comment at: docs/clang-tidy/checks/readability-strlen-argument.rst:8
+
+In the example code below the developer probably wanted to make room for an
extra char in the allocation but misplaced the addition.
+
JonasToth wrote:
JonasToth added a comment.
> #include
> void dostuff(const char *P) {
>
> if (strncmp(P+2,"xyz",3)==0) {}
>
> }
>
>
Iam not super familiar with C, but the intend of the function is to check the
following:
P = "foxyz", P2 = "abxyz", P3 = "opxyz", ...
And if P matches this kind of st
danielmarjamaki added a comment.
I am thinking about making my check more strict so it only warns in
allocations. I believe the example code is much more motivating when there is
allocation.
In https://reviews.llvm.org/D32346#733430, @JonasToth wrote:
> My thoughts on the check added.
> Have
JonasToth added inline comments.
Comment at: docs/clang-tidy/checks/readability-strlen-argument.rst:8
+
+In the example code below the developer probably wanted to make room for an
extra char in the allocation but misplaced the addition.
+
when the intend was to
danielmarjamaki updated this revision to Diff 96526.
danielmarjamaki added a comment.
Fixed review comments. Made code examples and documentation more motivational.
Repository:
rL LLVM
https://reviews.llvm.org/D32346
Files:
clang-tidy/readability/CMakeLists.txt
clang-tidy/readability/Rea
Serge_Preis added a comment.
In https://reviews.llvm.org/D32439#736503, @malcolm.parsons wrote:
> Is it possible to add a test for this change?
> There are some source range checks in test/Misc/ast-dump-decl.cpp
Yes, I think testing is quite possible. I will take a look into
test/Misc/ast-d
malcolm.parsons added a comment.
Is it possible to add a test for this change?
There are some source range checks in test/Misc/ast-dump-decl.cpp
https://reviews.llvm.org/D32439
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llv
ismail abandoned this revision.
ismail added a comment.
compnerd has a better fix.
https://reviews.llvm.org/D32427
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
hokein updated this revision to Diff 96516.
hokein marked an inline comment as done.
hokein added a comment.
Fix doc.
https://reviews.llvm.org/D32436
Files:
clang-tidy/performance/InefficientVectorOperationCheck.cpp
clang-tidy/performance/InefficientVectorOperationCheck.h
docs/clang-tidy/
jtbandes created this revision.
Herald added a subscriber: klimek.
This is an attempt to fix the issue described in my recent email:
http://lists.llvm.org/pipermail/cfe-dev/2017-April/053632.html
After digging in for a while, I learned that:
- the spurious line breaks were occurring inside the
93 matches
Mail list logo