[PATCH] D30591: Introduce the feature "linux" for tests only for linux

2017-03-03 Thread Taewook Oh via Phabricator via cfe-commits
twoh abandoned this revision. twoh added a comment. @inglorion That makes a lot of sense. Maybe we don't even need -g, because -S -emit-llvm shows source_filename. I'll run some more experiments with relpath/abspath and debug locations, and submit a revised patch. Thanks for the comment! http

[PATCH] D30599: [ubsan] Extend the nonnull argument check to ObjC

2017-03-03 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs accepted this revision. jroelofs added a comment. This revision is now accepted and ready to land. LGTM, by the way. https://reviews.llvm.org/D30599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D30599: [ubsan] Extend the nonnull argument check to ObjC

2017-03-03 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. In https://reviews.llvm.org/D30599#692210, @jroelofs wrote: > Can the null check be performed in the callee? Yes, but I think that would result in perplexing diagnostics, because we wouldn't be able to report the source location of the buggy calls. > That'd make this chec

[PATCH] D30599: [ubsan] Extend the nonnull argument check to ObjC

2017-03-03 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs added a comment. Can the null check be performed in the callee? That'd make this check work for a few more cases that this patch doesn't cover: - `performSelector:` messages - messages to `id`. https://reviews.llvm.org/D30599 ___ cfe-comm

[PATCH] D30599: [ubsan] Extend the nonnull argument check to ObjC

2017-03-03 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. UBSan's nonnull argument check applies when a parameter has the "nonnull" attribute. The check currently works for FunctionDecls, but not for ObjCMethodDecls. This patch extends the check to work for ObjC. To do this, I introduced a new AbstractCallee class to represent

Re: [libcxxabi] r296940 - Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp

2017-03-03 Thread Jonathan Roelofs via cfe-commits
On 3/3/17 7:45 PM, Eric Fiselier wrote: LIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL should be set by `check_library_exists` at the bottom of `config-ix.cmake`. Ah, cool. Jon On Fri, Mar 3, 2017 at 7:22 PM, Jonathan Roelofs mailto:jonat...@codesourcery.com>> wrote: On 3/3/17 6:26 PM, Eri

[libcxxabi] r296960 - Fully Reformat fallback_malloc.cpp

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 21:23:15 2017 New Revision: 296960 URL: http://llvm.org/viewvc/llvm-project?rev=296960&view=rev Log: Fully Reformat fallback_malloc.cpp This patch fully reformats fallback_malloc.cpp. Previously the test was a mess of different styles and indentations. This made it

r296958 - [ODRHash] Try again to fix build bot.

2017-03-03 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 3 21:04:15 2017 New Revision: 296958 URL: http://llvm.org/viewvc/llvm-project?rev=296958&view=rev Log: [ODRHash] Try again to fix build bot. Modified: cfe/trunk/test/Modules/odr_hash.cpp Modified: cfe/trunk/test/Modules/odr_hash.cpp URL: http://llvm.org/viewvc/

[libcxxabi] r296957 - Add missing UNSUPPORTED for -fno-exception mode

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 21:03:27 2017 New Revision: 296957 URL: http://llvm.org/viewvc/llvm-project?rev=296957&view=rev Log: Add missing UNSUPPORTED for -fno-exception mode Modified: libcxxabi/trunk/test/test_exception_address_alignment.pass.cpp Modified: libcxxabi/trunk/test/test_ex

r296956 - Handle null QualType better in Stmt::Profile

2017-03-03 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 3 20:42:41 2017 New Revision: 296956 URL: http://llvm.org/viewvc/llvm-project?rev=296956&view=rev Log: Handle null QualType better in Stmt::Profile If the QualType is null, calling ASTContext::getCanonicalType on it will lead to an assert. This was found while testi

Re: [libcxxabi] r296940 - Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp

2017-03-03 Thread Eric Fiselier via cfe-commits
LIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL should be set by `check_library_exists` at the bottom of `config-ix.cmake`. On Fri, Mar 3, 2017 at 7:22 PM, Jonathan Roelofs wrote: > > > On 3/3/17 6:26 PM, Eric Fiselier via cfe-commits wrote: > >> Author: ericwf >> Date: Fri Mar 3 19:26:41 2017 >> New Revi

