[PATCH] D21012: clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Miklos Vajna via cfe-commits
vmiklos created this revision. vmiklos added a reviewer: klimek. vmiklos added a subscriber: cfe-commits. "Derived" in static_cast(...) wasn't renamed, nor in its pointer equivalent. http://reviews.llvm.org/D21012 Files: clang-rename/USRLocFinder.cpp test/clang-rename/StaticCastExpr.cpp Ind

Re: [PATCH] D21012: clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: test/clang-rename/StaticCastExpr.cpp:4-25 @@ +3,24 @@ +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s +class Base +{ +}; + +class Derived : public Base +{ +public: + int getValue() const + { + return 0; + } +}; + +int main() +{ + De

Re: [PATCH] D21012: clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Miklos Vajna via cfe-commits
vmiklos updated this revision to Diff 59695. vmiklos added a comment. Done. http://reviews.llvm.org/D21012 Files: clang-rename/USRLocFinder.cpp test/clang-rename/StaticCastExpr.cpp Index: test/clang-rename/StaticCastExpr.cpp =

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
ioeric added a comment. Friendly PING http://reviews.llvm.org/D20959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21012: clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D21012 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1491 @@ -1471,3 +1490,3 @@ std::unique_ptr Env = Environment::CreateVirtualEnvironment(Code, FileName, /*Ranges=*/{}); I think you should pull this part out into a separate function, poss

[PATCH] D21014: [Clang][AVX512][Intrinsics] Adding intrinsics reduce_[round]_{ss|sd} to clang

2016-06-06 Thread michael zuckerman via cfe-commits
m_zuckerman created this revision. m_zuckerman added reviewers: AsafBadouh, igorb, delena. m_zuckerman added a subscriber: cfe-commits. http://reviews.llvm.org/D21014 Files: include/clang/Basic/BuiltinsX86.def lib/Headers/avx512dqintrin.h test/CodeGen/avx512dq-builtins.c Index: test/CodeGe

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 59698. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed reviewer's comments. Added a test case for empty code. http://reviews.llvm.org/D20959 Files: lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Form

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: lib/Format/Format.cpp:1500 @@ +1499,3 @@ + // Get the first token. + Lex.LexFromRawLexer(Tok); + skipComments(Lex, Tok); djasper wrote: > Can this go wrong? Maybe in an empty file? Added a test case for empty file. If

r271875 - [mips] Replace almost all Arch checks in MipsTargetInfo with ABI checks. NFC.

2016-06-06 Thread Daniel Sanders via cfe-commits
Author: dsanders Date: Mon Jun 6 04:07:08 2016 New Revision: 271875 URL: http://llvm.org/viewvc/llvm-project?rev=271875&view=rev Log: [mips] Replace almost all Arch checks in MipsTargetInfo with ABI checks. NFC. Summary: setABI() is still tied to the Arch component of the Triple to preserve exis

Re: [PATCH] D20966: [include-fixer] Add the missing header to the file where the unidentified symbol comes from.

2016-06-06 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: include-fixer/IncludeFixer.cpp:104 @@ -103,3 @@ -// class Bar; -// Foo foo; -// Does this patch do the right thing for the test case in the comment? Otherwise we'll try add includes to system headers all

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1466 @@ +1465,3 @@ +getFormattingLangOpts(Style)); + unsigned Ret = Code.size(); + Token Tok; Don't store this. Just inline Code.size() below. Comment at: lib/Format/F

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Benjamin Kramer via cfe-commits
bkramer added a comment. Sorry, this patch somehow got buried in my mail. Comment at: docs/include-fixer.rst:69 @@ +68,3 @@ +Make sure the path of :program:`clang-include-fixer` is in the environment PATH +variable. + Maybe also describe the g:clang_include_fixe

r271877 - [mips] The P5600 does not support N32/N64 since it's a 32-bit CPU.

