Re: [PATCH] D23987: [Coverage] Suppress creating a code region if the same area is covered by an expansion region.

2016-08-31 Thread Igor Kudrin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL280199: [Coverage] Suppress creating a code region if the same area is covered by an… (authored by ikudrin). Changed prior to commit: https://reviews.llvm.org/D23987?vs=69709&id=69799#toc Repository:

r280199 - [Coverage] Suppress creating a code region if the same area is covered by an expansion region.

2016-08-31 Thread Igor Kudrin via cfe-commits
Author: ikudrin Date: Wed Aug 31 02:04:16 2016 New Revision: 280199 URL: http://llvm.org/viewvc/llvm-project?rev=280199&view=rev Log: [Coverage] Suppress creating a code region if the same area is covered by an expansion region. In most cases these code regions are just redundant, but sometimes

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Alexander Shaposhnikov via cfe-commits
alexshap added a comment. good call, i have found a bug in handling of initListExprs. Will update this diff and add tests. Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D24069: Document option '-rtlib' in clang's man page and help info

2016-08-31 Thread Lei Zhang via cfe-commits
zlei created this revision. zlei added reviewers: cfe-commits, Hahnfeld. This patch adds an entry for "-rtlib" in the output of `man clang` and `clang -help`. https://reviews.llvm.org/D24069 Files: docs/CommandGuide/clang.rst include/clang/Driver/Options.td Index: include/clang/Driver/Opti

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Alexander Shaposhnikov via cfe-commits
alexshap updated this revision to Diff 69807. alexshap added a comment. 1. Fix handling of initListExprs. http://clang.llvm.org/doxygen/Expr_8h_source.html#l03701 2. Fix handling of unchanged files 3. Add tests (AggregatePartialInitialization and ClassDifferentFieldsAccesses) Repository: rL

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:181 @@ +180,3 @@ + assert(InitListEx && "Init list expression is null"); + // we care only about brace initializations + // which have valid source locations Write full sent

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 69812. hokein marked 26 inline comments as done. hokein added a comment. Address aaron's comments. https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-nam

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein added a comment. wow, thanks for many detailed comments. Comment at: docs/clang-tidy/checks/google-build-namespaces.rst:21 @@ +20,3 @@ + extensions should not contain "." prefix). "h,hh,hpp,hxx" by default. For + extension-less header files, using an empty string or l

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Alexander Shaposhnikov via cfe-commits
alexshap updated this revision to Diff 69814. alexshap added a comment. 1. Fix comments (hope so). 2. if (const auto *SyntacticForm = InitListEx->getSyntacticForm()) InitListEx = SyntacticForm; Repository: rL LLVM https://reviews.llvm.org/D23279 Files: CMakeLists.txt clang-reorder-field

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Alexander Shaposhnikov via cfe-commits
alexshap marked an inline comment as done. alexshap added a comment. Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Alexander Shaposhnikov via cfe-commits
alexshap marked an inline comment as done. alexshap added a comment. Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23279: clang-reorder-fields

2016-08-31 Thread Daniel Jasper via cfe-commits
djasper added a comment. Looks good :). Repository: rL LLVM https://reviews.llvm.org/D23279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r280133 - PR30195: Fix clang-cl attempting to precompile bogus (non-precompilable) input types.

2016-08-31 Thread Renato Golin via cfe-commits
Thanks! On 31 August 2016 at 01:02, Richard Smith wrote: > Hopefully r280178 should fix this. > > On Tue, Aug 30, 2016 at 4:00 PM, Renato Golin > wrote: >> >> On 30 August 2016 at 22:44, Renato Golin wrote: >> > This breakage was hidden by Duncan's build breakage: >> > >> > http://lab.llvm.org:

Re: r280065 - Fix for commit 280064 that break the build.

2016-08-31 Thread Renato Golin via cfe-commits
On 30 August 2016 at 09:56, Sjoerd Meijer via cfe-commits wrote: > Author: sjoerdmeijer > Date: Tue Aug 30 03:56:00 2016 > New Revision: 280065 > > URL: http://llvm.org/viewvc/llvm-project?rev=280065&view=rev > Log: > Fix for commit 280064 that break the build. Any more info on this? Is this bein

RE: r280065 - Fix for commit 280064 that break the build.

