r290084 - clang-format: Allow "single column" list layout even if that violates the

2016-12-18 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Dec 19 01:26:11 2016 New Revision: 290084 URL: http://llvm.org/viewvc/llvm-project?rev=290084=rev Log: clang-format: Allow "single column" list layout even if that violates the column limit. Single-column layout basically means that we format the list with one element

Re: [PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-18 Thread Mads Ravn via cfe-commits
Hi Piotr, Thank you for your detailed comments :) I would love some help with the other fixit. I have some notes on it at home. But my main catch is that is an implicit cast to boolean from str.compare(str) with maybe an ! in front of it. And I need to fix that to str.compare(str) == 0 or

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

2016-12-18 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 81917. echuraev marked an inline comment 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] D16171: Warning on redeclaring with a conflicting asm label

2016-12-18 Thread Leslie Zhai via Phabricator via cfe-commits
xiangzhai added a comment. LLVMBUG-31017 https://llvm.org/bugs/show_bug.cgi?id=31017#c4 In https://reviews.llvm.org/D16171#540261, @phabricss wrote: > On 09/12/2016 01:26 PM, Nick Lewycky wrote: > > > Firstly, I thought glibc had applied a patch to fix this bug? As in, the > > error is correct

r290082 - Add __cpp_structured_bindings feature test macro for structured bindings, per

2016-12-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Dec 18 22:21:36 2016 New Revision: 290082 URL: http://llvm.org/viewvc/llvm-project?rev=290082=rev Log: Add __cpp_structured_bindings feature test macro for structured bindings, per latest (provisional) draft of SD-6. Modified:

r290081 - [c++1z] cxx_status: mark p0195r2 as done.

2016-12-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Dec 18 22:16:03 2016 New Revision: 290081 URL: http://llvm.org/viewvc/llvm-project?rev=290081=rev Log: [c++1z] cxx_status: mark p0195r2 as done. Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp cfe/trunk/test/Lexer/cxx-features.cpp

r290080 - [c++1z] P0195R2: Support pack-expansion of using-declarations.

2016-12-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Dec 18 22:08:53 2016 New Revision: 290080 URL: http://llvm.org/viewvc/llvm-project?rev=290080=rev Log: [c++1z] P0195R2: Support pack-expansion of using-declarations. This change introduces UsingPackDecl as a marker for the set of UsingDecls produced by pack expansion of

r290075 - Add a lit test for PR31374

2016-12-18 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Sun Dec 18 20:55:53 2016 New Revision: 290075 URL: http://llvm.org/viewvc/llvm-project?rev=290075=rev Log: Add a lit test for PR31374 Differential Revision: https://reviews.llvm.org/D27909 Added: cfe/trunk/test/CodeGenObjC/nullptr-assert.m Added:

[PATCH] D27909: Add a lit test for PR31374

2016-12-18 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL290075: Add a lit test for PR31374 (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D27909?vs=81907=81910#toc Repository: rL LLVM https://reviews.llvm.org/D27909 Files:

[PATCH] D27909: Add a lit test for PR31374

2016-12-18 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. Thanks! Comment at: test/CodeGenObjC/nullptr-assert.m:1 +// RUN: %clang_cc1 -Wno-objc-root-class -triple x86_64-- -emit-llvm -o - %s +// REQUIRES: asserts

[PATCH] D27909: Add a lite test for PR31374

2016-12-18 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: thakis. yaxunl added a subscriber: cfe-commits. https://reviews.llvm.org/D27909 Files: test/CodeGenObjC/nullptr-assert.m Index: test/CodeGenObjC/nullptr-assert.m === ---

[PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-18 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. Do you need some help with implementing the other fixit, or you just need some extra time? It seems to be almost the same as your second fixit Comment at: clang-tidy/misc/StringCompareCheck.cpp:69-70 +diag(Matched->getLocStart(), + "do not

r290072 - Fix name hiding and redeclaration checking for dependent local

2016-12-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Dec 18 16:01:46 2016 New Revision: 290072 URL: http://llvm.org/viewvc/llvm-project?rev=290072=rev Log: Fix name hiding and redeclaration checking for dependent local using-declarations. Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp

r290071 - Fix some interactions between C++11 and C++14 features and using-declarations:

2016-12-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Dec 18 15:39:37 2016 New Revision: 290071 URL: http://llvm.org/viewvc/llvm-project?rev=290071=rev Log: Fix some interactions between C++11 and C++14 features and using-declarations: * a dependent non-type using-declaration within a function template can be valid, as

[PATCH] D27641: DebugInfo: Added support for Checksum debug info feature (Clang part)

2016-12-18 Thread David Majnemer via Phabricator via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:433-434 void CGDebugInfo::CreateCompileUnit() { + SmallString<32> Checksum; + llvm::DIFile::ChecksumKind CSKind = llvm::DIFile::CSK_None; Formatting looks wrong

[PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy

2016-12-18 Thread Mads Ravn via Phabricator via cfe-commits
madsravn updated this revision to Diff 81885. madsravn added a comment. Small changes made by suggestions. strCompare is now with uppercase: StrCompare Checking for str.compare(str) == {-1,1} as well. https://reviews.llvm.org/D27210 Files: clang-tidy/misc/CMakeLists.txt

[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

2016-12-18 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons abandoned this revision. malcolm.parsons added a comment. Abandon until we have a plan. https://reviews.llvm.org/D25659 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r290063 - Wdocumentation fix

2016-12-18 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Sun Dec 18 08:12:38 2016 New Revision: 290063 URL: http://llvm.org/viewvc/llvm-project?rev=290063=rev Log: Wdocumentation fix Modified: cfe/trunk/include/clang/Basic/OpenCLOptions.h Modified: cfe/trunk/include/clang/Basic/OpenCLOptions.h URL:

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

2016-12-18 Thread Antonio Maiorano via Phabricator via cfe-commits
amaiorano added a comment. In https://reviews.llvm.org/D27440#624917, @djasper wrote: > Yes.. return non-zero seems right. This is an error condition. Hi @djasper , I started looking into making the changes to clang-format to have it return an error code when it's unable to parse the

[PATCH] D27898: [compiler-rt] [builtins] Implement __floattitf() & __floatuntitf()

2016-12-18 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. mgorny added reviewers: sdmitrouk, rengolin, zatrazz. mgorny added a subscriber: cfe-commits. Herald added subscribers: dberris, aemerson. Implement the missing __floattitf() and __floatuntitf() functions, to convert 128-bit (unsigned) integers to quad-precision