[libcxxabi] r296955 - Attempt to suppress test failures on OS X

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 20:29:25 2017 New Revision: 296955 URL: http://llvm.org/viewvc/llvm-project?rev=296955&view=rev Log: Attempt to suppress test failures on OS X Modified: libcxxabi/trunk/test/libcxxabi/test/config.py libcxxabi/trunk/test/test_exception_address_alignment.pass

Re: [libcxxabi] r296940 - Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp

2017-03-03 Thread Jonathan Roelofs via cfe-commits
On 3/3/17 6:26 PM, Eric Fiselier via cfe-commits wrote: Author: ericwf Date: Fri Mar 3 19:26:41 2017 New Revision: 296940 URL: http://llvm.org/viewvc/llvm-project?rev=296940&view=rev Log: Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp Modified: libcxxabi/trunk

[libcxxabi] r296954 - Fix CMake configuration errors on OS X

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 20:15:37 2017 New Revision: 296954 URL: http://llvm.org/viewvc/llvm-project?rev=296954&view=rev Log: Fix CMake configuration errors on OS X Modified: libcxxabi/trunk/CMakeLists.txt Modified: libcxxabi/trunk/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-proj

r296953 - [ODRHash] Change test to try to appease buildbot.

2017-03-03 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 3 20:05:13 2017 New Revision: 296953 URL: http://llvm.org/viewvc/llvm-project?rev=296953&view=rev Log: [ODRHash] Change test to try to appease buildbot. Modified: cfe/trunk/test/Modules/odr_hash.cpp Modified: cfe/trunk/test/Modules/odr_hash.cpp URL: http://llvm

[libcxxabi] r296952 - [libcxxabi] Fix alignment of allocated exceptions in 32 bit builds

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 20:04:45 2017 New Revision: 296952 URL: http://llvm.org/viewvc/llvm-project?rev=296952&view=rev Log: [libcxxabi] Fix alignment of allocated exceptions in 32 bit builds Summary: In 32 bit builds on a 64 bit system `std::malloc` does not return correctly aligned mem

[PATCH] D25417: [libcxxabi] Fix alignment of allocated exceptions in 32 bit builds

2017-03-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 90561. EricWF added a comment. Merge with master https://reviews.llvm.org/D25417 Files: src/cxa_exception.cpp src/fallback_malloc.cpp src/fallback_malloc.h test/test_exception_address_alignment.pass.cpp Index: test/test_exception_address_alignment.p

[PATCH] D30593: Add correct "-isystem"/"-isysroot" warning handling to static analysis' BugReporter.

2017-03-03 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added reviewers: zaks.anna, NoQ. dcoughlin added a comment. The analyzer has two different kinds of diagnostics: AST-based and path-sensitive. AST-based diagnostics are similar to the diagnostics that clang performs in Sema in that they can usually be localized to a single program poi

[libcxx] r296942 - teach LIT how to detect the glibc version

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 19:29:51 2017 New Revision: 296942 URL: http://llvm.org/viewvc/llvm-project?rev=296942&view=rev Log: teach LIT how to detect the glibc version Modified: libcxx/trunk/utils/libcxx/test/config.py Modified: libcxx/trunk/utils/libcxx/test/config.py URL: http://ll

[libcxxabi] r296940 - Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 19:26:41 2017 New Revision: 296940 URL: http://llvm.org/viewvc/llvm-project?rev=296940&view=rev Log: Fix PR25874 - Detect features required for cxa_thread_atexit_test.pass.cpp Modified: libcxxabi/trunk/test/CMakeLists.txt libcxxabi/trunk/test/cxa_thread_ate

r296937 - [scan-build-py] create decorator for compiler wrapper methods

2017-03-03 Thread Laszlo Nagy via cfe-commits
Author: rizsotto Date: Fri Mar 3 19:08:05 2017 New Revision: 296937 URL: http://llvm.org/viewvc/llvm-project?rev=296937&view=rev Log: [scan-build-py] create decorator for compiler wrapper methods Differential Revision: https://reviews.llvm.org/D29260 Modified: cfe/trunk/tools/scan-build-py/