2016-08-31 Thread Sjoerd Meijer via cfe-commits
Hi, I uploaded the incorrect patch, it shouldn't have included the -fexceptions-fp-math because we decided to use trapping-math and therefore I removed these test lines in the quick fix. Regression test test/CodeGen/noexceptionsfpmath.c makes sure -fno-trapping-math ends up as a function attri

r280220 - Attempt to pacify buildbots after r280217

2016-08-31 Thread James Molloy via cfe-commits
Author: jamesm Date: Wed Aug 31 06:01:41 2016 New Revision: 280220 URL: http://llvm.org/viewvc/llvm-project?rev=280220&view=rev Log: Attempt to pacify buildbots after r280217 These clang tests check diagnostics from the backend by giving it an unvectorizable loop. This loop is now vectorized :/

Re: r280065 - Fix for commit 280064 that break the build.

2016-08-31 Thread Renato Golin via cfe-commits
On 31 August 2016 at 11:30, Sjoerd Meijer wrote: > Regression test test/CodeGen/noexceptionsfpmath.c makes sure > -fno-trapping-math ends up as a function attribute, and I relied on that. > Flag -fno-trapping-math is used a lot in test/Driver/fast-math.c, but you are > right that there is no te

[PATCH] D24075: [include-fixer] Add a `query-symbol` option to query symbol without parsing the source file.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D24075 Files: include-fixer/find-all-symbols/SymbolInfo.h include-fixer/tool/ClangIncludeFixer.cpp test/include-fixer/query_symbol.cpp Index: test/include-fixer/

r280227 - Revision r280064 adds new options -fdenormal-fp-math and passes through option

