[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2016-12-16 Thread Tony Jiang via Phabricator via cfe-commits
jtony added inline comments. Comment at: llvm/include/llvm/ADT/APFloat.h:800 - void makeLargest(bool Neg) { getIEEE().makeLargest(Neg); } + void makeLargest(bool Neg) { +if (usesLayout(getSemantics())) { I know it is allowed to return a void function

Re: [libcxx] r289963 - [CMake] Put headers relative to clang

2016-12-16 Thread Evgenii Stepanov via cfe-commits
FTR, buildbot logs: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/2585/steps/test%20tsan%20in%20debug%20compiler-rt%20build/logs/stdio External project cmake error log: CMake Error at include/CMakeLists.txt:15 (file): file COPY cannot make directory

Re: [libcxx] r289963 - [CMake] Put headers relative to clang

2016-12-16 Thread Evgenii Stepanov via cfe-commits
Hi, this is using LLVM_BINARY_DIR when NOT LIBCXX_USING_INSTALLED_LLVM. HandleOutOfTreeLLVM.cmake defines LLVM_BINARY_DIR only when LIBCXX_USING_INSTALLED_LLVM. Is it supposed to come from the user cmake arguments? This broke sanitizer tests on Linux (check-tsan, check-msan). See

r290025 - [libclang] Remove the 'extern "C"' blocks from the implementation files.

2016-12-16 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Fri Dec 16 19:09:40 2016 New Revision: 290025 URL: http://llvm.org/viewvc/llvm-project?rev=290025=rev Log: [libclang] Remove the 'extern "C"' blocks from the implementation files. These are unnecessary, the declarations already carry the 'extern C' property, and if

r290023 - [analyzer] UnixAPIChecker: Don't diagnose for functions in C++ namespaces

2016-12-16 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Fri Dec 16 19:08:17 2016 New Revision: 290023 URL: http://llvm.org/viewvc/llvm-project?rev=290023=rev Log: [analyzer] UnixAPIChecker: Don't diagnose for functions in C++ namespaces Update the UnixAPIChecker to not diagnose for calls to functions that are declared in C++

[PATCH] D27836: Store the "current position" index within the ASTRecordReader.

2016-12-16 Thread Richard Smith via Phabricator via cfe-commits
rsmith added a comment. I like moving `Idx` into the reader, but I have mixed feelings about the iterator-like interface. For consistency with the rest of the `ASTRecordReader` interface, and with how we model the writer side, I think perhaps `Record.ReadInt()` would fit better than using

Re: r289995 - [libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType

2016-12-16 Thread Argyrios Kyrtzidis via cfe-commits
Yes, I see, thanks Reid! I’d just remove the 'extern "C” {‘ from the cpp file, which is not really necessary, I’ll do it in a subsequent commit anyway. > On Dec 16, 2016, at 4:48 PM, Yung, Douglas wrote: > > I think Reid already fixed the problem in r290009. > >

Re: r289995 - [libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType

2016-12-16 Thread Argyrios Kyrtzidis via cfe-commits
Looking into.. > On Dec 16, 2016, at 3:13 PM, Yung, Douglas wrote: > > Hi, this change seems to be causing the PS4 Windows build bot to be red, can > you take a look? > > http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/2784 > >

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2016-12-16 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: llvm/include/llvm/ADT/APFloat.h:773 + return U.IEEE.makeZero(Neg); +} else if (usesLayout(getSemantics())) { + return U.Double.makeZero(Neg); You don't need else after return.

[PATCH] D27872: [APFloat] Switch from (PPCDoubleDoubleImpl, IEEEdouble) layout to (IEEEdouble, IEEEdouble)

2016-12-16 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. timshen added reviewers: hfinkel, kbarton, iteratee, echristo. timshen added subscribers: llvm-commits, cfe-commits. Herald added subscribers: nemanjai, mehdi_amini. This patch changes the layout of DoubleAPFloat, and adjust all operations to do either: 1.

LLVM buildmaster will be restarted tonight

2016-12-16 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 5 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D21626: Lit C++11 Compatibility Patch #10

2016-12-16 Thread Charles Li via Phabricator via cfe-commits
tigerleapgorge updated this revision to Diff 81817. tigerleapgorge added a comment. Previous update contain typos in the RUN lines of test/SemaCXX/virtual-base-used.cpp This has been corrected in this latest revision. https://reviews.llvm.org/D21626 Files:

[PATCH] D21626: Lit C++11 Compatibility Patch #10

2016-12-16 Thread Charles Li via Phabricator via cfe-commits
tigerleapgorge updated this revision to Diff 81810. tigerleapgorge added a comment. Update patch to match latest Clang C++11 diagnostics. 2 tests are changed. test/SemaCXX/PR9572.cpp Expect the following additional Note following existing Error. destructor of 'Foo' is implicitly deleted

r290009 - Fix MSVC build of libclang after r288438

2016-12-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Dec 16 17:44:44 2016 New Revision: 290009 URL: http://llvm.org/viewvc/llvm-project?rev=290009=rev Log: Fix MSVC build of libclang after r288438 Modified: cfe/trunk/tools/libclang/CXType.cpp Modified: cfe/trunk/tools/libclang/CXType.cpp URL:

r290010 - Added clangLex to the dependencies for clang-import-test.

2016-12-16 Thread Sean Callanan via cfe-commits
Author: spyffe Date: Fri Dec 16 17:45:03 2016 New Revision: 290010 URL: http://llvm.org/viewvc/llvm-project?rev=290010=rev Log: Added clangLex to the dependencies for clang-import-test. This is part of the effort to get the i686-mingw32-RA-on-linux bot to like clang-import-test. Modified:

r290008 - Add explicit triple to test to fix arm bots.

2016-12-16 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Dec 16 17:43:51 2016 New Revision: 290008 URL: http://llvm.org/viewvc/llvm-project?rev=290008=rev Log: Add explicit triple to test to fix arm bots. Modified: cfe/trunk/test/CodeGen/dbg-const-int128.c Modified: cfe/trunk/test/CodeGen/dbg-const-int128.c URL:

r290006 - Fixed library dependencies on clang-import-test to clean up the bots.

2016-12-16 Thread Sean Callanan via cfe-commits
Author: spyffe Date: Fri Dec 16 17:34:16 2016 New Revision: 290006 URL: http://llvm.org/viewvc/llvm-project?rev=290006=rev Log: Fixed library dependencies on clang-import-test to clean up the bots. Modified: cfe/trunk/tools/clang-import-test/CMakeLists.txt Modified:

[PATCH] D27180: Testbed and skeleton of a new expression parser

2016-12-16 Thread Sean Callanan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290004: Testbed and skeleton of a new expression parser (authored by spyffe). Changed prior to commit: https://reviews.llvm.org/D27180?vs=81803=81807#toc Repository: rL LLVM

r290004 - Testbed and skeleton of a new expression parser

2016-12-16 Thread Sean Callanan via cfe-commits
Author: spyffe Date: Fri Dec 16 17:21:38 2016 New Revision: 290004 URL: http://llvm.org/viewvc/llvm-project?rev=290004=rev Log: Testbed and skeleton of a new expression parser LLVM's JIT is now the foundation of dynamic-compilation features for many languages. Clang also has low-level support

[PATCH] D27180: Testbed and skeleton of a new expression parser

2016-12-16 Thread Sean Callanan via Phabricator via cfe-commits
spyffe updated this revision to Diff 81803. spyffe added a comment. Updated CMakeFiles to fix dependencies. - Fixed dependencies on `gen_intrinsics` - Added a testsuite dependency on clang-import-test Repository: rL LLVM https://reviews.llvm.org/D27180 Files: test/CMakeLists.txt

RE: r289995 - [libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType

2016-12-16 Thread Yung, Douglas via cfe-commits
Hi, this change seems to be causing the PS4 Windows build bot to be red, can you take a look? http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/2784 C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP -DCLANG_ENABLE_ARCMT

[PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D27858#625367, @thakis wrote: > Did you measure what this does to link times? I've measured now, and it's pretty bad. Times to link blink_core increase by 39% with -fstandalone-debug (211s -> 294s). I still think it's what we should do by

Re: [PATCH] D27827: [ObjC] CodeGen support for @available on macOS

2016-12-16 Thread Nico Weber via cfe-commits
https://developer.apple.com/library/content/releasenotes/General/CarbonCoreDeprecations/index.html#//apple_ref/doc/uid/TP40012224-CH1-SW16 explicitly suggests sysctl as replacement when targeting 10.8+, which strongly suggests that it'll work. On Fri, Dec 16, 2016 at 4:37 PM, Erik Pilkington via

Re: [PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Nico Weber via cfe-commits
Won't that make is_win_fastlink builds slow to link? And if we do this, then this change here makes a then-not-very-tested config the default. (I don't have a problem with this patch, go ahead and land if you think it's the way to go. Just wondering aloud.) On Fri, Dec 16, 2016 at 4:39 PM, Reid

[PATCH] D27837: Add fix-it notes to the nullability consistency warning

2016-12-16 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose updated this revision to Diff 81796. jordan_rose added a comment. Updated names to match LLVM style. Repository: rL LLVM https://reviews.llvm.org/D27837 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaType.cpp test/FixIt/Inputs/nullability.h

Re: r289991 - Revert r289979 due to regressions

2016-12-16 Thread Reid Kleckner via cfe-commits
This revert broke the build because you failed to resolve conflicts in include/clang/Basic/OpenCLOptions.h caused by r289985. I've reverted that file in r289997. On Fri, Dec 16, 2016 at 1:23 PM, Yaxun Liu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: yaxunl > Date: Fri Dec 16

r289997 - Really revert all changes from r289979. Apparently conflict resolution failed

2016-12-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Dec 16 16:11:28 2016 New Revision: 289997 URL: http://llvm.org/viewvc/llvm-project?rev=289997=rev Log: Really revert all changes from r289979. Apparently conflict resolution failed Modified: cfe/trunk/include/clang/Basic/OpenCLOptions.h Modified:

r289996 - IRGen: Fix assertion failure when creating debug info for an integer constant wider than 64 bits.

2016-12-16 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Dec 16 16:10:52 2016 New Revision: 289996 URL: http://llvm.org/viewvc/llvm-project?rev=289996=rev Log: IRGen: Fix assertion failure when creating debug info for an integer constant wider than 64 bits. Added: cfe/trunk/test/CodeGen/dbg-const-int128.c Modified:

r289995 - [libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType

2016-12-16 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Fri Dec 16 15:40:16 2016 New Revision: 289995 URL: http://llvm.org/viewvc/llvm-project?rev=289995=rev Log: [libclang] Restore the CXXRecordDecl path for clang_Type_getNumTemplateArguments and clang_Type_getTemplateArgumentAsType Patch by Emilio Cobos Álvarez! See

[PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D27858#625367, @thakis wrote: > Did you measure what this does to link times? No, but I plan to recover it in Chromium by doing something like: if (is_win && is_clang && !is_win_fastlink) { cflags += ["-flimit-debug-info"] }

[PATCH] D27827: [ObjC] CodeGen support for @available on macOS

2016-12-16 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. I seem to remember that mapping from kernel versions to marketing versions was tossed around as a potential alternative to Gestalt. I think that the problem was Apple sometimes introduces (or reserves the right to introduce) new SDKs in a patch release (ie, Z

r289991 - Revert r289979 due to regressions

2016-12-16 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Dec 16 15:23:55 2016 New Revision: 289991 URL: http://llvm.org/viewvc/llvm-project?rev=289991=rev Log: Revert r289979 due to regressions Removed: cfe/trunk/test/CodeGenOpenCL/extension-begin.cl cfe/trunk/test/SemaOpenCL/extension-begin.cl Modified:

r289990 - [Sema] Transform the default arguments of a lambda expression when the

2016-12-16 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Fri Dec 16 15:16:57 2016 New Revision: 289990 URL: http://llvm.org/viewvc/llvm-project?rev=289990=rev Log: [Sema] Transform the default arguments of a lambda expression when the lambda expression is instantiated. Rather than waiting until Sema::CheckCXXDefaultArgExpr tries

[PATCH] D23096: [Sema] Pass CombineWithOuterScope = true to constructor of LocalInstantiationScope

2016-12-16 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289990: [Sema] Transform the default arguments of a lambda expression when the (authored by ahatanak). Changed prior to commit: https://reviews.llvm.org/D23096?vs=81171=81787#toc Repository: rL LLVM

[PATCH] D26453: [clang-tidy] Remove duplicated check from move-constructor-init

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D26453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D27821: [OpenMP] support is_device_ptr clause with 'target parallel' pragma

2016-12-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289989: [OpenMP] support the 'is_device_ptr' clause with 'target parallel' pragma (authored by kli). Changed prior to commit: https://reviews.llvm.org/D27821?vs=81627=81785#toc Repository: rL LLVM

r289989 - [OpenMP] support the 'is_device_ptr' clause with 'target parallel' pragma

2016-12-16 Thread Kelvin Li via cfe-commits
Author: kli Date: Fri Dec 16 14:50:46 2016 New Revision: 289989 URL: http://llvm.org/viewvc/llvm-project?rev=289989=rev Log: [OpenMP] support the 'is_device_ptr' clause with 'target parallel' pragma This patch is to add support of the 'is_device_ptr' clause in the 'target parallel' pragma.

[PATCH] D27815: [clang-tidy] Add obvious module for obvious bugs

2016-12-16 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added a comment. The provided example (typoing "i" for "j") sounds like the sort of thing that PVS-Studio catches; maybe see what wording they use for that kind of mistake? Without investigating, I would suggest "cut-and-paste-error" or "likely-typo". However, the attached patch

[PATCH] D20710: Lit C++11 Compatibility Patch #9

2016-12-16 Thread Charles Li via Phabricator via cfe-commits
tigerleapgorge updated this revision to Diff 81784. tigerleapgorge added a comment. Forgot to include all context inside the previous revision. Previous patch: svn diff This patch:svn diff --diff-cmd=diff -x -U99 https://reviews.llvm.org/D20710 Files:

r289986 - Remove the temporary fix to the RUN line that was committed in r289924.

2016-12-16 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Fri Dec 16 14:25:11 2016 New Revision: 289986 URL: http://llvm.org/viewvc/llvm-project?rev=289986=rev Log: Remove the temporary fix to the RUN line that was committed in r289924. Also, dump the AST and run FileCheck to make sure the expected nodes are created in the AST.

[PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Did you measure what this does to link times? https://reviews.llvm.org/D27858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r289985 - Fix clang build

2016-12-16 Thread Zachary Turner via cfe-commits
Author: zturner Date: Fri Dec 16 13:49:14 2016 New Revision: 289985 URL: http://llvm.org/viewvc/llvm-project?rev=289985=rev Log: Fix clang build Modified: cfe/trunk/include/clang/Basic/OpenCLOptions.h Modified: cfe/trunk/include/clang/Basic/OpenCLOptions.h URL:

[PATCH] D27627: Allow target to specify default address space for codegen

2016-12-16 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D27627#621533, @yaxunl wrote: > In https://reviews.llvm.org/D27627#621473, @rjmccall wrote: > > > In https://reviews.llvm.org/D27627#619928, @yaxunl wrote: > > > > > > Because, notably, if you do that, then an attempt to pass as an int* > > >

[PATCH] D27858: Default to standalone debug info on Windows

2016-12-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk created this revision. rnk added reviewers: thakis, hans, dblaikie. rnk added a subscriber: cfe-commits. PDB-based debuggers do not support looking up type names across type stream boundaries. There are two ways where users end up being unable to look into variables with types that were

r289984 - Revert "Update for LLVM global variable debug info API change."

2016-12-16 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Fri Dec 16 13:39:18 2016 New Revision: 289984 URL: http://llvm.org/viewvc/llvm-project?rev=289984=rev Log: Revert "Update for LLVM global variable debug info API change." This reverts commit r289921. Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

[PATCH] D27837: Add fix-it notes to the nullability consistency warning

2016-12-16 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8772 +def note_nullability_fix_it : Note< + "insert '%select{_Nonnull|_Nullable|_Null_unspecified}0' if the " + "%select{pointer|block pointer|member pointer|array parameter}1 "

[PATCH] D21698: [OpenCL] Allow disabling types and declarations associated with extensions

2016-12-16 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. yaxunl marked 2 inline comments as done. Closed by commit rL289979: [OpenCL] Allow disabling types and declarations associated with extensions (authored by yaxunl). Changed prior to commit:

r289979 - [OpenCL] Allow disabling types and declarations associated with extensions

2016-12-16 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Dec 16 13:22:08 2016 New Revision: 289979 URL: http://llvm.org/viewvc/llvm-project?rev=289979=rev Log: [OpenCL] Allow disabling types and declarations associated with extensions Added a map to associate types and declarations with extensions. Refactored existing

[PATCH] D26137: [clang-tidy] Add check name to YAML export

2016-12-16 Thread Alpha Abdoulaye via Phabricator via cfe-commits
Alpha updated this revision to Diff 81779. Alpha added a comment. It was tested against the clang extra unit tests, but not tests run with check-clang-tools. Updated Yaml test files to match the new format, this might need further review. Repository: rL LLVM https://reviews.llvm.org/D26137

[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

2016-12-16 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/obvious/InvalidRangeCheck.cpp:20-36 +"std::for_each; std::find; std::find_if; std::find_end; " +"std::find_first_of; std::adjacent_find; std::count; std::count_if;" +"std::mismatch; std::equal; std::search;

[PATCH] D20710: Lit C++11 Compatibility Patch #9

2016-12-16 Thread Charles Li via Phabricator via cfe-commits
tigerleapgorge updated this revision to Diff 81776. tigerleapgorge added a comment. Lit C++11 compatibility patch #9 Update patch again to expect for latest Trunk C++11 diagnostics. Tests in CXX directory are already passing in C++11, so they are removed from this patch. Of the remaining tests,

[PATCH] D27815: [clang-tidy] Add obvious module for obvious bugs

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D27815#625271, @Prazek wrote: > In https://reviews.llvm.org/D27815#625102, @aaron.ballman wrote: > > > I am really not keen on the name "obvious" for this module. What is obvious > > to one person is not always obvious to another. Also,

[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

2016-12-16 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek marked an inline comment as done. Prazek added inline comments. Comment at: clang-tidy/obvious/InvalidRangeCheck.cpp:20-36 +"std::for_each; std::find; std::find_if; std::find_end; " +"std::find_first_of; std::adjacent_find; std::count; std::count_if;" +

[PATCH] D27815: [clang-tidy] Add obvious module for obvious bugs

2016-12-16 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. In https://reviews.llvm.org/D27815#625102, @aaron.ballman wrote: > I am really not keen on the name "obvious" for this module. What is obvious > to one person is not always obvious to another. Also, if the checks are > finding *obvious bugs*, then that suggests they

[PATCH] D27849: crash in MallocChecker

2016-12-16 Thread Devin Coughlin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289970: [analyzer] Fix crash in MallocChecker. (authored by dcoughlin). Changed prior to commit: https://reviews.llvm.org/D27849?vs=81751=81774#toc Repository: rL LLVM

r289970 - [analyzer] Fix crash in MallocChecker.

2016-12-16 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Fri Dec 16 12:41:40 2016 New Revision: 289970 URL: http://llvm.org/viewvc/llvm-project?rev=289970=rev Log: [analyzer] Fix crash in MallocChecker. Fix a crash in the MallocChecker when the extent size for the argument to new[] is not known. A patch by Abramo Bagnara and

[PATCH] D21698: [OpenCL] Allow disabling types and declarations associated with extensions

2016-12-16 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 3 inline comments as done. yaxunl added a comment. In https://reviews.llvm.org/D21698#624967, @Anastasia wrote: > LGTM! Small nitpicks below can be done before committing. Also it would be > nice to double check the compile time is still fine after the last rebase. Thanks. I did

Re: r288493 - [ClangFormat] Only insert #include into the #include block in the beginning of the file.

2016-12-16 Thread Mehdi Amini via cfe-commits
Hi Eric, > On Dec 2, 2016, at 3:01 AM, Eric Liu via cfe-commits > wrote: > > Author: ioeric > Date: Fri Dec 2 05:01:43 2016 > New Revision: 288493 > > URL: http://llvm.org/viewvc/llvm-project?rev=288493=rev > Log: > [ClangFormat] Only insert #include into the

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-12-16 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. And thank you for the awesome work and addressing the review comments!!! https://reviews.llvm.org/D25660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-12-16 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. > I am doing it right now. Unfortunately I found a crash which I fixed, Is it fixed in this patch? > but then it turned out that overwrites of the iterator variable are not > handled. I am working on this > problem. My suggestion is to commit this patch and

[libcxx] r289963 - [CMake] Put headers relative to clang

2016-12-16 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Fri Dec 16 11:30:51 2016 New Revision: 289963 URL: http://llvm.org/viewvc/llvm-project?rev=289963=rev Log: [CMake] Put headers relative to clang When libcxx isn't building with an installed LLVM we copy the libcxx headers into the LLVM build directory so that a clang in

[PATCH] D27854: [analyzer] Add check for mutex acquisition during interrupt context in Magenta kernel

2016-12-16 Thread Kareem Khazem via Phabricator via cfe-commits
khazem created this revision. khazem added reviewers: dcoughlin, dergachev.a. khazem added subscribers: cfe-commits, phosek, seanklein. Herald added a subscriber: mgorny. Acquiring a mutex during the Magenta kernel exception handler can cause deadlocks and races. This patch adds a checker that

[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps

2016-12-16 Thread Graydon Hoare via Phabricator via cfe-commits
graydon created this revision. graydon added reviewers: manmanren, doug.gregor. graydon added a subscriber: cfe-commits. The module system supports accompanying a primary module (say Foo) with an auxiliary "private" module (defined in an adjacent module.private.modulemap file) that augments the

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 81763. hokein added a comment. Update outdated comment. https://reviews.llvm.org/D27673 Files: clang-move/CMakeLists.txt clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/HelperDeclRefGraph.cpp clang-move/HelperDeclRefGraph.h

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Thanks for the awesome suggestions on the names. I refactored the patch, hope it is clearer now. Comment at: clang-move/UsedHelperDeclFinder.cpp:30 + Result = FD; + if (const auto *RD = dyn_cast(FD->getParent())) +Result = RD;

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 81762. hokein marked 3 inline comments as done. hokein added a comment. refactoring the patch. https://reviews.llvm.org/D27673 Files: clang-move/CMakeLists.txt clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/HelperDeclRefGraph.cpp

[PATCH] D27815: [clang-tidy] Add obvious module for obvious bugs

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I am really not keen on the name "obvious" for this module. What is obvious to one person is not always obvious to another. Also, if the checks are finding *obvious bugs*, then that suggests they should be implemented in the clang frontend rather than a tool that

[PATCH] D27837: Add fix-it notes to the nullability consistency warning

2016-12-16 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8772 +def note_nullability_fix_it : Note< + "insert '%select{_Nonnull|_Nullable|_Null_unspecified}0' if the " + "%select{pointer|block pointer|member pointer|array parameter}1 "

[PATCH] D27832: Add -plugin-opt=sample-profile for thinLTO build.

2016-12-16 Thread Dehao Chen via Phabricator via cfe-commits
danielcdh updated this revision to Diff 81759. danielcdh added a comment. add a test. https://reviews.llvm.org/D27832 Files: lib/Driver/Tools.cpp test/Driver/gold-lto-samplepgo.c Index: test/Driver/gold-lto-samplepgo.c ===

[clang-tools-extra] r289952 - [include-fixer] Desugar incomplete types.

2016-12-16 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Dec 16 10:09:06 2016 New Revision: 289952 URL: http://llvm.org/viewvc/llvm-project?rev=289952=rev Log: [include-fixer] Desugar incomplete types. This will look through typedefs so include-fixer will look up the target of the typedef instead of the typedef itself (which is

[PATCH] D26530: Fix the spelling of 'bitfield' in diagnostics to be consistently 'bit-field'.

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! This is the way it is spelled in the C and C++ standards as well. https://reviews.llvm.org/D26530

[PATCH] D27837: Add fix-it notes to the nullability consistency warning

2016-12-16 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8772 +def note_nullability_fix_it : Note< + "insert '%select{_Nonnull|_Nullable|_Null_unspecified}0' if the " + "%select{pointer|block pointer|member pointer|array parameter}1 "

r289786 - [ARM] Implement execute-only support in CodeGen

2016-12-16 Thread Prakhar Bahuguna via cfe-commits
Author: prakhar Date: Thu Dec 15 01:59:24 2016 New Revision: 289786 URL: http://llvm.org/viewvc/llvm-project?rev=289786=rev Log: [ARM] Implement execute-only support in CodeGen Summary: This implements execute-only support for ARM code generation, which prevents the compiler from generating data

[PATCH] D27165: Add format_dynamic_key_arg attribute to improve "-Wformat" warnings for functions that load the formatting string dynamically based on a key value

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:862 +def FormatDynamicKeyArg : InheritableAttr { + let Spellings = [GCC<"format_dynamic_key_arg">]; + let Args = [IntArgument<"FormatIdx">]; Does GCC support this attribute as well?

[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

2016-12-16 Thread Stanisław Barzowski via Phabricator via cfe-commits
sbarzowski added inline comments. Comment at: clang-tidy/obvious/InvalidRangeCheck.cpp:20-36 +"std::for_each; std::find; std::find_if; std::find_end; " +"std::find_first_of; std::adjacent_find; std::count; std::count_if;" +"std::mismatch; std::equal; std::search;

[PATCH] D27163: Introduce -f[no-]strict-return flag that controls code generation for C++'s undefined behaviour return optimisation

2016-12-16 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: include/clang/Driver/Options.td:1324 + HelpText<"Use C++ undefined behaviour optimization for control flow paths" + "that reach the end of the function without executing a required return">; +def fno_strict_return : Flag<["-"],

[PATCH] D25866: [Sema] Support implicit scalar to vector conversions

2016-12-16 Thread Simon Dardis via Phabricator via cfe-commits
sdardis added inline comments. Comment at: lib/Sema/SemaExpr.cpp:8051 + if (!LHSVecType) { +assert(RHSVecType && "RHSVecType is not a vector!"); if (!tryVectorConvertAndSplat(*this, (IsCompAssign ? nullptr : ), bruno wrote: > `tryVectorConvertAndSplat`

[PATCH] D27163: Introduce -f[no-]strict-return flag that controls code generation for C++'s undefined behaviour return optimisation

2016-12-16 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: lib/CodeGen/CodeGenFunction.cpp:1078 + QualType T = FD->getReturnType(); + if (T.isTriviallyCopyableType(Context)) { +// Avoid the optimization for functions that return trivially copyable rjmccall wrote: >

[PATCH] D25866: [Sema] Support implicit scalar to vector conversions

2016-12-16 Thread Simon Dardis via Phabricator via cfe-commits
sdardis updated this revision to Diff 81755. sdardis marked an inline comment as done. sdardis added a comment. Addressed review comments, fixed assertion issue with expressions like scalar -= vector. https://reviews.llvm.org/D25866 Files: include/clang/Basic/DiagnosticSemaKinds.td

[PATCH] D27163: Introduce -f[no-]strict-return flag that controls code generation for C++'s undefined behaviour return optimisation

2016-12-16 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. In https://reviews.llvm.org/D27163#623811, @majnemer wrote: > My 2 cents: If making this a target-specific default is not OK, why not turn > on -fno-strict-return if -fapple-kext is specified? I believe that would > cover the critical use case in question. We've had

[PATCH] D14274: Add alloc_size attribute to clang

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I still think that this looks good, so if @rsmith doesn't comment over the weekend, you can go ahead and commit on Monday -- we can handle any feedback in post-commit review. Comment at: include/clang/Basic/AttrDocs.td:240 + Specifically,

[PATCH] D27850: [libcxx] add missing constexpr to optional::value_or

2016-12-16 Thread S. B. Tam via Phabricator via cfe-commits
cpplearner created this revision. cpplearner added reviewers: mclow.lists, EricWF, howard.hinnant. cpplearner added a subscriber: cfe-commits. See https://github.com/cplusplus/draft/pull/839 and https://github.com/cplusplus/fundamentals-ts/pull/73. https://reviews.llvm.org/D27850 Files:

[PATCH] D26800: [Sema] Make __attribute__((notnull)) inheritable through function parameters

2016-12-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Modulo the comment from @ahatanak, I think this looks good. Once you have addressed that comment, I can commit for you. https://reviews.llvm.org/D26800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Code is almost good. I'm just still a bit confused by names. Comment at: clang-move/ClangMove.cpp:459 // - auto InOldCCNamedOrGlobalNamespace = -

[PATCH] D27569: [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand.

2016-12-16 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/queue_t_overload.cl:10 + foo(0, src2); + foo(q, src3); // expected-error {{call to 'foo' is ambiguous}} +} could we also add something non-convertible for queue i.e. foo(1, src3);

[PATCH] D21698: [OpenCL] Allow disabling types and declarations associated with extensions

2016-12-16 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Small nitpicks below can be done before committing. Also it would be nice to double check the compile time is still fine after the last rebase. Thanks! Comment

[PATCH] D27569: [OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand.

2016-12-16 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 81742. echuraev marked 3 inline comments as done. https://reviews.llvm.org/D27569 Files: include/clang/AST/OperationKinds.def include/clang/Sema/Initialization.h include/clang/Sema/Overload.h lib/AST/ExprConstant.cpp lib/CodeGen/CGExprAgg.cpp

[PATCH] D27440: clang-format-vsix: fail when clang-format outputs to stderr

2016-12-16 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Yes.. return non-zero seems right. This is an error condition. https://reviews.llvm.org/D27440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:492 + isDefinition(), unless(InMovedClass), InOldCC, + anyOf(isStaticStorageClass(), hasParent(namespaceDecl(isAnonymous(); + auto HelperFuncOrVar =

[PATCH] D27673: [clang-move] Only move used helper declarations.

2016-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 81741. hokein marked 15 inline comments as done. hokein added a comment. - address code review comments - add more tests https://reviews.llvm.org/D27673 Files: clang-move/CMakeLists.txt clang-move/ClangMove.cpp clang-move/ClangMove.h

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-12-16 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. In https://reviews.llvm.org/D25660#613519, @zaks.anna wrote: > Also, have you evaluated this on real codebases? What results do you see? Are > there any false positives found? Are there any true positives found? I am doing it right now. Unfortunately I

[PATCH] D27440: clang-format-vsix: fail when clang-format outputs to stderr

2016-12-16 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D27440#624773, @djasper wrote: > I agree that fallback-style should only be used when there is no > .clang-format file. If we find one, and it doesn't parse correctly, we should > neither use the fallback style nor scan in higher-level

[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

2016-12-16 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek marked 2 inline comments as done. Prazek added inline comments. Comment at: clang-tidy/obvious/InvalidRangeCheck.cpp:20-36 +"std::for_each; std::find; std::find_if; std::find_end; " +"std::find_first_of; std::adjacent_find; std::count; std::count_if;" +

[PATCH] D27794: Make some diagnostic tests C++11 clean

2016-12-16 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. LG for OpenMP part https://reviews.llvm.org/D27794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D27717: [analyzer] Suppress a leak false positive in Qt's QObject::connectImpl()

2016-12-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289939: [analyzer] Add another exception for Qt in MallocChecker (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D27717?vs=81239=81738#toc Repository: rL LLVM

r289939 - [analyzer] Add another exception for Qt in MallocChecker

2016-12-16 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Fri Dec 16 06:21:55 2016 New Revision: 289939 URL: http://llvm.org/viewvc/llvm-project?rev=289939=rev Log: [analyzer] Add another exception for Qt in MallocChecker Treat pointers passed to QObject::connectImpl() as escaping. rdar://problem/29550440 Differential

[PATCH] D23921: Remove va_start diagnostic false positive with enumerations

2016-12-16 Thread Attila Török via Phabricator via cfe-commits
torokati44 added a comment. I see this has been reverted in r281612, but I can no longer access the build log serving as a reason linked in the message: https://www.mail-archive.com/cfe-commits@lists.llvm.org/msg35386.html We have a few false-positive warnings that (I think) would be silenced

[PATCH] D27700: [clang-tidy] refactor ExprSequence out of misc-use-after-move check

2016-12-16 Thread Marek Sokołowski via Phabricator via cfe-commits
mnbvmar marked 9 inline comments as done. mnbvmar added inline comments. Comment at: clang-tidy/misc/UseAfterMoveCheck.cpp:18 using namespace clang::ast_matchers; +using namespace clang::tidy::utils; + mboehme wrote: > Prazek wrote: > > Prazek wrote: > > > I

[PATCH] D27700: [clang-tidy] refactor ExprSequence out of misc-use-after-move check

2016-12-16 Thread Marek Sokołowski via Phabricator via cfe-commits
mnbvmar updated this revision to Diff 81732. mnbvmar marked 2 inline comments as done. mnbvmar added a comment. Minor changes, according to the request. https://reviews.llvm.org/D27700 Files: clang-tidy/misc/UseAfterMoveCheck.cpp clang-tidy/utils/CMakeLists.txt

[PATCH] D27621: [clang-tidy] check to find declarations declaring more than one name

2016-12-16 Thread Firat Kasmis via Phabricator via cfe-commits
firolino updated this revision to Diff 81731. firolino added a comment. further cleanup in getUserWrittenType https://reviews.llvm.org/D27621 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/OneNamePerDeclarationCheck.cpp

  1   2   >