[libcxxabi] r296936 - Turn on -Wunused-function and cleanup occurances

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 19:02:35 2017 New Revision: 296936 URL: http://llvm.org/viewvc/llvm-project?rev=296936&view=rev Log: Turn on -Wunused-function and cleanup occurances Modified: libcxxabi/trunk/CMakeLists.txt libcxxabi/trunk/cmake/config-ix.cmake libcxxabi/trunk/src/cxa_

[PATCH] D30597: [libc++] Attempt to improve diagnostics about Hash requirement violations

2017-03-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This is my attempt to improve the diagnostic messages emitted from the unordered containers when the supplied hash doesn't meet the `Hash` requirements. Unfortunately producing reasonable diagnostics is tricky and it requires a bunch of meta-programming to get rig

r296932 - [ODRHash] Add support for detecting different method properties.

2017-03-03 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 3 18:08:58 2017 New Revision: 296932 URL: http://llvm.org/viewvc/llvm-project?rev=296932&view=rev Log: [ODRHash] Add support for detecting different method properties. Now print diagnostics for static, virtual, inline, volatile, and const differences in methods. Als

r296929 - Restrict test arch-specific-libdir.c to Linux

2017-03-03 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Fri Mar 3 17:48:15 2017 New Revision: 296929 URL: http://llvm.org/viewvc/llvm-project?rev=296929&view=rev Log: Restrict test arch-specific-libdir.c to Linux Summary: This fails on Windows due to dependence on path separators. Reviewers: rnk, srhines Subscribers: llvm-commi

Re: [libcxx] r296919 - Fix hash requirements check in __hash_table.

2017-03-03 Thread Eric Fiselier via cfe-commits
On Fri, Mar 3, 2017 at 4:01 PM, Nico Weber wrote: > "the specified hash does not meet the Hash requirements" isn't a very > actionable diagnostic. > True, For now I was only trying to out-diagnose template barf when I wrote it initially. So in that regard it's a bit more actionable that it was,

[PATCH] D30592: [clang-tidy] Fix diag message for catch-by-value

2017-03-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman requested changes to this revision. aaron.ballman added a comment. This revision now requires changes to proceed. This change is missing test cases. https://reviews.llvm.org/D30592 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[PATCH] D30015: Add arch-specific directory to search path

2017-03-03 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama added a comment. Committed. Thanks for the reviews! Repository: rL LLVM https://reviews.llvm.org/D30015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30015: Add arch-specific directory to search path

2017-03-03 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL296927: Add arch-specific directory to search path (authored by pirama). Changed prior to commit: https://reviews.llvm.org/D30015?vs=90532&id=90545#toc Repository: rL LLVM https://reviews.llvm.org/D

r296927 - Add arch-specific directory to search path

2017-03-03 Thread Pirama Arumuga Nainar via cfe-commits
Author: pirama Date: Fri Mar 3 17:20:49 2017 New Revision: 296927 URL: http://llvm.org/viewvc/llvm-project?rev=296927&view=rev Log: Add arch-specific directory to search path Summary: This change adds an arch-specific subdirectory in /lib/ to the linker search path. This path also gets added a

[PATCH] D30591: Introduce the feature "linux" for tests only for linux

2017-03-03 Thread Bob Haarman via Phabricator via cfe-commits
inglorion added a comment. Checking for linux when really you want to check for ELF doesn't seem right. In this case, I think there is an better way to do it; instead of relying on llvm-objdump, could you emit an LLVM assembly file and check that for presence of the string you want? I think if

[PATCH] D30593: Add correct "-isystem"/"-isysroot" warning handling to static analysis' BugReporter.

2017-03-03 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. http://llvm-cs.pcc.me.uk/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h/risInSystemHeader suggests that the analyzer has some plumbing for this, so I added dcoughlin as reviewer, who has touched some of those lines before. dcoughlin, as background

[PATCH] D30593: Add correct "-isystem" warning handling to static analysis' BugReporter.