2016-06-06 Thread Daniel Sanders via cfe-commits
Author: dsanders Date: Mon Jun 6 04:47:32 2016 New Revision: 271877 URL: http://llvm.org/viewvc/llvm-project?rev=271877&view=rev Log: [mips] The P5600 does not support N32/N64 since it's a 32-bit CPU. Summary: Reviewers: atanasyan Subscribers: cfe-commits, sdardis Differential Revision: http:

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: lib/Format/Format.cpp:1474 @@ +1473,3 @@ + if (checkAndConsumeDirectiveWithName(Lex, "ifndef", Tok)) { +skipComments(Lex, Tok); +if (checkAndConsumeDirectiveWithName(Lex, "define", Tok)) djasper wrote: > I wonder

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 59700. ioeric marked 6 inline comments as done. ioeric added a comment. - Addressed reviewer's comments. http://reviews.llvm.org/D20959 Files: lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTest.cpp ===

[PATCH] D21016: [mips] The default ABI depends on the CPU not the Arch on MTI and IMG vendor triples.

2016-06-06 Thread Daniel Sanders via cfe-commits
dsanders created this revision. dsanders added a reviewer: atanasyan. dsanders added a subscriber: cfe-commits. Herald added a subscriber: sdardis. 32-bit CPU's default to O32. 64-bit CPU's default to N64. The default CPU (mips32r2/mips64r2) still depends on the arch so there's no functional chang

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Nice :-) http://reviews.llvm.org/D20959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

