[PATCH] D15882: Avoid assert failure on some invalid cc1 options.

2016-01-04 Thread Douglas Katzman via cfe-commits
dougk created this revision. dougk added reviewers: thakis, probinson. dougk added a subscriber: cfe-commits. Something like this was suggested in http://reviews.llvm.org/D13221 http://reviews.llvm.org/D15882 Files: lib/Frontend/CompilerInvocation.cpp test/Driver/debug-options.c Index: tes

Re: [PATCH] D15603: [OpenCL] Pipe type support

2016-01-04 Thread Xiuli PAN via cfe-commits
pxli168 added inline comments. Comment at: lib/AST/ASTContext.cpp:3121 @@ +3120,3 @@ +QualType ASTContext::getPipeType(QualType T) const { + // Unique pointers, to guarantee there is only one pointer of a particular + // structure. Anastasia wrote: > Could we up

[PATCH] D15881: [DWARF] Omitting the explicit import of an anonymous namespace is a debugger-tuning decision, not a target decision.

2016-01-04 Thread Paul Robinson via cfe-commits
probinson created this revision. probinson added reviewers: echristo, dblaikie, aprantl. probinson added a subscriber: cfe-commits. GDB and LLDB don't mind if we omit the explicit import of an anonymous namespace. http://reviews.llvm.org/D15881 Files: lib/Frontend/CompilerInvocation.cpp te

r256803 - Avoid walking all the declarations in the TU when a tag is declared in function

2016-01-04 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jan 4 19:21:53 2016 New Revision: 256803 URL: http://llvm.org/viewvc/llvm-project?rev=256803&view=rev Log: Avoid walking all the declarations in the TU when a tag is declared in function prototype scope in a function definition. Modified: cfe/trunk/lib/Sema/SemaDecl.

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-04 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: lib/CodeGen/CodeGenModule.cpp:1235-1236 @@ -1235,8 +1234,4 @@ // different type. -// FIXME: Support for variables is not implemented yet. -if (isa(D.getDecl())) - GV = cast(GetAddrOfGlobal(D, /*IsForDefinition=*/true)); -

Re: [PATCH] D15705: Adding a scripted test for PR25717

2016-01-04 Thread Yunzhong Gao via cfe-commits
ygao added a comment. > What I would suggest is: > > Check that this test fails at least on windows with your patch > > reverted. If so, commit it. BTW, don't you need to drop the "| > FileCheck" to cause a crash? Hmm, even with the pipe removed, I still have difficulty reproducing the

Re: r255371 - Error on redeclaring with a conflicting asm label and on redeclaring with an asm label after the first ODR-use. Detects problems like the one in PR22830 where gcc and clang both compiled

2016-01-04 Thread Kostya Serebryany via cfe-commits
On Mon, Jan 4, 2016 at 4:04 PM, Roland McGrath wrote: > Kostya, do you remember the exact original case in glibc for 22830 and > what glibc change fixed it? > Sadly, no. I only know that the code was reduced from the code that was setting these attributes for strtol. I vaguely recall the case,

Re: r255371 - Error on redeclaring with a conflicting asm label and on redeclaring with an asm label after the first ODR-use. Detects problems like the one in PR22830 where gcc and clang both compiled

2016-01-04 Thread Roland McGrath via cfe-commits
Kostya, do you remember the exact original case in glibc for 22830 and what glibc change fixed it? I vaguely recall the case, but not enough to find the actual change and compare it to the new scenarios. I suspect that the original case was easy to fix because it was just that the hidden_proto magi

r256797 - Remove an unused parameter

2016-01-04 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Jan 4 18:08:41 2016 New Revision: 256797 URL: http://llvm.org/viewvc/llvm-project?rev=256797&view=rev Log: Remove an unused parameter No functionality change is intended Modified: cfe/trunk/include/clang/Sema/Sema.h cfe/trunk/lib/Parse/ParseStmtAsm.cpp cfe

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-01-04 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/Tooling/Core/QualTypeNames.h:32 @@ +31,3 @@ +namespace TypeName { +///\brief Convert the type into one with fully qualified template +/// arguments. Please ensure there's a space between each `/// ` and the c

r256795 - [ms-inline-asm] Handle dependent identifiers in inline asm

2016-01-04 Thread David Majnemer via cfe-commits
Author: majnemer Date: Mon Jan 4 17:51:15 2016 New Revision: 256795 URL: http://llvm.org/viewvc/llvm-project?rev=256795&view=rev Log: [ms-inline-asm] Handle dependent identifiers in inline asm Build up a dependent expression for MS-style inline assembly if the identifier's type is dependent. Th

Re: r255371 - Error on redeclaring with a conflicting asm label and on redeclaring with an asm label after the first ODR-use. Detects problems like the one in PR22830 where gcc and clang both compiled

2016-01-04 Thread Kostya Serebryany via cfe-commits
Thanks for checking, Nick! +Roland, FYI (recent changes in clang break compilation of all of the glibc), similar to https://llvm.org/bugs/show_bug.cgi?id=22830#c1 On Mon, Jan 4, 2016 at 3:21 PM, Nick Lewycky wrote: > On 01/04/2016 01:40 PM, Kostya Serebryany wrote: > >> >> >> On Thu, Dec 17, 201

Re: [PATCH] D15726: Remove setting of inlinehint and cold attributes based on profile data

2016-01-04 Thread Easwaran Raman via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL256793: Remove setting of inlinehint and cold attributes based on profile data (authored by eraman). Changed prior to commit: http://reviews.llvm.org/D15726?vs=43479&id=43937#toc Repository: rL LLVM

r256793 - Remove setting of inlinehint and cold attributes based on profile data

2016-01-04 Thread Easwaran Raman via cfe-commits
Author: eraman Date: Mon Jan 4 17:32:28 2016 New Revision: 256793 URL: http://llvm.org/viewvc/llvm-project?rev=256793&view=rev Log: Remove setting of inlinehint and cold attributes based on profile data NFC. These hints are only used for inlining and the inliner now uses the same criteria to ide

Re: [PATCH] D15456: [PATCH] New diagnostic for non-idiomatic copy or move operations (v2)

2016-01-04 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Ping now that the holidays are somewhat over-ish. http://reviews.llvm.org/D15456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r255371 - Error on redeclaring with a conflicting asm label and on redeclaring with an asm label after the first ODR-use. Detects problems like the one in PR22830 where gcc and clang both compiled

2016-01-04 Thread Nick Lewycky via cfe-commits
On 01/04/2016 01:40 PM, Kostya Serebryany wrote: On Thu, Dec 17, 2015 at 5:03 PM, Richard Smith mailto:rich...@metafoo.co.uk>> wrote: On Thu, Dec 17, 2015 at 3:59 PM, Nick Lewycky via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: On 12/17/2015 10:47 AM, Kostya Serebry

Buildbot numbers for week of 12/27/2015 - 1/2/2016

2016-01-04 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 12/27/2015 - 01/02/2016. Thanks Galina Number of commits by project: project | commits ---+--- llvm | 102 cfe |

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2016-01-04 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM, and thanks for all of the iteration. -eric http://reviews.llvm.org/D15223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

Re: [PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Tim Song via cfe-commits
tcanens added a subscriber: tcanens. Comment at: include/string:2523 @@ +2522,3 @@ + call_input(); + basic_string temp(__first, __last); +this->swap(temp); This default constructs the allocator, but the allocator may not be default constructible.

[clang-tools-extra] r256780 - Fix typo.

2016-01-04 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Mon Jan 4 15:25:10 2016 New Revision: 256780 URL: http://llvm.org/viewvc/llvm-project?rev=256780&view=rev Log: Fix typo. Modified: clang-tools-extra/trunk/docs/index.rst Modified: clang-tools-extra/trunk/docs/index.rst URL: http://llvm.org/viewvc/llvm-project/cl

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-01-04 Thread Nick Lewycky via cfe-commits
nlewycky added a subscriber: nlewycky. nlewycky added a comment. (I'm not doing a full review, I just happened to notice a couple things when skimming.) Comment at: lib/Tooling/Core/QualTypeNames.cpp:250 @@ +249,3 @@ +// There are probably other cases ... +if (const Tag

[PATCH] D15866: Warn when using `defined` in a macro definition.

2016-01-04 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: rsmith. thakis added a subscriber: cfe-commits. As far as I can tell, doing #define HAVE_FOO_BAR defined(FOO) && defined(BAR) #if HAVE_FOO ... #endif has undefined behavior per [cpp.cond]p4. In practice, it can have different

Re: [libcxx] [PATCH] unordered_map: Avoid unnecessary mallocs when no insert occurs

2016-01-04 Thread Duncan P. N. Exon Smith via cfe-commits
ping > On 2015-Dec-17, at 13:56, Duncan P. N. Exon Smith > wrote: > > >> On 2015-Dec-16, at 14:42, Duncan P. N. Exon Smith >> wrote: >> >> This is a follow-up to r239666: "Fix PR12999 - unordered_set::insert >> calls operator new when no insert occurs". That fix didn't apply to >> `unorder

Re: [PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Duncan P. N. Exon Smith via cfe-commits
> On 2016-Jan-04, at 12:02, Marshall Clow via cfe-commits > wrote: > > mclow.lists updated this revision to Diff 43906. > mclow.lists added a comment. > > Howard suggested a fix for the "is incremental" problem in the type trait. I > also added assignable. > > > http://reviews.llvm.org/D1586

Re: [PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

2016-01-04 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. ping? http://reviews.llvm.org/D15121 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Marshall Clow via cfe-commits
mclow.lists updated this revision to Diff 43906. mclow.lists added a comment. Howard suggested a fix for the "is incremental" problem in the type trait. I also added assignable. http://reviews.llvm.org/D15862 Files: include/algorithm include/iterator include/string Index: include/string

Re: [PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Marshall Clow via cfe-commits
mclow.lists marked an inline comment as done. mclow.lists added a comment. http://reviews.llvm.org/D15862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: Getting fully qualified names of random qualtypes

2016-01-04 Thread Sterling Augustine via cfe-commits
I've finally had time to circle back to this, and just sent a version of this through reviews.llvm.org. It is highly edited, and we may as well start from scratch. In particular, my usecase has no need for all the desugaring, so I have removed it all. So no std::vector special casing, and no desug

Re: [PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Marshall Clow via cfe-commits
mclow.lists added inline comments. Comment at: include/string:1211 @@ +1210,3 @@ +// noexcept(declval<_Iter>().operator++()) && +// noexcept(++(declval<_Iter>())) && + noexcept(declval<_Iter>() == declval<_Iter>()) && This is not quite right yet.

[PATCH] D15862: A possible direction for fixing https://llvm.org/bugs/show_bug.cgi?id=25973.

2016-01-04 Thread Marshall Clow via cfe-commits
mclow.lists created this revision. mclow.lists added reviewers: howard.hinnant, EricWF, rsmith. mclow.lists added a subscriber: cfe-commits. libc++'s basic_string class assumes that iterator operations on the iterators that are passed to it don't throw. This is wrong, and means that we don't mee

[libcxx] r256772 - [libcxx] Fix typo in darwin target_info.py introduced by r256621.

2016-01-04 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Mon Jan 4 13:35:40 2016 New Revision: 256772 URL: http://llvm.org/viewvc/llvm-project?rev=256772&view=rev Log: [libcxx] Fix typo in darwin target_info.py introduced by r256621. Modified: libcxx/trunk/test/libcxx/test/target_info.py Modified: libcxx/trunk/test/libcxx/test/ta

Re: [PATCH] D15589: [PPC] Add long long/double support for vec_cts, vec_ctu and vec_ctf.

2016-01-04 Thread Tim Shen via cfe-commits
timshen added a comment. Ping? http://reviews.llvm.org/D15589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15603: [OpenCL] Pipe type support

2016-01-04 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/AST/ASTContext.cpp:3121 @@ +3120,3 @@ +QualType ASTContext::getPipeType(QualType T) const { + // Unique pointers, to guarantee there is only one pointer of a particular + // structure. Could we update the comment

Re: [PATCH] D15590: [Bugfix] Disqualify unaddressable overload candidates when a function is directly called indirectly.

2016-01-04 Thread George Burgess IV via cfe-commits
george.burgess.iv updated this revision to Diff 43900. george.burgess.iv added a comment. Rebased http://reviews.llvm.org/D15590 Files: include/clang/Sema/Overload.h include/clang/Sema/Sema.h lib/Sema/SemaExpr.cpp lib/Sema/SemaOverload.cpp test/CodeGenCXX/pass-object-size.cpp test/S

Re: [clang-tools-extra] r256562 - [clang-tidy] Fix a use-after-free bug found by asan

2016-01-04 Thread Kostya Serebryany via cfe-commits
Nice! is a fuzzer for clang-tidy possible/desirable? similar to what we have for clang and clang-format (tools/clang-format/fuzzer, ./tools/clang-fuzzer) On Tue, Dec 29, 2015 at 8:14 AM, Alexander Kornienko via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: alexfh > Date: Tue Dec 29

Re: [PATCH] D15266: [clang-format] Handle \n the same way as std::endl with stream operator.

2016-01-04 Thread Jean-Philippe Dufraigne via cfe-commits
jeanphilippeD added a comment. Thanks, Would you be happy to commit it for me since i do not have commit access. http://reviews.llvm.org/D15266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D15858: Warn undeclared identifiers in CUDA kernel calls

2016-01-04 Thread Jason Henline via cfe-commits
jhen created this revision. jhen added reviewers: tra, jlebar. jhen added a subscriber: cfe-commits. Value, type, and instantiation dependence were not being handled correctly for CUDAKernelCallExpr AST nodes. As a result, if an undeclared identifier was used in the triple-angle-bracket kernel cal

Re: [PATCH] D15721: [Sema] Fix ICE on casting a vector of bools to a vector of T

2016-01-04 Thread George Burgess IV via cfe-commits
george.burgess.iv added a comment. Ping :) http://reviews.llvm.org/D15721 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14877: Fix ICE on lowering of constexpr vector splats

2016-01-04 Thread George Burgess IV via cfe-commits
george.burgess.iv added a comment. Ping :) http://reviews.llvm.org/D14877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15721: [Sema] Fix ICE on casting a vector of bools to a vector of T

2016-01-04 Thread George Burgess IV via cfe-commits
george.burgess.iv added a comment. Ping :) http://reviews.llvm.org/D15721 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D8149: Add hasUnderlyingType narrowing matcher for TypedefDecls, functionProtoType matcher for FunctionProtoType nodes, extend parameterCountIs to FunctionProtoType nodes

2016-01-04 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:4990 @@ +4989,3 @@ + EXPECT_TRUE(matches("typedef int hasUnderlyingTypeTest;", + typedefDecl(hasUnderlyingType(asString("int"); + EXPECT_TRUE(

Re: [PATCH] D15704: Add some overlooked optnone tests, and tighten up an existing test

2016-01-04 Thread Paul Robinson via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL256762: Add some overlooked optnone tests, and tighten up an existing test. (authored by probinson). Changed prior to commit: http://reviews.llvm.org/D15704?vs=43416&id=43891#toc Repository: rL LLVM

r256762 - Add some overlooked optnone tests, and tighten up an existing test.

2016-01-04 Thread Paul Robinson via cfe-commits
Author: probinson Date: Mon Jan 4 11:03:58 2016 New Revision: 256762 URL: http://llvm.org/viewvc/llvm-project?rev=256762&view=rev Log: Add some overlooked optnone tests, and tighten up an existing test. Differential Revision: http://reviews.llvm.org/D15704 Added: cfe/trunk/test/CodeGenCXX/o

Re: [PATCH] D15823: Support virtual-near-miss check.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Looks like you've forgotten to upload a new patch. http://reviews.llvm.org/D15823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r256759 - clang-format: [JS] Support more ES6 default exports.

2016-01-04 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Jan 4 10:10:36 2016 New Revision: 256759 URL: http://llvm.org/viewvc/llvm-project?rev=256759&view=rev Log: clang-format: [JS] Support more ES6 default exports. Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp cfe/trunk/unittests/Format/FormatTestJS.cpp Modifie

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: docs/clang-tidy/checks/misc-definitions-in-headers.rst:19 @@ +18,3 @@ + } + + // error hokein wrote: > About the internal linkage variable definition, how about only warning the > variable in unnamed namespace? > > T

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:52 @@ +51,3 @@ + + // Internal linkage variable and function definitions are allowed: + // const int a = 1; I'd say "ignored for now" instead of "allowed". We might want to

r256758 - clang-format: [JS] Support ES6 exports of array literals.

2016-01-04 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Jan 4 09:51:56 2016 New Revision: 256758 URL: http://llvm.org/viewvc/llvm-project?rev=256758&view=rev Log: clang-format: [JS] Support ES6 exports of array literals. Before: export default[aaa, bb

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: docs/clang-tidy/checks/misc-definitions-in-headers.rst:19 @@ +18,3 @@ + } + + // error About the internal linkage variable definition, how about only warning the variable in unnamed namespace? The const/st

Re: r256596 - Emit a -Wmicrosoft warning when treating ^Z as EOF in MS mode.

2016-01-04 Thread Nico Weber via cfe-commits
On Wed, Dec 30, 2015 at 12:28 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Tue, Dec 29, 2015 at 11:17:28PM -, Nico Weber via cfe-commits wrote: > > Author: nico > > Date: Tue Dec 29 17:17:27 2015 > > New Revision: 256596 > > > > URL: http://llvm.org/viewvc/l

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 43887. hokein added a comment. Add !inMainFile check. http://reviews.llvm.org/D15710 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/DefinitionsInHeadersCheck.cpp clang-tidy/misc/DefinitionsInHeadersCheck.h clang-tidy/misc/MiscTidyModule.cpp

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:25 @@ +24,3 @@ + SourceLocation ExpansionLoc = SM.getExpansionLoc(Node.getLocStart()); + StringRef Filename = SM.getFilename(ExpansionLoc); + return Filename.endswith(".h") || Filename.endsw

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:25 @@ +24,3 @@ + SourceLocation ExpansionLoc = SM.getExpansionLoc(Node.getLocStart()); + StringRef Filename = SM.getFilename(ExpansionLoc); + return Filename.endswith(".h") || Filename.endsw

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:25 @@ +24,3 @@ + SourceLocation ExpansionLoc = SM.getExpansionLoc(Node.getLocStart()); + StringRef Filename = SM.getFilename(ExpansionLoc); + return Filename.endswith(".h") || Filename.endsw

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:25 @@ +24,3 @@ + SourceLocation ExpansionLoc = SM.getExpansionLoc(Node.getLocStart()); + StringRef Filename = SM.getFilename(ExpansionLoc); + return Filename.endswith(".h") || Fil

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:25 @@ +24,3 @@ + SourceLocation ExpansionLoc = SM.getExpansionLoc(Node.getLocStart()); + StringRef Filename = SM.getFilename(ExpansionLoc); + return Filename.endswith(".h") || Filenam

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:24 @@ +23,3 @@ + .bind("name-decl"), + this); +} We're looking at the problem from different angles. My view is that a reasonable file naming convention (wh

Re: [PATCH] D15539: [libcxxabi] Reducing stack usage of test

2016-01-04 Thread Ben Craig via cfe-commits
bcraig added a comment. Ping. If desired, I could provide an alternative implementation where all the structs are allocated at global scope with their original padding. http://reviews.llvm.org/D15539 ___ cfe-commits mailing list cfe-commits@lists.l

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2016-01-04 Thread Alexandros Lamprineas via cfe-commits
labrinea updated the summary for this revision. labrinea updated this revision to Diff 43885. labrinea added a comment. Disabled optimizers. http://reviews.llvm.org/D15223 Files: test/CodeGen/aarch64-v8.1a-neon-intrinsics.c test/CodeGen/arm-v8.1a-neon-intrinsics.c Index: test/CodeGen/arm-v

Re: [PATCH] D15805: [clang-tidy] Cleanup code in CERT module.

2016-01-04 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. I've commit in r256756, thanks! http://reviews.llvm.org/D15805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 43886. hokein added a comment. Move header file check to AST matcher. http://reviews.llvm.org/D15710 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/DefinitionsInHeadersCheck.cpp clang-tidy/misc/DefinitionsInHeadersCheck.h clang-tidy/misc/MiscT

[clang-tools-extra] r256756 - Rename the CERT namespace to cert, and update some checkers to use this namespace consistently.

2016-01-04 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Jan 4 08:31:14 2016 New Revision: 256756 URL: http://llvm.org/viewvc/llvm-project?rev=256756&view=rev Log: Rename the CERT namespace to cert, and update some checkers to use this namespace consistently. Patch thanks to Haojian Wu! Modified: clang-tools-extra/

Re: [PATCH] D15283: [ARMv8-M] Add Clang targeting for ARMv8-M Baseline/Mainline

2016-01-04 Thread Bradley Smith via cfe-commits
bsmith updated this revision to Diff 43884. bsmith added a comment. Rebase patch against latest changes made to ARMv8-M targeting, specifically the removal of 'B' as a profile. Repository: rL LLVM http://reviews.llvm.org/D15283 Files: lib/Basic/Targets.cpp lib/Driver/Tools.cpp test/Dr

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:31 @@ +30,3 @@ + // inline function with external linkage, class template, non-static function + // template, static data member of a class template, member function of a + // class t

Re: [PATCH] D15710: [clang-tidy] Add non-inline function definition and variable definition check in header files.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/DefinitionsInHeadersCheck.cpp:31 @@ +30,3 @@ + // inline function with external linkage, class template, non-static function + // template, static data member of a class template, member function of a + // class template

Re: [PATCH] D15805: [clang-tidy] Cleanup code in CERT module.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D15805#318646, @aaron.ballman wrote: > In http://reviews.llvm.org/D15805#318624, @hokein wrote: > > > > Yes, but just the namespaces as you do in this patch (not anything in > > > user documentation, for instance). This patch LG; if you need me

Re: [PATCH] D15686: PR25910: clang allows two var definitions with the same mangled name

2016-01-04 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. Ping! http://reviews.llvm.org/D15686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r256753 - clang-format: [JS] Improve empty array literal detection.

2016-01-04 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Jan 4 07:11:41 2016 New Revision: 256753 URL: http://llvm.org/viewvc/llvm-project?rev=256753&view=rev Log: clang-format: [JS] Improve empty array literal detection. Previously, the [] in the following example were recognized as an array subscript leading to weird indent

Re: [PATCH] D15805: [clang-tidy] Cleanup code in CERT module.

2016-01-04 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In http://reviews.llvm.org/D15805#318624, @hokein wrote: > > Yes, but just the namespaces as you do in this patch (not anything in user > > documentation, for instance). This patch LG; if you need me to commit on > > your behalf, I'm happy to do so. > > > Done. Bu

r256750 - clang-format: Fix corner case in builder-type call formatting.

2016-01-04 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Jan 4 06:41:11 2016 New Revision: 256750 URL: http://llvm.org/viewvc/llvm-project?rev=256750&view=rev Log: clang-format: Fix corner case in builder-type call formatting. Before: return .aaa(a,

Re: [PATCH] D15823: Support virtual-near-miss check.

2016-01-04 Thread Cong Liu via cfe-commits
congliu marked 20 inline comments as done. Comment at: clang-tidy/misc/VirtualNearMissCheck.cpp:59 @@ +58,3 @@ +bool VirtualNearMissCheck::isOverrideMethod(const CXXMethodDecl *MD){ + return MD->size_overridden_methods() > 0 || MD->hasAttr(); +} alexfh wrote: > W

r256742 - Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line

2016-01-04 Thread Dimitry Andric via cfe-commits
Author: dim Date: Mon Jan 4 04:17:48 2016 New Revision: 256742 URL: http://llvm.org/viewvc/llvm-project?rev=256742&view=rev Log: Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line endings, since the file is supposed to have them, according to its comments. Also set its svn:eol-s

Re: [PATCH] D14484: Formatting constructor initializer lists by putting them always on different lines

2016-01-04 Thread Daniel Jasper via cfe-commits
djasper added a comment. I actually have more thoughts on this. If we go down this road, there are many more options that people might envision. Maybe they don't want to wrap the initializer list, if there is just one initializer. Maybe they want to align the initializers somewhere after the co

Re: [PATCH] D14484: Formatting constructor initializer lists by putting them always on different lines

2016-01-04 Thread Daniel Jasper via cfe-commits
djasper added a comment. The Google and Unity style guides have explicit examples of using the one-line version. The other style guide (at least to me) isn't clear on forbidding what clang-format currently does. My gut feeling is that it is not worth the cost of renaming and extending the curr

Re: [PATCH] D15266: [clang-format] Handle \n the same way as std::endl with stream operator.

2016-01-04 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. http://reviews.llvm.org/D15266 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D15805: [clang-tidy] Cleanup code in CERT module.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein added a comment. > Yes, but just the namespaces as you do in this patch (not anything in user > documentation, for instance). This patch LG; if you need me to commit on your > behalf, I'm happy to do so. Done. But My account has no write access to the code repo. Can I commit the patch

Re: [PATCH] D15805: [clang-tidy] Cleanup code in CERT module.

2016-01-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 43870. hokein added a comment. Rename: 'CERT' => 'cert' http://reviews.llvm.org/D15805 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/cert/SetLongJmpCheck.cpp clang-tidy/cert/SetLongJmpCheck.h clang-tidy/cert/StaticObjectExceptionCheck.cpp cl