2017-03-03 Thread Kevin Marshall via Phabricator via cfe-commits
kmarshall created this revision. The Clang static analyzer doesn't follow the warning suppression semantics of the "-isystem" command line flag. This patch adds a check to BugReporter which causes it to drop any BugReports which originated from a system header (descendant of an -isystem path).

[PATCH] D30593: Add correct "-isystem" warning handling to static analysis' BugReporter.

2017-03-03 Thread Kevin Marshall via Phabricator via cfe-commits
kmarshall added a comment. Note to reviewers: this diff is relative to "llvm/cfe" - I couldn't find a way to specify a repository subpath to use for this diff. Repository: rL LLVM https://reviews.llvm.org/D30593 ___ cfe-commits mailing list cfe

Re: [libcxx] r296919 - Fix hash requirements check in __hash_table.

2017-03-03 Thread Nico Weber via cfe-commits
"the specified hash does not meet the Hash requirements" isn't a very actionable diagnostic. Is it possible to use some warning text that lets people know what they need to do to make the compiler happy, instead of just telling them that the compiler is unhappy? On Fri, Mar 3, 2017 at 5:35 PM, Eri

[libcxx] r296922 - Remove the buildit and testit scripts; they haven't been supported in years

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 16:47:45 2017 New Revision: 296922 URL: http://llvm.org/viewvc/llvm-project?rev=296922&view=rev Log: Remove the buildit and testit scripts; they haven't been supported in years Removed: libcxx/trunk/lib/buildit libcxx/trunk/test/testit Removed: libcxx/trun

[PATCH] D30489: [analyzer] catch out of bounds for VLA

2017-03-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D30489#691475, @danielmarjamaki wrote: > Do you agree that this is the problem? Would it be a good idea to try to keep > the sz in the ProgramState? Environment stores values only temporarily. It's kind of a scratch pad for temporary symbolic c

[libcxx] r296919 - Fix hash requirements check in __hash_table.

2017-03-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Mar 3 16:35:58 2017 New Revision: 296919 URL: http://llvm.org/viewvc/llvm-project?rev=296919&view=rev Log: Fix hash requirements check in __hash_table. r296565 attempted to add better diagnostics when an unordered container is instantiated with a hash that doesn't meet t

[PATCH] D30341: [analyzer] clarify error messages about uninitialized function arguments

2017-03-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. The code looks good to me, but i'm expressing a tiny doubt: regardless of the output format, the user always has the relevant argument highlighted anyway (column number, tilde-underlined in command line, blue-ish box in scan-build, etc.), so the only significant clarificati

[PATCH] D30589: [ExprInspectionChecker] Improve usability for C

2017-03-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Thanks! This bugged me as well, but i didn't think of this trick :) https://reviews.llvm.org/D30589 ___ cfe-commits mailing list cfe-commits@lists.llvm

[PATCH] D30015: Add arch-specific directory to search path

2017-03-03 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama marked an inline comment as done. pirama added inline comments. Comment at: lib/Driver/Tools.cpp:2007-2009 + // In the cross-compilation case, arch-specific library path is likely + // unavailable at runtime. + if (TC.isCrossCompiling()) return; rnk wro

[PATCH] D30239: enable -flto=thin in clang-cl

2017-03-03 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. In https://reviews.llvm.org/D30239#691972, @rnk wrote: > Do you guys think that maybe -flto should imply -fuse-ld=lld, or is that too > much magic? I don't know enough about windows, but I would think it may be surprising for a user that -flto changes the linker b

[PATCH] D30015: Add arch-specific directory to search path

2017-03-03 Thread Pirama Arumuga Nainar via Phabricator via cfe-commits
pirama updated this revision to Diff 90532. pirama edited the summary of this revision. pirama added a comment. Fixed comment in test and added a test for -fsanitize=address without -shared-libasan. https://reviews.llvm.org/D30015 Files: include/clang/Driver/ToolChain.h lib/Driver/ToolChai

[PATCH] D30592: [clang-tidy] Fix diag message for catch-by-value