2016-08-31 Thread Sjoerd Meijer via cfe-commits
Author: sjoerdmeijer Date: Wed Aug 31 07:31:03 2016 New Revision: 280227 URL: http://llvm.org/viewvc/llvm-project?rev=280227&view=rev Log: Revision r280064 adds new options -fdenormal-fp-math and passes through option -ffast-math to CC1, but it included a wrong llvm regression tests which was remo

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: docs/clang-tidy/checks/google-build-namespaces.rst:21 @@ +20,3 @@ + extensions should not include "." prefix). Default is "h,hh,hpp,hxx". + For header files without an extension, use an empty string (if there are no + other de

cfe-commits@lists.llvm.org

2016-08-31 Thread Eric Fiselier via cfe-commits
ping. On Sun, Aug 28, 2016 at 7:52 PM, Eric Fiselier wrote: > @Hans While working on the std::tuple bug I found this bug in std::pair. > Since we are already doing another RC I would like to merge this fix. > > @Marshall Sound OK to you? > > /Eric > > On Sun, Aug 28, 2016 at 7:43 PM, Eric Fiseli

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/google-build-namespaces.rst:21 @@ +20,3 @@ + extensions should not include "." prefix). Default is "h,hh,hpp,hxx". + For header files without an extension, use an empty string (if there are no + other desired e

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: docs/clang-tidy/checks/google-build-namespaces.rst:21 @@ +20,3 @@ + extensions should not include "." prefix). Default is "h,hh,hpp,hxx". + For header files without an extension, use an empty string (if there are no + other de

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: docs/clang-tidy/checks/google-build-namespaces.rst:21 @@ +20,3 @@ + extensions should not include "." prefix). Default is "h,hh,hpp,hxx". + For header files without an extension, use an empty string (if there are no + othe

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you for the updated documentation! https://reviews.llvm.org/D23918 ___ cfe-commits mailing list cfe-commits@lists.llvm.

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 69838. hokein marked 3 inline comments as done. hokein added a comment. Fix more comments. https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-namespaces.

[clang-tools-extra] r280235 - [docs] Fix docs build error.

2016-08-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Aug 31 08:17:48 2016 New Revision: 280235 URL: http://llvm.org/viewvc/llvm-project?rev=280235&view=rev Log: [docs] Fix docs build error. Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst URL: http://llvm.

[clang-tools-extra] r280236 - [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Aug 31 08:21:18 2016 New Revision: 280236 URL: http://llvm.org/viewvc/llvm-project?rev=280236&view=rev Log: [clang-tidy docs] Add missing option docs. Reviewers: alexfh, Eugene.Zelenko, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: https:/

r280240 - [clang-format-vim] Support vim linked against py3

2016-08-31 Thread Luke Drummond via cfe-commits
Author: ldrumm Date: Wed Aug 31 08:36:36 2016 New Revision: 280240 URL: http://llvm.org/viewvc/llvm-project?rev=280240&view=rev Log: [clang-format-vim] Support vim linked against py3 clang-format.py previously only worked in vim compiled against python2. This patch adds the necessary syntax chan

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 69839. hokein added a comment. Update HeaderFileExtensions doc for all documents. https://reviews.llvm.org/D23918 Files: docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst docs/clang-tidy/checks/google-build-namespaces.rst doc

Re: [PATCH] D24040: codechecker tool core

2016-08-31 Thread Laszlo Nagy via cfe-commits
rizsotto.mailinglist added a comment. Gyorgy and the ericsson team, thanks for doing this. very good job! good targeted functionality. i don't want to underestimate the complexity it requires, but to me this is a giant code. i do miss the explanation of the overall functional description what a

r280245 - clang-format: Set default WebKit style to use C++11.

2016-08-31 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Wed Aug 31 09:05:56 2016 New Revision: 280245 URL: http://llvm.org/viewvc/llvm-project?rev=280245&view=rev Log: clang-format: Set default WebKit style to use C++11. The WebKit style page says to use nullptr, so this should be fine: https://webkit.org/code-style-guidelines/

Re: [PATCH] D23918: [clang-tidy docs] Add missing option docs.

2016-08-31 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL280236: [clang-tidy docs] Add missing option docs. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23918?vs=69839&id=69840#toc Reposito

Re: [PATCH] D24075: [include-fixer] Add a `query-symbol` option to query symbol without parsing the source file.

2016-08-31 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 69847. hokein added a comment. Update the test. https://reviews.llvm.org/D24075 Files: include-fixer/find-all-symbols/SymbolInfo.h include-fixer/tool/ClangIncludeFixer.cpp test/include-fixer/query_symbol.cpp Index: test/include-fixer/query_symbol.cpp

Re: [PATCH] D24040: codechecker tool core

2016-08-31 Thread Artem Tamazov via cfe-commits
artem.tamazov resigned from this revision. artem.tamazov removed a reviewer: artem.tamazov. artem.tamazov added a comment. It seems that my name got into reviewers list by mistake. https://reviews.llvm.org/D24040 ___ cfe-commits mailing list cfe-com

[libcxxabi] r280251 - Wrap LIBCXXABI_USE_LLVM_UNWINDER with defined().

2016-08-31 Thread Logan Chien via cfe-commits
Author: logan Date: Wed Aug 31 10:16:40 2016 New Revision: 280251 URL: http://llvm.org/viewvc/llvm-project?rev=280251&view=rev Log: Wrap LIBCXXABI_USE_LLVM_UNWINDER with defined(). This commit fixes -Wundef by replacing: #if !LIBCXXABI_USE_LLVM_UNWINDER with: #if !defined(LIBCXXABI_USE

[PATCH] D24080: [lit] Replace print with lit_config.note().

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin, EricWF. logan added a subscriber: cfe-commits. This commit replaces print statement with lit_config.note(). This fixes python3 support for check-libcxxabi. https://reviews.llvm.org/D24080 Files: test/lit.cfg Index: te

[PATCH] D24085: arm: Fix ttype encoding assertion failure.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin. logan added a subscriber: cfe-commits. Herald added subscribers: samparker, rengolin, aemerson. GCC 4.7 or newer emits 0x90 (indirect | pcrel) as the ttype encoding. This would hit an assertion in cxa_personality.cpp. This

[PATCH] D24083: [CMake] Fix libc++abi __aeabi_idiv() link error.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin, EricWF. logan added a subscriber: cfe-commits. Herald added a subscriber: aemerson. This commit fixes __aeabi_idiv() link error when we are building libc++abi with compiler-rt. When compiler-rt is enabled, the option `--rt

[PATCH] D24082: [CMake] Fix libc++abi arm build w/o libunwind.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin, EricWF. logan added a subscriber: cfe-commits. Herald added subscribers: samparker, rengolin, aemerson. This commit fixes libc++abi build when LLVM unwinder (libunwind_llvm) is not enabled. This commit fixes the problem by

[PATCH] D24084: [CMake] Cleanup libunwind lookup code.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin, EricWF, danalbert, thakis. logan added a subscriber: cfe-commits. This commit refines the code for libunwind lookup. First, this commit will always search for libunwind no matter LLVM unwinder is enabled or not. We have t

Re: [PATCH] D24084: [CMake] Cleanup libunwind lookup code.

2016-08-31 Thread Renato Golin via cfe-commits
rengolin added a comment. > We have to do so because we need the modified "unwind.h" from libunwind. > (Note: which is bundled with clang/gcc is not sufficient.) So, you need libunwind's sources, even if you're not building or using them, to build libc++abi? https://reviews.llvm.org/D24084

[PATCH] D24081: [CMake] Fix libc++abi standalone cmake build.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, rengolin, EricWF. logan added a subscriber: cfe-commits. The cmake files install directory has been changed to ${prefix}/lib/cmake/llvm since r259821. Searching cmake modules in ${prefix}/share/llvm/cmake will result in fatal errors

Re: [PATCH] D24024: Checkout cfe when building clang-tools-extra docs.

2016-08-31 Thread Dmitri Gribenko via cfe-commits
gribozavr accepted this revision. gribozavr added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D24024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: [PATCH] D24084: [CMake] Cleanup libunwind lookup code.

2016-08-31 Thread Logan Chien via cfe-commits
logan added a comment. Yes. This is what we have today. We can either (1) specify the path to libunwind or (2) manually download `unwind.h` header from libunwind project and place it to `include` directory. https://reviews.llvm.org/D24084 ___ cfe

Re: [PATCH] D24082: [CMake] Fix libc++abi arm build w/o libunwind.

2016-08-31 Thread Renato Golin via cfe-commits
rengolin added a comment. That match would only make sense if LLVM's unwinder was forced on ARM targets, and they're most certainly not. Expecting both unwindwers to behave identically makes no sense. This fix looks good to me, but I'll let Marshall or Eric have a look first. https://reviews.

r280255 - [codeview] Pass through vftable shape information

2016-08-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Aug 31 11:11:43 2016 New Revision: 280255 URL: http://llvm.org/viewvc/llvm-project?rev=280255&view=rev Log: [codeview] Pass through vftable shape information The shape is really just the number of methods in the vftable, since we don't support 16 bit far calls. All calls are

[PATCH] D24087: [lit] Allow more file extensions for test cases.

2016-08-31 Thread Logan Chien via cfe-commits
logan created this revision. logan added reviewers: mclow.lists, EricWF. logan added a subscriber: cfe-commits. This commit splits the file extensions before determining the test format. This allows libc++abi to add assembly-based test cases. https://reviews.llvm.org/D24087 Files: test/libcxx

Re: [PATCH] D24084: [CMake] Cleanup libunwind lookup code.

2016-08-31 Thread Logan Chien via cfe-commits
logan added a comment. In https://reviews.llvm.org/D24084#530433, @rengolin wrote: > That is a horrible dependency... I never hit it because I always test libc++ > with libunwind. I think the best solution is to move/merge `libunwind/include/unwind.h` to/with `clang/lib/Headers/unwind.h`. An

Re: [PATCH] D24084: [CMake] Cleanup libunwind lookup code.

2016-08-31 Thread Renato Golin via cfe-commits
rengolin added a comment. In https://reviews.llvm.org/D24084#530427, @logan wrote: > We can either (1) specify the path to libunwind or (2) manually download > `unwind.h` header from libunwind project and place it to `include` directory. That is a horrible dependency... I never hit it because

Re: [PATCH] D23848: Add a clang-tidy Visual Studio extension

2016-08-31 Thread Zachary Turner via cfe-commits
zturner added a comment. I am planning to submit this today if there are no further suggestions. https://reviews.llvm.org/D23848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r280257 - s/static inline/static/ for headers I have changed in r279475. NFC.

2016-08-31 Thread Tim Shen via cfe-commits
Author: timshen Date: Wed Aug 31 11:48:13 2016 New Revision: 280257 URL: http://llvm.org/viewvc/llvm-project?rev=280257&view=rev Log: s/static inline/static/ for headers I have changed in r279475. NFC. Modified: cfe/trunk/include/clang/AST/StmtGraphTraits.h cfe/trunk/include/clang/Analysi

Re: [PATCH] D24040: codechecker tool core

2016-08-31 Thread Mehdi AMINI via cfe-commits
mehdi_amini added a subscriber: mehdi_amini. mehdi_amini added a comment. This looks like a fairly large tool. Should it get its own "subproject level" directory in the SVN instead of being nested within clang? Comment at: tools/codechecker/README.md:50 @@ +49,3 @@ +# get sourc

Re: [PATCH] D24040: codechecker tool core

2016-08-31 Thread Mehdi AMINI via cfe-commits
mehdi_amini added a comment. > This looks like a fairly large tool. Should it get its own "subproject level" > directory in the SVN instead of being nested within clang? I'd add that the clang-tools-extra are more closely tied to clang than what this seems to be. Is there a strong rev-lock wit

Re: [PATCH] D19910: [unwinder] Get rid of unused code

2016-08-31 Thread Logan Chien via cfe-commits
logan accepted this revision. logan added a comment. This revision is now accepted and ready to land. Sorry for the late reply. Thanks for your work. Yes, this is correct. However, it seems that this differential can be closed since it has been committed as https://reviews.llvm.org/rL271737.

Re: [PATCH] D24048: [Driver] [Darwin] Add sanitizer libraries even if -nodefaultlibs is passed

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz added a comment. I've sent out an additional patch that adds a warning for using -nostdlibs and -fsanitize (See: https://reviews.llvm.org/D24091) https://reviews.llvm.org/D24048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D24069: Document option '-rtlib' in clang's man page and help info

2016-08-31 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a subscriber: bruno. bruno added a comment. Hi Lei, Thanks for the doc improvement! Comment at: docs/CommandGuide/clang.rst:114 @@ -110,1 +113,3 @@ + compiler-rt. + .. option:: -ansi It might be worth mentioning what's the default behaviour in case

Re: [PATCH] D24083: [CMake] Fix libc++abi __aeabi_idiv() link error.

2016-08-31 Thread Renato Golin via cfe-commits
rengolin added a comment. This looks like a work around the fact that --rtlib is being ignored with --nodefaultlibs. I'm not sure that's a sane behaviour, if you explicitly specify --rtlib. https://reviews.llvm.org/D24083 ___ cfe-commits mailing l

r280269 - Fix a typo in a comment.

2016-08-31 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed Aug 31 13:14:15 2016 New Revision: 280269 URL: http://llvm.org/viewvc/llvm-project?rev=280269&view=rev Log: Fix a typo in a comment. Modified: cfe/trunk/include/clang/Sema/Sema.h Modified: cfe/trunk/include/clang/Sema/Sema.h URL: http://llvm.org/viewvc/llvm-project/cf

Re: r280169 - Driver: use the canonical static library naming

2016-08-31 Thread Reid Kleckner via cfe-commits
This broke the win asan build: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/28203 More generally, though, this seems like it's a Boost convention and an MSVCRT convention, and not a general Windows convention: http://www.boost.org/doc/libs/1_42_0/more/getting_started/windows.html#lib

Re: [PATCH] D21803: [libcxxabi] Provide a fallback __cxa_thread_atexit() implementation

2016-08-31 Thread Tavian Barnes via cfe-commits
tavianator added a comment. Ping? https://reviews.llvm.org/D21803 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21803: [libcxxabi] Provide a fallback __cxa_thread_atexit() implementation

2016-08-31 Thread Ben Craig via cfe-commits
bcraig added a comment. In https://reviews.llvm.org/D21803#530678, @tavianator wrote: > Ping? Well, I still think it's fine. Maybe a direct message to @mclow.lists or @EricWF? https://reviews.llvm.org/D21803 ___ cfe-commits mailing list cfe-com

[PATCH] D24097: Add testcases for PR30188

2016-08-31 Thread Sebastian Pop via cfe-commits
sebpop created this revision. sebpop added reviewers: jmolloy, danielcdh, davidxl, mkuper, dberlin. sebpop added subscribers: llvm-commits, cfe-commits. Add testcases to clang test/ to make sure that the combined middle-end optimizations do not regress on optimizing the number of loads in the loop

Re: [PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Hi Chris, Thanks for doing this. Comment at: lib/Driver/Driver.cpp:1554 @@ -1551,1 +1553,3 @@ +Args.hasArg(options::OPT_fsanitize_EQ)) + Diag(clang::diag::warn_drv_sanitizers_and_nodefaultlibs); } How hard is to fire the w

r280281 - Revert "Driver: use the canonical static library naming"

2016-08-31 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Aug 31 14:27:07 2016 New Revision: 280281 URL: http://llvm.org/viewvc/llvm-project?rev=280281&view=rev Log: Revert "Driver: use the canonical static library naming" This breaks chromium and its unclear if this is actually a modern convention. This reverts SVN r280169.

Re: r262189 - [modules] Prefer more complete array types.

2016-08-31 Thread Akira Hatanaka via cfe-commits
Vassil and Richard, After this commit, clang errors out when compiling the following code, which used to compile without any errors. $ cat f2.cpp extern int compile_time_assert_failed[1]; template class C { enum { D }; public: template void foo1() { extern int compile_time_assert_failed[ (

Re: [PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz added a comment. I can change the implementation, but that quickly falls into target specific driver code. It results in adding the warning in one place for Darwin, another for FreeBSD, and a third for GNUTools. If that is the preferred way I can work up that patch. https://reviews.llvm

[libcxxabi] r280286 - libc++abi: fix some -Wunused-function warnings

2016-08-31 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Wed Aug 31 15:29:05 2016 New Revision: 280286 URL: http://llvm.org/viewvc/llvm-project?rev=280286&view=rev Log: libc++abi: fix some -Wunused-function warnings is_initialized is only used in the no threads case or if on non ARM Apple targets. Use the preprocessor to remove

[PATCH] D24099: [libc++] Don't add -fPIC on Windows

2016-08-31 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added reviewers: compnerd, EricWF, mclow.lists. smeenai added a subscriber: cfe-commits. -fPIC doesn't make much sense for Windows, since Windows DLLs aren't compiled position independent and are instead relocated at runtime instead. https://reviews.llvm.org

r280287 - [codeview] Don't emit vshape info for classes without vfptrs

2016-08-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Aug 31 15:35:01 2016 New Revision: 280287 URL: http://llvm.org/viewvc/llvm-project?rev=280287&view=rev Log: [codeview] Don't emit vshape info for classes without vfptrs Classes with no virtual methods or whose virtual methods were all inherited from virtual bases don't have

r280288 - Fix mishandling of deletedness for assignment operators of classes with

2016-08-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Aug 31 15:37:39 2016 New Revision: 280288 URL: http://llvm.org/viewvc/llvm-project?rev=280288&view=rev Log: Fix mishandling of deletedness for assignment operators of classes with indirect virtual bases. We don't need to be able to invoke such an assignment operator from t

r280289 - Don't diagnoes a mismatch between implicit and explicit exception

2016-08-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Aug 31 15:38:32 2016 New Revision: 280289 URL: http://llvm.org/viewvc/llvm-project?rev=280289&view=rev Log: Don't diagnoes a mismatch between implicit and explicit exception specifications under -fno-exceptions, just as we don't diagnose other exception specification misma

Re: r262189 - [modules] Prefer more complete array types.

2016-08-31 Thread Vassil Vassilev via cfe-commits
Hi Akira, Thanks for your email. I am on vacation right now and I will try to look at this issue as soon as I can. Sorry for the inconvenience. Cheers, Vassil On 31/08/16 22:56, Akira Hatanaka wrote: Vassil and Richard, After this commit, clang errors out when compiling the following code,

Re: [PATCH] D24097: Add testcases for PR30188

2016-08-31 Thread David Li via cfe-commits
davidxl added inline comments. Comment at: clang/test/CodeGen/pr30188.c:3 @@ +2,3 @@ + +// Check that optimizers are able to optimize the number of loads in the loop. +// CHECK: load Can you just do ... | grep load | count 3 Comment at: clang/

r280290 - DebugInfo: Fix -gsplit-dwarf + -fno-split-dwarf-inlining

2016-08-31 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Aug 31 15:54:35 2016 New Revision: 280290 URL: http://llvm.org/viewvc/llvm-project?rev=280290&view=rev Log: DebugInfo: Fix -gsplit-dwarf + -fno-split-dwarf-inlining I tested the cases involving split-dwarf + gmlt + no-split-dwarf-inlining, but didn't verify the simpler

Re: [PATCH] D23734: Add -fprofile-dir= to clang.

2016-08-31 Thread Nick Lewycky via cfe-commits
nlewycky updated this revision to Diff 69905. https://reviews.llvm.org/D23734 Files: lib/Transforms/Instrumentation/GCOVProfiling.cpp test/Transforms/GCOVProfiling/three-element-mdnode.ll tools/clang/include/clang/Driver/CC1Options.td tools/clang/include/clang/Driver/Options.td tools/cl

Re: [PATCH] D24097: Add testcases for PR30188

2016-08-31 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith requested changes to this revision. rsmith added a reviewer: rsmith. rsmith added a comment. This revision now requires changes to proceed. This belongs in LLVM's test suite, not Clang's. https://reviews.llvm.org/D24097 ___

Re: [PATCH] D24048: [Driver] [Darwin] Add sanitizer libraries even if -nodefaultlibs is passed

2016-08-31 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. -nostdlib is often used to build parts of libsystem. It's worth noting that ASan and TSan are not supported for use on libsystem on darwin (and elsewhere?), though some subcomponents of it can be sanitized. I am not sure how this relates to UBSan. The user experience

[PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz created this revision. beanz added reviewers: bogner, zaks.anna, bruno, filcab. beanz added a subscriber: cfe-commits. Herald added a subscriber: emaste. The FreeBSD and GNUTools drivers support -fsanitize arguments bypassing -nodefaultlibs. With https://reviews.llvm.org/D24048, Darwin will

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-08-31 Thread Anton Yartsev via cfe-commits
ayartsev added a comment. Gentle ping. https://reviews.llvm.org/D22494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-08-31 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:216 @@ +215,3 @@ +llvm::raw_svector_ostream warning(buf); +warning << "warning: Path diagnostic report is not generated. Current " +<< "output format does not support diagno

Re: [PATCH] D24048: [Driver] [Darwin] Add sanitizer libraries even if -nodefaultlibs is passed

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz added a comment. @zaks.anna, the driver behind this is supporting building libcxx with sanitizers. The drivers for GNUTools and FreeBSD already support this workflow. I have updates to the test in https://reviews.llvm.org/D24091, which also cover this code. I'll push the updated test shor

Re: [PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz updated this revision to Diff 69910. beanz added a comment. Updates based on bruno's feedback. https://reviews.llvm.org/D24091 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Driver/SanitizerArgs.h lib/Driver/Driver.cpp lib/Driver/ToolChains.cpp lib/Driver/Tool

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-08-31 Thread Anton Yartsev via cfe-commits
ayartsev added inline comments. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:216 @@ +215,3 @@ +llvm::raw_svector_ostream warning(buf); +warning << "warning: Path diagnostic report is not generated. Current " +<< "output format does not support diagnos

[PATCH] D24105: [libc++] Limit gets to CRT versions below 14

2016-08-31 Thread Shoaib Meenai via cfe-commits
smeenai created this revision. smeenai added reviewers: compnerd, EricWF, mclow.lists. smeenai added subscribers: cfe-commits, kastiglione. Microsoft removed gets from the CRT in Visual Studio 2015 onwards [1]. Attempting to reference it when targeting CRT versions 14 and above will cause compile

Re: [PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: include/clang/Basic/DiagnosticDriverKinds.td:276 @@ +275,3 @@ +def warn_drv_sanitizers_and_nodefaultlibs : Warning< + "Passing -nodefaultlibs and -fsanitize has resulted in linking sanitizer runtimes.">, + InGroup>; What

r280306 - Add -fprofile-dir= to clang.

2016-08-31 Thread Nick Lewycky via cfe-commits
Author: nicholas Date: Wed Aug 31 18:04:32 2016 New Revision: 280306 URL: http://llvm.org/viewvc/llvm-project?rev=280306&view=rev Log: Add -fprofile-dir= to clang. -fprofile-dir=path allows the user to specify where .gcda files should be emitted when the program is run. In particular, this is the

r280308 - DR259: Demote the pedantic error for an explicit instantiation after an

2016-08-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Aug 31 18:23:25 2016 New Revision: 280308 URL: http://llvm.org/viewvc/llvm-project?rev=280308&view=rev Log: DR259: Demote the pedantic error for an explicit instantiation after an explicit specialization to a warning for C++98 mode (this is a defect report resolution, so p

r280309 - Fix all tests under test/CXX (and test/Analysis) to pass if clang's default

2016-08-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Aug 31 18:24:08 2016 New Revision: 280309 URL: http://llvm.org/viewvc/llvm-project?rev=280309&view=rev Log: Fix all tests under test/CXX (and test/Analysis) to pass if clang's default C++ language standard is not C++98. Modified: cfe/trunk/test/Analysis/misc-ps-region

Re: [PATCH] D22494: [analyzer] Explain why analyzer report is not generated (fix for PR12421).

2016-08-31 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:216 @@ +215,3 @@ +llvm::raw_svector_ostream warning(buf); +warning << "warning: Path diagnostic report is not generated. Current " +<< "output format does not support diagno

[libcxxabi] r280318 - Creating release candidate final from release_390 branch

2016-08-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 31 18:31:22 2016 New Revision: 280318 URL: http://llvm.org/viewvc/llvm-project?rev=280318&view=rev Log: Creating release candidate final from release_390 branch Added: libcxxabi/tags/RELEASE_390/final/ (props changed) - copied from r280317, libcxxabi/branche

[libcxx] r280317 - Creating release candidate final from release_390 branch

2016-08-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 31 18:31:18 2016 New Revision: 280317 URL: http://llvm.org/viewvc/llvm-project?rev=280317&view=rev Log: Creating release candidate final from release_390 branch Added: libcxx/tags/RELEASE_390/final/ (props changed) - copied from r280316, libcxx/branches/rele

[libunwind] r280324 - Creating release candidate final from release_390 branch

2016-08-31 Thread Hans Wennborg via cfe-commits
Author: hans Date: Wed Aug 31 18:31:40 2016 New Revision: 280324 URL: http://llvm.org/viewvc/llvm-project?rev=280324&view=rev Log: Creating release candidate final from release_390 branch Added: libunwind/tags/RELEASE_390/final/ (props changed) - copied from r280323, libunwind/branche

Re: [PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

2016-08-31 Thread Chris Bieneman via cfe-commits
beanz updated this revision to Diff 69926. beanz added a comment. - Changed warning text based on feedback from bruno - Made the warning apply to -nostdlib as well as -nodefaultlibs based on offline discussion with Anna https://reviews.llvm.org/D24091 Files: include/clang/Basic/DiagnosticDri

[PATCH] D24110: [Sema] Don't diagnose an array type mismatch when the new or previous declaration has a dependent type

2016-08-31 Thread Akira Hatanaka via cfe-commits
ahatanak created this revision. ahatanak added reviewers: v.g.vassilev, rsmith. ahatanak added a subscriber: cfe-commits. We shouldn't compare the bounds of two arrays and issue a diagnostic if one of them is dependent. https://reviews.llvm.org/D24110 Files: lib/Sema/SemaDecl.cpp test/SemaT

Re: [PATCH] D24110: [Sema] Don't diagnose an array type mismatch when the new or previous declaration has a dependent type

2016-08-31 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaDecl.cpp:3370-3374 @@ -3369,7 +3369,7 @@ // mismatch. - if (!NewArray->isIncompleteArrayType()) { + if (!NewArray->isIncompleteArrayType() && !NewArray->isDependentType()) { for (VarDecl *PrevVD = Old

Re: r262189 - [modules] Prefer more complete array types.

2016-08-31 Thread Akira Hatanaka via cfe-commits
I’ve come up with a patch and sent it to the list today since it is urgent to fix. https://reviews.llvm.org/D24110 Thank you. > On Aug 31, 2016, at 1:50 PM, Vassil Vassilev wrote: > > Hi Akira, > Thanks for your email. I am on vacation right now and I will

Re: [PATCH] D24110: [Sema] Don't diagnose an array type mismatch when the new or previous declaration has a dependent type

2016-08-31 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM as-is, but one suggestion if you want to still allow diagnosing a few more cases. Comment at: lib/Sema/SemaDecl.cpp:3377-3378 @@ -3376,4 +3376,4 @@ if (!Con

Re: [PATCH] D24110: [Sema] Don't diagnose an array type mismatch when the new or previous declaration has a dependent type

2016-08-31 Thread Akira Hatanaka via cfe-commits
ahatanak added inline comments. Comment at: lib/Sema/SemaDecl.cpp:3377-3378 @@ -3376,4 +3376,4 @@ if (!Context.hasSameType(NewArray, PrevVDTy)) return diagnoseVarDeclTypeMismatch(*this, New, PrevVD); } rsmith wrote: > If you do u

Re: [PATCH] D24069: Document option '-rtlib' in clang's man page and help info

2016-08-31 Thread Lei Zhang via cfe-commits
zlei added inline comments. Comment at: docs/CommandGuide/clang.rst:114 @@ -110,1 +113,3 @@ + compiler-rt. + .. option:: -ansi bruno wrote: > It might be worth mentioning what's the default behaviour in case the flag > isn't specified? This option behaves a lot

  1   2   >