Re: [PATCH] D24626: [OpenCL] Diagnose assignment to dereference of half type pointer

2016-09-17 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! https://reviews.llvm.org/D24626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r281845 - [libFuzzer] use 'if guard' instead of 'if guard >= 0' with trace-pc; change the guard type to intptr_t; use separate array for 8-bit counters

2016-09-17 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Sat Sep 17 23:52:23 2016 New Revision: 281845 URL: http://llvm.org/viewvc/llvm-project?rev=281845=rev Log: [libFuzzer] use 'if guard' instead of 'if guard >= 0' with trace-pc; change the guard type to intptr_t; use separate array for 8-bit counters Modified:

Re: [PATCH] D24690: Replace __ANDROID__ with __BIONIC__.

2016-09-17 Thread Dan Albert via cfe-commits
danalbert added a comment. In https://reviews.llvm.org/D24690#545523, @compnerd wrote: > So, the only thing that Im confused about is where does `__BIONIC__` get > defined? It's in Bionic's ``, which gets pulled in via ``. Comment at: include/__config:340 @@ -339,3 +344,1

Re: [PATCH] D24666: [OpenCL] Allow half type kernel argument when cl_khr_fp16 is enabled

2016-09-17 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaDecl.cpp:7600 @@ +7599,3 @@ +// Do not diagnose half type since it is diagnosed as invalid argument +// type for any function eleswhere. +if (!PT->isHalfType()) -> elsewhere

Re: [PATCH] D24690: Replace __ANDROID__ with __BIONIC__.

2016-09-17 Thread Eric Fiselier via cfe-commits
EricWF added inline comments. Comment at: include/__config:340 @@ -339,3 +344,1 @@ #if !defined(_LIBCPP_HAS_MUSL_LIBC) -# include -#if __GLIBC_PREREQ(2, 15) What happened to this include? I believe it's needed to get `__GLIBC_PREREQ`. Repository: rL LLVM

Re: [PATCH] D24703: [clang-format] BreakBeforeBinaryOperations and AlignAfterOpenBracket conflict, bug 30304

2016-09-17 Thread Daniel Jasper via cfe-commits
djasper added a comment. I think, this is the wrong fix. Instead, a || (Left.is(TT_TemplateOpener) && !Right.is(TT_TemplateCloser)) should be added to the last return statement of this function. Also, could you please add a test in unittests/Format/FormatTest.cpp.

Re: [PATCH] D24010: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue

2016-09-17 Thread Pirama Arumuga Nainar via cfe-commits
pirama added a comment. Ping... I am not the author of this patch, but am interested in seeing the issue fixed :) https://reviews.llvm.org/D24010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r281816 - clang-format: [JS] Fix a crash in handledTemplateStrings.

2016-09-17 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Sat Sep 17 02:20:36 2016 New Revision: 281816 URL: http://llvm.org/viewvc/llvm-project?rev=281816=rev Log: clang-format: [JS] Fix a crash in handledTemplateStrings. Modified: cfe/trunk/lib/Format/FormatTokenLexer.cpp cfe/trunk/unittests/Format/FormatTestJS.cpp

Re: [PATCH] D24307: calculate extent size for memory regions allocated by C++ new expression

2016-09-17 Thread Artem Dergachev via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Looks good! Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:291 @@ +290,3 @@ + static ProgramStateRef addExtentSize(CheckerContext , +

Re: [PATCH] D24663: When replacements have the same offset, make replacements with smaller length order first in the set.

2016-09-17 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL281819: When replacements have the same offset, make replacements with smaller length… (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24663?vs=71730=71731#toc Repository:

Re: [PATCH] D24663: When replacements have the same offset, make replacements with smaller length order first in the set.

2016-09-17 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: lib/Tooling/Core/Replacement.cpp:407 @@ -409,3 +406,3 @@ bool Result = true; - for (Replacements::const_iterator I = Replaces.begin(), -

Re: [PATCH] D24663: When replacements have the same offset, make replacements with smaller length order first in the set.

2016-09-17 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 71729. ioeric marked an inline comment as done. ioeric added a comment. - Use auto. https://reviews.llvm.org/D24663 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp Index: lib/Tooling/Core/Replacement.cpp

Re: [PATCH] D24663: When replacements have the same offset, make replacements with smaller length order first in the set.

2016-09-17 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 71730. ioeric added a comment. - Format code properly. https://reviews.llvm.org/D24663 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp Index: lib/Tooling/Core/Replacement.cpp

r281819 - When replacements have the same offset, make replacements with smaller length order first in the set.

2016-09-17 Thread Eric Liu via cfe-commits
Author: ioeric Date: Sat Sep 17 07:26:42 2016 New Revision: 281819 URL: http://llvm.org/viewvc/llvm-project?rev=281819=rev Log: When replacements have the same offset, make replacements with smaller length order first in the set. Summary: No behavioral change intended. The change makes

Re: [PATCH] D24609: [ARM] Add missing Interlocked intrinsics

2016-09-17 Thread Martin Storsjö via cfe-commits
mstorsjo added inline comments. Comment at: lib/Headers/intrin.h:504 @@ +503,3 @@ +_interlockedbittestandset_acq(long volatile *_BitBase, long _BitPos) { + long _PrevVal = __atomic_fetch_or(_BitBase, 1l << _BitPos, __ATOMIC_ACQUIRE); + return (_PrevVal >> _BitPos) & 1;

[clang-tools-extra] r281826 - [clang-rename] Fix handling of unchanged files

2016-09-17 Thread Alexander Shaposhnikov via cfe-commits
Author: alexshap Date: Sat Sep 17 12:08:47 2016 New Revision: 281826 URL: http://llvm.org/viewvc/llvm-project?rev=281826=rev Log: [clang-rename] Fix handling of unchanged files Fix the output of clang-rename for the files without modifications. Update the code in

[PATCH] clang-format: Adding two new format options.

2016-09-17 Thread Robin Sommer via cfe-commits
**SpacesAroundConditions** (``bool``) If ``true``, spaces will be inserted around if/for/while conditions. **SpacesAfterNot** (``bool``) If ``true``, spaces will be inserted after ``!``. --- docs/ClangFormatStyleOptions.rst | 6 ++ include/clang/Format/Format.h| 8

Re: [PATCH] D24361: hasDeclaration(qualType(...)) matcher should unwrap ElaboratedType and TemplateSpecializationType

2016-09-17 Thread Łukasz Anforowicz via cfe-commits
lukasza added a comment. Richard, could you please take a look? Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:750 @@ +749,3 @@ +else if (auto *ET = Node->getAs()) + return matchesSpecialized(ET->getNamedType(), Finder, Builder); +else if (auto *TST =