2017-03-03 Thread Florian Gross via Phabricator via cfe-commits
fgross created this revision. Herald added a subscriber: JDevlieghere. catch (std::exception ex) { } Was flagged with "catch handler catches a pointer value". https://reviews.llvm.org/D30592 Files: clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp Index: clang-tidy/misc/ThrowByVa

[PATCH] D30239: enable -flto=thin in clang-cl

2017-03-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Do you guys think that maybe -flto should imply -fuse-ld=lld, or is that too much magic? Repository: rL LLVM https://reviews.llvm.org/D30239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D30015: Add arch-specific directory to search path

2017-03-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Looks good with a minor comment about a comment in the test case. Comment at: lib/Driver/Tools.cpp:2007-2009 + // In the cross-compilation case, arch-specific library path is likely + // unavailable at runtime. + if (TC.isCros

[PATCH] D30591: Introduce the feature "linux" for tests only for linux

2017-03-03 Thread Taewook Oh via Phabricator via cfe-commits
twoh created this revision. This feature is needed to re-enable https://reviews.llvm.org/rL293004, which resembles gcc's behavior in finding the input file name from a preprocessed source. The patch has been reverted in https://reviews.llvm.org/rL293032, because the test checks FILE symbol of EL

[PATCH] D28543: Eliminates uninitialized warning for volatile variables.

2017-03-03 Thread CJ DiMeglio via Phabricator via cfe-commits
lethalantidote added a comment. Is there any subgroup that one could suggest for this warning to fall under? https://reviews.llvm.org/D28543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D30590: Don't assume cleanup emission preserves dominance in expr evaluation