r271883 - [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
Author: ioeric Date: Mon Jun 6 06:00:13 2016 New Revision: 271883 URL: http://llvm.org/viewvc/llvm-project?rev=271883&view=rev Log: [clang-format] make header guard identification stricter (with Lexer). Summary: make header guard identification stricter with Lexer. Reviewers: djasper Subscribe

Re: [PATCH] D20959: [clang-format] make header guard identification stricter (with Lexer).

2016-06-06 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271883: [clang-format] make header guard identification stricter (with Lexer). (authored by ioeric). Changed prior to commit: http://reviews.llvm.org/D20959?vs=59700&id=59703#toc Repository: rL LLVM

Re: r271801 - Add PIE magic for NetBSD. Add tests for the correct flags for

2016-06-06 Thread Ismail Donmez via cfe-commits
Hi, On Sat, Jun 4, 2016 at 11:03 PM, Joerg Sonnenberger via cfe-commits wrote: > Author: joerg > Date: Sat Jun 4 15:03:26 2016 > New Revision: 271801 > > URL: http://llvm.org/viewvc/llvm-project?rev=271801&view=rev > Log: > Add PIE magic for NetBSD. Add tests for the correct flags for > non-shar

Re: r271801 - Add PIE magic for NetBSD. Add tests for the correct flags for

2016-06-06 Thread Joerg Sonnenberger via cfe-commits
On Mon, Jun 06, 2016 at 02:21:37PM +0300, Ismail Donmez wrote: > This seems to fail for me on Windows: > $ "C:/cygwin64/home/ismail/src/llvm/dist/./bin/clang.EXE" > "-no-canonical-prefixes" "-target" "x86_64--netbsd" > "--sysroot=C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver/Inputs/basic

Re: [PATCH] D21016: [mips] The default ABI depends on the CPU not the Arch on MTI and IMG vendor triples.

2016-06-06 Thread Simon Atanasyan via cfe-commits
atanasyan accepted this revision. atanasyan added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D21016 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

r271884 - [mips] The default ABI depends on the CPU not the Arch on MTI and IMG vendor triples.

2016-06-06 Thread Daniel Sanders via cfe-commits
Author: dsanders Date: Mon Jun 6 07:02:21 2016 New Revision: 271884 URL: http://llvm.org/viewvc/llvm-project?rev=271884&view=rev Log: [mips] The default ABI depends on the CPU not the Arch on MTI and IMG vendor triples. Summary: 32-bit CPU's default to O32. 64-bit CPU's default to N64. The defa

[PATCH] D21019: [include-fixer] try to make vim header selection more friendly.

2016-06-06 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added reviewers: bkramer, hokein. ioeric added a subscriber: cfe-commits. use 'input()' to get user's input so that we can support more options. http://reviews.llvm.org/D21019 Files: include-fixer/tool/clang-include-fixer.py Index: include-fixer/tool/clang

RE: Missing definition of a template virtual function

2016-06-06 Thread Srivastava, Sunil via cfe-commits
Hi Richard, Thanks for you analysis. I have some follow up questions though: First, either of these two suggestions below should fix the bug, though it may be better to do both. Right ? Then, approach (2) has a cost. It will prevent devirtualizations of calls which could get defined elsewhere.

Re: [PATCH] D20863: [analyzer] Fix for the strdup family in unix.malloc checker

2016-06-06 Thread Artem Dergachev via cfe-commits
NoQ added a comment. This patch is doing a very good thing - modeling contents of the copied string as a lazy compound value of the original string. For that, i guess it's worth adding some tests (ExprInspection-based(?)) that show that, say, first few characters of the copied string are same a

r271893 - Give FileCheck a hint on which ld to match. Under Windows, the preferred

2016-06-06 Thread Joerg Sonnenberger via cfe-commits
Author: joerg Date: Mon Jun 6 08:13:12 2016 New Revision: 271893 URL: http://llvm.org/viewvc/llvm-project?rev=271893&view=rev Log: Give FileCheck a hint on which ld to match. Under Windows, the preferred match was the ld.elf_so that should be matched in a second step. Add one of the ever-present-

[PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-06 Thread James Reynolds via cfe-commits
JamesReynolds created this revision. JamesReynolds added a reviewer: alexfh. JamesReynolds added a subscriber: cfe-commits. Added support for macro definitions. -- 1. Added a pre-processor callback to catch macro definitions 2. Changed the type of the failure map so that macros and declarations c

[PATCH] D21021: [Clang][AVX512][BuiltIn]Adding intrinsics move_{sd|ss} to clang

2016-06-06 Thread michael zuckerman via cfe-commits
m_zuckerman created this revision. m_zuckerman added reviewers: AsafBadouh, igorb, delena. m_zuckerman added a subscriber: cfe-commits. http://reviews.llvm.org/D21021 Files: include/clang/Basic/BuiltinsX86.def lib/Headers/avx512fintrin.h test/CodeGen/avx512f-builtins.c Index: test/CodeGen/

Re: [PATCH] D21019: [include-fixer] try to make vim header selection more friendly.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.py:53 @@ +52,3 @@ + except Exception: +if res == '': + # choose the top ranked header by default We can handle the ` ` , `a`, `q` cases after `res=vim.eval(to_eval)` instead

[libcxx] r271897 - Remove arithmetic +/-127 on chars; results in UB when dealing with signed chars. Thanks to STL@microsoft for the report.

2016-06-06 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jun 6 09:35:22 2016 New Revision: 271897 URL: http://llvm.org/viewvc/llvm-project?rev=271897&view=rev Log: Remove arithmetic +/-127 on chars; results in UB when dealing with signed chars. Thanks to STL@microsoft for the report. Modified: libcxx/trunk/test/std/str

[clang-tools-extra] r271896 - [clang-tidy] Do not try to suggest a fix if the parameter is partially in a macro.

2016-06-06 Thread Samuel Benzaquen via cfe-commits
Author: sbenza Date: Mon Jun 6 09:21:11 2016 New Revision: 271896 URL: http://llvm.org/viewvc/llvm-project?rev=271896&view=rev Log: [clang-tidy] Do not try to suggest a fix if the parameter is partially in a macro. It is not easy to tell where to do the suggestion and whether the suggestion wil

[PATCH] D21022: [ARM] Fix linker emulation for arm 32 big endian

2016-06-06 Thread Strahinja Petrovic via cfe-commits
spetrovic created this revision. spetrovic added reviewers: rafael, petarj. spetrovic added subscribers: rankov, ivanbaev, cfe-commits. Herald added subscribers: rengolin, aemerson. This patch fixes target linker emulation for arm 32 big endian. As I saw in gcc only supported linker emulation is

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59721. hokein marked an inline comment as done. hokein added a comment. Address review comments. http://reviews.llvm.org/D20467 Files: docs/ReleaseNotes.rst docs/include-fixer.rst Index: docs/include-fixer.rst ===

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D20467#435685, @Eugene.Zelenko wrote: > Could you please mention include-fixer in docs/ReleaseNotes.rst? This is > definitely major new feature in upcoming release. Done. http://reviews.llvm.org/D20467 ___

Re: [PATCH] D21019: [include-fixer] try to make vim header selection more friendly.

2016-06-06 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 59722. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed reviewer's comments. http://reviews.llvm.org/D21019 Files: include-fixer/tool/clang-include-fixer.py Index: include-fixer/tool/clang-include-fixer.py =

[PATCH] D21023: [mips] Defer validity check for CPU/ABI pairs and improve error message for invalid cases.

2016-06-06 Thread Daniel Sanders via cfe-commits
dsanders created this revision. dsanders added a reviewer: atanasyan. dsanders added a subscriber: cfe-commits. Herald added a subscriber: sdardis. The validity of ABI/CPU pairs is no longer checked on the fly but is instead checked after initialization. As a result, invalid CPU/ABI pairs can be r

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: docs/ReleaseNotes.rst:47 @@ -46,2 +46,3 @@ -- Feature1... +- :program:`clang-include-fixer`, a tool provides an automated way of adding + ``#include`` directives for missing symbols in one translation unit. a tool **th

Re: [PATCH] D20687: [ASTMatchers] Make isNoThrow and hasDynamicExceptionSpec polymorphic for use with both functionDecl and functionProtoType

2016-06-06 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 59726. hintonda added a comment. Update narrowing matchers, isNoThrow and hasDynamicExceptionSpec, to work with both functionDecl and functionProtoType matchers. Update tests and regenerate documentation. Since FunctionDecl and FunctionProtoType are not pol

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59725. hokein marked 3 inline comments as done. hokein added a comment. Add comments. http://reviews.llvm.org/D20467 Files: docs/ReleaseNotes.rst docs/include-fixer.rst Index: docs/include-fixer.rst ==

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. Two more nits, looks good otherwise :) Comment at: docs/include-fixer.rst:73 @@ +72,3 @@ + +You can custonmize the number of headers being showed by setting +``let g:clang_i

Re: [PATCH] D20133: [OpenCL] Fix __builtin_astype for vec3 types.

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

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-06 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: test/Headers/opencl-c-header.cl:50 @@ +49,3 @@ +// RUN: %clang_cc1 -cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash %s | FileCheck %

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-06 Thread Yaxun Liu via cfe-commits
yaxunl updated the summary for this revision. yaxunl updated this revision to Diff 59733. yaxunl marked 8 inline comments as done. yaxunl added a comment. Update the diagnositic msg for fblocks. http://reviews.llvm.org/D20444 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/B

Re: [PATCH] D20133: [OpenCL] Fix __builtin_astype for vec3 types.

2016-06-06 Thread Yaxun Liu via cfe-commits
yaxunl marked 5 inline comments as done. yaxunl added a comment. Ping Xiuli, could you please take a look? Thanks. http://reviews.llvm.org/D20133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

Re: [PATCH] D21022: [ARM] Fix linker emulation for arm 32 big endian

2016-06-06 Thread Peter Smith via cfe-commits
peter.smith added a comment. That looks correct to me. Certainly armebelf_linux_eabi is not recognised on a recent ld. Comment at: lib/Driver/Tools.cpp:9098 @@ -9097,3 +9097,3 @@ case llvm::Triple::thumbeb: -return "armebelf_linux_eabi"; /* TODO: check which NAME. */ +

Re: r271544 - [docs] Add a limitations section to SourceBasedCodeCoverage.rst

2016-06-06 Thread Vedant Kumar via cfe-commits
> On Jun 4, 2016, at 6:28 PM, Sean Silva wrote: > > > > On Thu, Jun 2, 2016 at 10:19 AM, Vedant Kumar via cfe-commits > wrote: > Author: vedantk > Date: Thu Jun 2 12:19:45 2016 > New Revision: 271544 > > URL: http://llvm.org/viewvc/llvm-project?rev=271544&view=rev > Log: > [docs] Add a lim

r271902 - [docs] Clarify limitations section of SourceBasedCodeCoverage.rst

2016-06-06 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Mon Jun 6 10:44:40 2016 New Revision: 271902 URL: http://llvm.org/viewvc/llvm-project?rev=271902&view=rev Log: [docs] Clarify limitations section of SourceBasedCodeCoverage.rst Mention that the code coverage tool becomes less precise whenever unpredictable changes in contro

[PATCH] D21026: [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline.

2016-06-06 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: djasper. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek. append newline after code when inserting new headers at the end of the code which does not end with newline. http://reviews.llvm.org/D21026 Files: lib/Form

Re: [PATCH] D20687: [ASTMatchers] Make isNoThrow and hasDynamicExceptionSpec polymorphic for use with both functionDecl and functionProtoType

2016-06-06 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. This is looking good, aside from a few small nits. The only question I have remaining is whether this should be on FunctionProtoType or FunctionType? I think being on FunctionProtoType (how you have it) is preferable. @sbenza or @klimek, do you agree? ==

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-06-06 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7882 @@ -7881,1 +7881,3 @@ "multiple access qualifiers">; +def warn_default_access_qualifier : Warning< + "missing access qualifier: assuming read_only">, I am not sure why

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-06 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/Headers/opencl-c-header.cl:50 @@ +49,3 @@ +// RUN: %clang_cc1 -cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash %s | FileChec

[PATCH] D21030: [Sema] Fix rejects-valid where parameter pack was not expanded in type alias

2016-06-06 Thread Erik Pilkington via cfe-commits
erik.pilkington created this revision. erik.pilkington added a reviewer: rsmith. erik.pilkington added a subscriber: cfe-commits. Clang rejects the following valid code: ``` template struct Foo {}; template using FooAlias = Foo; template int bar(FooAlias); int main() { bar(FooAlias<>()); } ```

r271907 - [analyzer] Add checker for correct usage of MPI API in C and C++.

2016-06-06 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Jun 6 11:47:16 2016 New Revision: 271907 URL: http://llvm.org/viewvc/llvm-project?rev=271907&view=rev Log: [analyzer] Add checker for correct usage of MPI API in C and C++. This commit adds a static analysis checker to check for the correct usage of the MPI API in C a

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2016-06-06 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271907: [analyzer] Add checker for correct usage of MPI API in C and C++. (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D12761?vs=54001&id=59742#toc Repository: rL LLVM h

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-06-06 Thread Vitaly Buka via cfe-commits
vitalybuka added a comment. Is anything blocking us on this review? http://reviews.llvm.org/D20499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r271909 - Revert "[analyzer] Add checker for correct usage of MPI API in C and C++."

2016-06-06 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Jun 6 12:01:08 2016 New Revision: 271909 URL: http://llvm.org/viewvc/llvm-project?rev=271909&view=rev Log: Revert "[analyzer] Add checker for correct usage of MPI API in C and C++." This reverts commit r271907. It broke a bunch of bots with compile errors about specia

r271910 - Better Visual Studio visualization of TemplateArgument and TemplateArgumentList

2016-06-06 Thread Mike Spertus via cfe-commits
Author: mps Date: Mon Jun 6 12:08:32 2016 New Revision: 271910 URL: http://llvm.org/viewvc/llvm-project?rev=271910&view=rev Log: Better Visual Studio visualization of TemplateArgument and TemplateArgumentList For pack TemplateArguments, visualize all of the items in the pack Visualize a Template

Re: [PATCH] D20687: [ASTMatchers] Make isNoThrow and hasDynamicExceptionSpec polymorphic for use with both functionDecl and functionProtoType

2016-06-06 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 59747. hintonda added a comment. Use FunctionProtoType instead of auto for clarity. http://reviews.llvm.org/D20687 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h include/clang/ASTMatchers/ASTMatchersInternal.h unit

[PATCH] D21031: [OpenCL] Allow -cl-std and other standard -cl- options in driver

2016-06-06 Thread Aaron En Ye Shi via cfe-commits
ashi1 created this revision. ashi1 added a reviewer: Anastasia. ashi1 added subscribers: yaxunl, cfe-commits, pxli168, bader, rsmith, nhaustov. Allow -cl-std and other standard -cl- options from cc1 to driver. Added a test for the options moved. http://reviews.llvm.org/D21031 Files: include/c

r271911 - Fix typo in last submission to visualize proper template argument

2016-06-06 Thread Mike Spertus via cfe-commits
Author: mps Date: Mon Jun 6 12:23:37 2016 New Revision: 271911 URL: http://llvm.org/viewvc/llvm-project?rev=271911&view=rev Log: Fix typo in last submission to visualize proper template argument Modified: cfe/trunk/utils/ClangVisualizers/clang.natvis Modified: cfe/trunk/utils/ClangVisualize

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2016-06-06 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. This doesn't compile under gcc so it broke the bots. The fix is to move the specialization of clang::ento::ProgramStateTrait for RequestMapImpl out of the global namespace and into clang::ento. I will apply and recommit. Repository: rL LLVM http://reviews.llvm.org

Re: [PATCH] D20499: [Temporary, Lifetime] Add lifetime marks for temporaries

2016-06-06 Thread Tim Shen via cfe-commits
timshen added a comment. I'm looking at some internal test failures caused by this patch. http://reviews.llvm.org/D20499 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r271914 - Reapply "[analyzer] Add checker for correct usage of MPI API in C and C++."

2016-06-06 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Jun 6 13:08:35 2016 New Revision: 271914 URL: http://llvm.org/viewvc/llvm-project?rev=271914&view=rev Log: Reapply "[analyzer] Add checker for correct usage of MPI API in C and C++." Reapply r271907 with a fix for the compiler error with gcc about specializing clang::

r271918 - Add a release note about the --build-id change.

2016-06-06 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Mon Jun 6 13:23:11 2016 New Revision: 271918 URL: http://llvm.org/viewvc/llvm-project?rev=271918&view=rev Log: Add a release note about the --build-id change. Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewv

[libcxx] r271919 - Rename some test data (and make it const) to rid us of some shadowing warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch.

2016-06-06 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jun 6 13:24:08 2016 New Revision: 271919 URL: http://llvm.org/viewvc/llvm-project?rev=271919&view=rev Log: Rename some test data (and make it const) to rid us of some shadowing warnings in the test suite. No functional change. Thanks to STL@microsoft for the report an

Re: [PATCH] D20922: [libcxx] [test] Rename global "x" to "testcases" in complex.number/cases.h and make it const for safety.

2016-06-06 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. Landed as revision 271919 http://reviews.llvm.org/D20922 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

r271920 - Revert "Reapply "[analyzer] Add checker for correct usage of MPI API in C and C++.""

2016-06-06 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Mon Jun 6 13:29:43 2016 New Revision: 271920 URL: http://llvm.org/viewvc/llvm-project?rev=271920&view=rev Log: Revert "Reapply "[analyzer] Add checker for correct usage of MPI API in C and C++."" This reverts commit r271914. It is still breaking bots. Removed: cfe/t

Re: [PATCH] D20933: Preallocate ExplodedNode hash table

2016-06-06 Thread Ben Craig via cfe-commits
bcraig added a comment. I'll try to get those stats. My suspicion is that it is highly language / projects specific. Specifically, I suspect that C (and maybe ObjC?) won't hit the analysis limit often, but that C++ will hit the limit frequently because of the large number of inline functions.

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-06 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. It'll be good idea to mention improvement in docs/ReleaseNotes.rst. Please close PR23198 after commit. http://reviews.llvm.org/D21020 ___ cfe-commits mailing list c

r271927 - Adding an AST matcher to ignore parenthesis in *types* (rather than expressions). This is required for traversing certain types (like function pointer types).

2016-06-06 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Jun 6 13:52:17 2016 New Revision: 271927 URL: http://llvm.org/viewvc/llvm-project?rev=271927&view=rev Log: Adding an AST matcher to ignore parenthesis in *types* (rather than expressions). This is required for traversing certain types (like function pointer types)

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-06 Thread Yaxun Liu via cfe-commits
yaxunl marked 4 inline comments as done. Comment at: test/Headers/opencl-c-header.cl:50 @@ +49,3 @@ +// RUN: %clang_cc1 -cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash %s |

Re: [PATCH] D20681: Add target-specific pre-linking passes to Clang

2016-06-06 Thread Yaxun Liu via cfe-commits
yaxunl marked 2 inline comments as done. yaxunl added a comment. In http://reviews.llvm.org/D20681#448443, @Anastasia wrote: > Do you think we could add any test for this change? We have prelinking passes in amdgpu backend but it requires the llvm change to be committed first. We can add a tes

[PATCH] D21036: Misplaced const-qualification with typedef types

2016-06-06 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: alexfh, sbenza, hokein. aaron.ballman added a subscriber: cfe-commits. Sometimes it's easy for developers to not notice that the type they are working with is a typedef type to a pointer and add a const-qualifier that applies to

[clang-tools-extra] r271933 - clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Miklos Vajna via cfe-commits
Author: vmiklos Date: Mon Jun 6 14:40:12 2016 New Revision: 271933 URL: http://llvm.org/viewvc/llvm-project?rev=271933&view=rev Log: clang-rename: implement renaming of classes inside static_cast "Derived" in static_cast(...) wasn't renamed, nor in its pointer equivalent. Reviewers: klimek Dif

Re: [PATCH] D21012: clang-rename: implement renaming of classes inside static_cast

2016-06-06 Thread Miklos Vajna via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271933: clang-rename: implement renaming of classes inside static_cast (authored by vmiklos). Changed prior to commit: http://reviews.llvm.org/D21012?vs=59695&id=59766#toc Repository: rL LLVM http:/

Re: [PATCH] D21036: Misplaced const-qualification with typedef types

2016-06-06 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. I think this would be more interesting with macros. Eg triggering in code like this: #define FOO(type, op) const type& X = op() FOO(int*, bar); Comment at: clang-tidy/misc/MisplacedConstCheck.cpp:32 @@ +31,3 @@ + +static QualType GuessAlternateQualif

Re: [PATCH] D17462: Fix a codegen bug for variadic functions with pass_object_size params

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

Re: [PATCH] D21036: Misplaced const-qualification with typedef types

2016-06-06 Thread Aaron Ballman via cfe-commits
aaron.ballman marked an inline comment as done. aaron.ballman added a comment. Thank you for the quick turn-around! Comment at: test/clang-tidy/misc-misplaced-const.c:20 @@ +19,3 @@ + const volatile ip i4 = 0; + // CHECK-MESSAGES: :[[@LINE-1]]:21: warning: 'i4' declared with a

r271937 - [CMake] Fixing a typo in a CMake option

2016-06-06 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Mon Jun 6 15:18:38 2016 New Revision: 271937 URL: http://llvm.org/viewvc/llvm-project?rev=271937&view=rev Log: [CMake] Fixing a typo in a CMake option CMake defines are set with -D, forgetting the D doesn’t work. Modified: cfe/trunk/runtime/CMakeLists.txt Modified:

Re: [PATCH] D20985: [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue.

2016-06-06 Thread Artem Belevich via cfe-commits
tra updated this revision to Diff 59778. tra added a comment. Replaced if() with assert() to catch unexpected PerformCopyInitialization() failures. http://reviews.llvm.org/D20985 Files: lib/Sema/SemaDeclAttr.cpp test/CodeGenCUDA/launch-bounds.cu test/SemaCUDA/pr27778.cu Index: test/Sema

Re: [PATCH] D20985: [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue.

2016-06-06 Thread Artem Belevich via cfe-commits
tra marked an inline comment as done. tra added a comment. http://reviews.llvm.org/D20985 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17516: AMDGPU: Verify subtarget specific builtins

2016-06-06 Thread Matt Arsenault via cfe-commits
arsenm added a comment. ping http://reviews.llvm.org/D17516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-06 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: test/PCH/include-timestamp.cpp:8 @@ +7,3 @@ +// RUN: sleep 1 +// RUN: not %clang_cc1 -include-pch %t %s 2>&1 | FileCheck -check-prefix=CHECK-TIMESTAMP %s + pgousseau wrote: > Without the sleep the test fails for me, as it

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-06 Thread Richard Smith via cfe-commits
On Wed, Jun 1, 2016 at 8:33 AM, pierre gousseau via cfe-commits < cfe-commits@lists.llvm.org> wrote: > pgousseau created this revision. > pgousseau added reviewers: rsmith, thakis. > pgousseau added subscribers: cfe-commits, wristow, probinson, gbedwell, > bruno, cameron314. > > On Linux, if the t

Re: [PATCH] D20933: Preallocate ExplodedNode hash table

2016-06-06 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > Specifically, I suspect that C (and maybe ObjC?) won't hit the analysis limit > often, but that C++ will hit the > limit frequently because of the large number of inline functions. It might be valuable to know this. Maybe we should changer the default for C++? >

Re: r269670 - [OpenCL] Add supported OpenCL extensions to target info.

2016-06-06 Thread Jeroen Ketema via cfe-commits
Hi Sam, Thanks baring with me, and thanks a lot for your explanation! I indeed now believe that this is correct; I got somewhat confused by all the macro magic that is going on, and had missed that the enabled extensions are actually stored in a class instance separate from the one with availab

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18035#448057, @hfinkel wrote: > We just received the first draft of that specification yesterday. Is this specification confidential? If not, why it hasn't been made available in this code review? Most puzzlingly, why it hasn't been s

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Richard Smith via cfe-commits
rsmith added a comment. Yes, I definitely want us to implement this for GCC compatibility. And now that we have a specification for this feature, we can evaluate whether this is doing the right thing. On that basis: I still want this refactored so that the normally-mangled part of a function n

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In http://reviews.llvm.org/D18035#450211, @andreybokhanko wrote: > In http://reviews.llvm.org/D18035#448057, @hfinkel wrote: > > > We just received the first draft of that specification yesterday. > > > Is this specification confidential? The link was posted here: http

Re: [PATCH] D20997: [Coverage] Fix an assertion failure if the definition of an unused function spans multiple files.

2016-06-06 Thread Vedant Kumar via cfe-commits
vsk added a comment. Thanks, this looks good overall. I just have a few minor comments. Comment at: lib/CodeGen/CoverageMappingGen.cpp:329 @@ +328,3 @@ + FileID ParentFile = SM.getFileID(Start); + while (ParentFile != SM.getFileID(End) && !isNestedIn(End, ParentFile))

r271944 - Improved Visual Studio visualizations for template argument lists

2016-06-06 Thread Mike Spertus via cfe-commits
Author: mps Date: Mon Jun 6 16:41:20 2016 New Revision: 271944 URL: http://llvm.org/viewvc/llvm-project?rev=271944&view=rev Log: Improved Visual Studio visualizations for template argument lists Improved the visualizer for TemplateArgumentList to show type arguments in the DisplayString. E.g.,

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-06 Thread Eric Niebler via cfe-commits
On 6/3/16, 4:13 PM, "tha...@google.com on behalf of Nico Weber" wrote: >On Fri, Jun 3, 2016 at 7:07 PM, Eric Niebler wrote: >>On 6/3/16, 3:24 PM, "tha...@google.com on behalf of Nico Weber" >> wrote: >>> On Fri, Jun 3, 2016 at 6:14 PM, Eric Niebler wrote: I just checked, and warnings are

Re: [PATCH] D20693: [clang-tidy] New checker to replace dynamic exception specifications

2016-06-06 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 59794. hintonda added a comment. Update matcher to use functionProtoType instead of functionType. http://reviews.llvm.org/D20693 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptC

Re: [PATCH] D18035: [GCC] PR23529 Mangler part of attrbute abi_tag support

2016-06-06 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. In http://reviews.llvm.org/D18035#450247, @hfinkel wrote: > The link was posted here: > http://sourcerytools.com/pipermail/cxx-abi-dev/2016-June/002919.html - which > is the mailing list where the C++ ABI specification is discussed. Ah, I see... Dmitry told me

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-06 Thread Richard Smith via cfe-commits
On Mon, Jun 6, 2016 at 3:28 PM, Eric Niebler via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 6/3/16, 4:13 PM, "tha...@google.com on behalf of Nico Weber" < > tha...@google.com on behalf of tha...@chromium.org> wrote: > >On Fri, Jun 3, 2016 at 7:07 PM, Eric Niebler wrote: > >>On 6/3/16,

r271951 - [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue.

2016-06-06 Thread Artem Belevich via cfe-commits
Author: tra Date: Mon Jun 6 17:54:57 2016 New Revision: 271951 URL: http://llvm.org/viewvc/llvm-project?rev=271951&view=rev Log: [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue. Fixes clang crash reported in PR27778. Differential Revision: http://reviews.llvm.org/D20985

Re: [PATCH] D20985: [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue.

2016-06-06 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271951: [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D20985?vs=59778&id=59800#toc Repository: rL LLVM

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-06 Thread Eric Niebler via cfe-commits
On 6/6/16, 3:58 PM, "meta...@gmail.com on behalf of Richard Smith" wrote: >On Mon, Jun 6, 2016 at 3:28 PM, Eric Niebler via cfe-commits > wrote: >>On 6/3/16, 4:13 PM, "tha...@google.com on behalf of Nico Weber" >> wrote: >>>On Fri, Jun 3, 2016 at 7:07 PM, Eric Niebler wrote: On 6/3/16, 3:2

  1   2   >