2017-03-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk created this revision. Because of the existence branches out of GNU statement expressions, it is possible that emitting cleanups for a full expression may cause the new insertion point to not be dominated by the result of the inner expression. Consider this example: struct Foo { Foo(); ~Foo

[PATCH] D30589: [ExprInspectionChecker] Improve usability for C

2017-03-03 Thread Keno Fischer via Phabricator via cfe-commits
loladiro created this revision. Some of the magic functions take arguments of arbitrary type. However, for semantic correctness, the compiler still requires a declaration of these functions with the correct type. Since C does not have argument-type-overloaded function, this made those functions ha

[PATCH] D27387: [libc++] Add a key function for bad_function_call

2017-03-03 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai updated this revision to Diff 90524. smeenai added a comment. Address comments https://reviews.llvm.org/D27387 Files: include/__config include/functional lib/CMakeLists.txt src/functional.cpp Index: src/functional.cpp ===

Re: [libcxx] r296840 - Work around test failure on 32 bit OS X

2017-03-03 Thread Adrian Prantl via cfe-commits
Does that mean there is a bug in libcxx that should be documented somewhere? -- adrian > On Mar 2, 2017, at 3:18 PM, Eric Fiselier via cfe-commits > wrote: > > Author: ericwf > Date: Thu Mar 2 17:18:40 2017 > New Revision: 296840 > > URL: http://llvm.org/viewvc/llvm-project?rev=296840&view=re

[PATCH] D30551: [AMDGPU] Add builtin functions readlane ds_permute mov_dpp

2017-03-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 90520. yaxunl marked 3 inline comments as done. yaxunl added a comment. remove redundant code. make mov_dpp target builtin. https://reviews.llvm.org/D30551 Files: include/clang/Basic/BuiltinsAMDGPU.def lib/Basic/Targets.cpp lib/CodeGen/CGBuiltin.cpp

[PATCH] D30565: [analyzer] Terminate analysis on OpenMP code instead of crashing

2017-03-03 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. @zaks.anna: What do you think? Should we try to get this into clang 4.0? Repository: rL LLVM https://reviews.llvm.org/D30565 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[PATCH] D28297: [StaticAnalyzer] Fix crash in CastToStructChecker

2017-03-03 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. Thanks. looks good. https://reviews.llvm.org/D28297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[libcxx] r296889 - Fix libc++ test to pass in C++03 mode

2017-03-03 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Fri Mar 3 11:24:29 2017 New Revision: 296889 URL: http://llvm.org/viewvc/llvm-project?rev=296889&view=rev Log: Fix libc++ test to pass in C++03 mode Was hitting: "error: scalar initializer cannot be empty" Modified: libcxx/trunk/test/std/depr/depr.c.headers/stdio_h

[clang-tools-extra] r296888 - [clang-tidy] Yet another docs fixes

2017-03-03 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Fri Mar 3 11:16:11 2017 New Revision: 296888 URL: http://llvm.org/viewvc/llvm-project?rev=296888&view=rev Log: [clang-tidy] Yet another docs fixes Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-emplace.rst Modified: clang-tools-extra/trunk/docs/

[PATCH] D30565: [analyzer] Terminate analysis on OpenMP code instead of crashing

2017-03-03 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Thank you Devin. Should we submit this to 4.0? I guess there are not many users of both CSA and OpenMP but PR you pointed is already the second report about this issue I see. Repository: rL LLVM https://reviews.llvm.org/D30565 __

[PATCH] D30565: [analyzer] Terminate analysis on OpenMP code instead of crashing

2017-03-03 Thread Aleksei Sidorin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL296884: [Analyzer] Terminate analysis on OpenMP code instead of assertion crash (authored by a.sidorin). Changed prior to commit: https://reviews.llvm.org/D30565?vs=90441&id=90499#toc Repository: rL

r296884 - [Analyzer] Terminate analysis on OpenMP code instead of assertion crash

2017-03-03 Thread Aleksei Sidorin via cfe-commits
Author: a.sidorin Date: Fri Mar 3 10:58:53 2017 New Revision: 296884 URL: http://llvm.org/viewvc/llvm-project?rev=296884&view=rev Log: [Analyzer] Terminate analysis on OpenMP code instead of assertion crash * ExprEngine assumes that OpenMP statements should never appear in CFG. However, curren

[PATCH] D30582: [Driver] Restructure handling of -ffast-math and similar options

2017-03-03 Thread John Brawn via Phabricator via cfe-commits
john.brawn created this revision. The way -ffast-math and the various related options to tweak floating-point handling are handled is inflexible and rather confusing. This patch restructures things so that we go through the options adjusting our idea of what's enabled as we go, instead of tryin

[PATCH] D30565: [analyzer] Terminate analysis on OpenMP code instead of crashing

2017-03-03 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. Thanks for fixing this! It looks like this is tracked by PR31835. https://bugs.llvm.org//show_bug.cgi?id=31835 https://reviews.llvm.org/D30565 ___

[PATCH] D30373: [analyzer] NFC: Update test infrastructure to support multiple constraint managers

2017-03-03 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. Looks great. Thanks!! https://reviews.llvm.org/D30373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30532: Add examples to clang-format configuration

2017-03-03 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru updated this revision to Diff 90486. sylvestre.ledru added a comment. updated => affected + align the vs https://reviews.llvm.org/D30532 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h Index: include/clang/Format/Format.h =

[PATCH] D27753: [analyzer] alpha.security.DirtyScalar Checker

2017-03-03 Thread Zoltán Gera via Phabricator via cfe-commits
gerazo marked an inline comment as done. gerazo added a comment. Hmm... I am thinking on this issue for a week now... I've played with the idea of implementing cleansing rules in GenericTaintChecker. It would be elegant but unfortunately, I have to think they are not general. Cleansing of a str

[PATCH] D30492: [clang-format] Allow all but the first string literal in a sequence to be put on a newline

2017-03-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir abandoned this revision. krasimir added a comment. This patch is superseded by https://reviews.llvm.org/D30575. https://reviews.llvm.org/D30492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D30532: Add examples to clang-format configuration

2017-03-03 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru updated this revision to Diff 90482. sylvestre.ledru added a comment. With the changes requested by Daniel. This is much better indeed! https://reviews.llvm.org/D30532 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h Index: include/clang/Format/Format.h

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu updated this revision to Diff 90480. Abpostelnicu added a comment. corrected some format issues. Repository: rL LLVM https://reviews.llvm.org/D30487 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/ContinuationIndenter.cpp lib/Format/Forma

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu updated this revision to Diff 90475. Repository: rL LLVM https://reviews.llvm.org/D30487 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/ContinuationIndenter.cpp lib/Format/Format.cpp lib/Format/FormatToken.h lib/Format/TokenAnnotator.c

[PATCH] D30174: [Sema][ObjC] Warn about 'performSelector' calls with selectors that return record types

2017-03-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 90473. arphaman marked 3 inline comments as done. arphaman added a comment. The updated diff: - Warns for vector types. - Addresses Akira's comments. Repository: rL LLVM https://reviews.llvm.org/D30174 Files: include/clang/Basic/DiagnosticSemaKinds.t

[PATCH] D30174: [Sema][ObjC] Warn about 'performSelector' calls with selectors that return record types

2017-03-03 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman marked 3 inline comments as done. arphaman added inline comments. Comment at: lib/AST/DeclObjC.cpp:987 unsigned noParams = param_size(); if (noParams < 1 || noParams > 3) family = OMF_None; ahatanak wrote: > It seems like this code

[PATCH] D30341: [analyzer] clarify error messages about uninitialized function arguments

2017-03-03 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki updated this revision to Diff 90471. danielmarjamaki added a comment. Fix review comment Repository: rL LLVM https://reviews.llvm.org/D30341 Files: lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp test/Analysis/NewDelete-checker-test.cpp test/Analysis/diagnostics/u

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/misc-use-after-move.cpp:285 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved - // CHECK-MESSAGES: [[@LINE-3]]:6: note: move occurred here + // CHECK-MESSAGES: [[@LINE-3]]:7: note: move occurred h

[PATCH] D15090: [Static Analyzer] New checker hook: checkInitialState

2017-03-03 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. In the meantime CheckBeginFunction has been implemented separately. I think you should "abandon" this revision so it is shown as closed. https://reviews.llvm.org/D15090 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme marked an inline comment as done. mboehme added inline comments. Comment at: test/clang-tidy/misc-use-after-move.cpp:285 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved - // CHECK-MESSAGES: [[@LINE-3]]:6: note: move occurred here + // CHECK-MES

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu added a comment. In https://reviews.llvm.org/D30487#691535, @djasper wrote: > Hm. Unfortunately, this seems to have been implemented to support Webkit > style and Webkit style is explicit about wanting this > (https://webkit.org/code-style-guidelines/) :(. > > But maybe the solutio

[PATCH] D30567: [clang-tidy] Fix treating non-space whitespaces in checks list.

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. What's the practical use of newlines and tab characters in the glob list? https://reviews.llvm.org/D30567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. Thanks! Comment at: test/clang-tidy/misc-use-after-move.cpp:285 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved - // CHECK-MESSAGES: [[@LINE-3]

Re: [clang-tools-extra] r296867 - [clang-tidy] Fix modernize-use-emplace docs

2017-03-03 Thread Malcolm Parsons via cfe-commits
On 3 March 2017 at 12:42, Piotr Padlewski via cfe-commits wrote: > w.emplace_back(std::make_pair(21L, 37L); Unbalanced (). -- Malcolm Parsons ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Hm. Unfortunately, this seems to have been implemented to support Webkit style and Webkit style is explicit about wanting this (https://webkit.org/code-style-guidelines/) :(. But maybe the solution to that is to add an extra flag like AlwaysWrapInitializerList. Really

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme marked an inline comment as done. mboehme added inline comments. Comment at: test/clang-tidy/misc-use-after-move.cpp:285 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved - // CHECK-MESSAGES: [[@LINE-3]]:6: note: move occurred here + // CHECK-MES

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme added inline comments. Comment at: test/clang-tidy/misc-use-after-move.cpp:285 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved - // CHECK-MESSAGES: [[@LINE-3]]:6: note: move occurred here + // CHECK-MESSAGES: [[@LINE-3]]:7: note: move occurred

[PATCH] D30569: [clang-tidy] misc-use-after-move: Fix failing assertion

2017-03-03 Thread Martin Böhme via Phabricator via cfe-commits
mboehme created this revision. Herald added a subscriber: JDevlieghere. I've added a test case that (without the fix) triggers the assertion, which happens when a move happens in an implicitly called conversion operator. https://reviews.llvm.org/D30569 Files: clang-tidy/misc/UseAfterMoveCheck

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu added a comment. In https://reviews.llvm.org/D30487#691517, @djasper wrote: > Do you know whether that is intentional? The style guide isn't really > conclusive. Well i'm not sure, because as you said the document is not clear but i think that when we have a single initialiser it

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:2486 Style.BreakConstructorInitializersBeforeComma && !Style.ConstructorInitializerAllOnOneLineOrOnePerLine) At any rate, I think this is what makes single-item ctor init lists

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Do you know whether that is intentional? The style guide isn't really conclusive. Repository: rL LLVM https://reviews.llvm.org/D30487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

[clang-tools-extra] r296867 - [clang-tidy] Fix modernize-use-emplace docs

2017-03-03 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Fri Mar 3 06:42:22 2017 New Revision: 296867 URL: http://llvm.org/viewvc/llvm-project?rev=296867&view=rev Log: [clang-tidy] Fix modernize-use-emplace docs Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-use-emplace.rst Modified: clang-tools-extra/tru

[PATCH] D30565: [analyzer] Terminate analysis on OpenMP code instead of crashing

2017-03-03 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. `git blame` shows that OMP* statements were added to the switch block by different authors while OpenMP support in clang was implemented. Looks like they were put to "Should not appear" section instead of "Unsupported" by mistake. https://reviews.llvm.org/D30565

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu added a comment. In https://reviews.llvm.org/D30487#691506, @djasper wrote: > Before `'`? Can you give an example? MY mistake, i wanted to write ``:` Repository: rL LLVM https://reviews.llvm.org/D30487 ___ cfe-commits mailing list

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Before `'`? Can you give an example? Repository: rL LLVM https://reviews.llvm.org/D30487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30487: ClangFormat - Add option to break before inheritance separation operator in class declaration

2017-03-03 Thread Andi via Phabricator via cfe-commits
Abpostelnicu added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:2400 +// Returns 'true' if there is an TT_InheritanceComma in the current token list. +static bool hasMultipleInheritance(const FormatToken &Tok) { + for (const FormatToken* nextTok = Tok.Next; nextTok

[PATCH] D30532: Add examples to clang-format configuration

2017-03-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. I also think that examples for the flags are good. My use case is that while developing/debugging its nice to see a short example for a random flag in the documentation pop-up. https://reviews.llvm.org/D30532 ___ cfe-comm

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL296864: [clang-tidy] Format code around applied fixes (authored by alexfh). Changed prior to commit: https://reviews.llvm.org/D30564?vs=90452&id=90453#toc Repository: rL LLVM https://reviews.llvm.or

[PATCH] D30489: [analyzer] catch out of bounds for VLA

2017-03-03 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki added a comment. To me it seems that the extent is calculated properly in ArrayBoundsV2. Existing code: DefinedOrUnknownSVal extentVal = rawOffset.getRegion()->getExtent(svalBuilder); This ugly little debug code will extract the needed VLA information from the extentVal..

[clang-tools-extra] r296864 - [clang-tidy] Format code around applied fixes

2017-03-03 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 3 05:16:34 2017 New Revision: 296864 URL: http://llvm.org/viewvc/llvm-project?rev=296864&view=rev Log: [clang-tidy] Format code around applied fixes Summary: Add -format option (disabled by default for now) to trigger formatting of replacements. Reviewers: ioeric R

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh updated this revision to Diff 90452. alexfh added a comment. Apply changes even when formatting fails. https://reviews.llvm.org/D30564 Files: clang-tidy/ClangTidy.cpp clang-tidy/tool/ClangTidyMain.cpp docs/ReleaseNotes.rst docs/clang-tidy/index.rst test/clang-tidy/clean-up-code

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-tidy/ClangTidy.cpp:214 + llvm::errs() << llvm::toString(Replacements.takeError()) << "\n"; + continue; +} Maybe still apply the replacements if formatting fails? https://reviews.llvm.org/

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg https://reviews.llvm.org/D30564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. LGTM. https://reviews.llvm.org/D30564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30564: [clang-tidy] Format code around applied fixes

2017-03-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. PTAL https://reviews.llvm.org/D30564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >