r244871 - Remove superfluous private:, TypeCache is private by default.

2015-08-13 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Thu Aug 13 02:12:03 2015 New Revision: 244871 URL: http://llvm.org/viewvc/llvm-project?rev=244871&view=rev Log: Remove superfluous private:, TypeCache is private by default. Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.h Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.h UR

SV: [PATCH] D11940: don't diagnose -Wunused-parameter in virtual method or method that overrides base class method

2015-08-13 Thread Daniel Marjamäki via cfe-commits
Hello! > If the subset of cases where this warning fires on parameters to virtual > functions produces more noise (if a significant % of cases just result in > commenting out the parameter name rather than removing the parameter) than > signal, it's certainly within the realm of discussion tha

Re: [PATCH] D10365: Add cmd to compilation database file format

2015-08-13 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: ../llvm/tools/clang/lib/Tooling/JSONCompilationDatabase.cpp:295 @@ +294,3 @@ +if (CommandFound) { + ErrorMessage = "Multiple command and arguments found"; + return false; You're probably right. I

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D11944#222975, @rsmith wrote: > In principle, normalizing slashes on Windows makes sense here. But we > shouldn't use `llvm::sys::path::native`, because it's just too broken. Ok, so if I understand you correctly it would make sense to create a

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 32036. angelgarcia marked 4 inline comments as done. angelgarcia added a comment. Set IncludeStyle as an option. Fix comments. http://reviews.llvm.org/D11946 Files: clang-tidy/CMakeLists.txt clang-tidy/Makefile clang-tidy/modernize/CMakeLists.txt

RE: [PATCH] RE: [cfe-dev] missing return statement for non-void functions in C++

2015-08-13 Thread Sjoerd Meijer via cfe-commits
Hi Richard, Thanks for reviewing. Agree, that was a bit confusing. More specifically, the warning message was confusing (i.e. wrong). This patch is for compiling .c input in C++ mode. The new flag should be ignored for C++ *input*, and indeed not when it is in C++ *mode* as the warning message said

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread Yaron Keren via cfe-commits
yaron.keren added inline comments. Comment at: lib/Basic/FileManager.cpp:221-222 @@ -220,1 +220,4 @@ + SmallString<1024> NativeFilename; + llvm::sys::path::native(Filename, NativeFilename); + rsmith wrote: > I have two concerns with this: > > 1) It's needless

[clang-tools-extra] r244876 - Fix formatting.

2015-08-13 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Aug 13 04:09:28 2015 New Revision: 244876 URL: http://llvm.org/viewvc/llvm-project?rev=244876&view=rev Log: Fix formatting. Modified: clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h Modified: clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h U

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread NAKAMURA Takumi via cfe-commits
chapuni added a comment. I wish, in clang/llvm, internal path separator would be slash. It'd be better to use backslash where it'd be really required, for example interface to cmd.exe or MS toolchain. For me, native-ization is nightmare. http://reviews.llvm.org/D11944 __

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Renato Golin via cfe-commits
On 13 August 2015 at 07:15, Yaron Keren via cfe-commits wrote: > CHECK-EIGHT is failing bots, see > > http://lab.llvm.org:8011/builders/clang-x86_64-ubuntu-gdb-75/builds/24306/steps/check-all/logs/FAIL%3A%20Clang%3A%3Adependency-gen.c That check only works if compiler-rt is built in, and support

Re: [PATCH] D11297: PR17829: Functions declared extern "C" with a name matching a mangled C++ function are allowed

2015-08-13 Thread Andrey Bokhanko via cfe-commits
andreybokhanko added a comment. John, Thank you for the quick reply! Let me make sure I understand what you said, using my test as an example (BTW, sorry if this is a dumb question -- I asked our local Clang experts, but no-one seems to be 100% sure what to do): 1: struct T { 2: ~T() {}

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D11944#223597, @chapuni wrote: > I wish, in clang/llvm, internal path separator would be slash. > It'd be better to use backslash where it'd be really required, for example > interface to cmd.exe or MS toolchain. > > For me, native-ization is n

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread Yaron Keren via cfe-commits
yaron.keren added a comment. I think she wishes your second option. Note that windows API actually do accept slash as seperator and need no conversion. https://en.wikipedia.org/wiki/Path_(computing)#MS-DOS.2FMicrosoft_Windows_style The issues are with apps that interpret slash as switch, ma

r244888 - Remove raw_svector_ostream::resync and users. It's no-op after r244870.

2015-08-13 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Thu Aug 13 07:42:25 2015 New Revision: 244888 URL: http://llvm.org/viewvc/llvm-project?rev=244888&view=rev Log: Remove raw_svector_ostream::resync and users. It's no-op after r244870. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetI

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Joerg Sonnenberger via cfe-commits
On Wed, Aug 12, 2015 at 07:18:05PM -0500, Hal Finkel via cfe-commits wrote: > I could say the same thing about many optimizations -- I spend a lot > of time tracking down bugs they expose -- the real thing to investigate > here are the potential benefits to real code from performing the > optimizat

r244890 - clang-format: Fix incorrect lambda-detection.

2015-08-13 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Thu Aug 13 08:37:08 2015 New Revision: 244890 URL: http://llvm.org/viewvc/llvm-project?rev=244890&view=rev Log: clang-format: Fix incorrect lambda-detection. Before: [ a, a ]() -> a<1>{}; After: [a, a]() -> a<1> {}; Modified: cfe/trunk/lib/Format/UnwrappedLineParse

r244891 - clang-format: Inside decltype(), there is an expression.

2015-08-13 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Thu Aug 13 08:43:51 2015 New Revision: 244891 URL: http://llvm.org/viewvc/llvm-project?rev=244891&view=rev Log: clang-format: Inside decltype(), there is an expression. Before: decltype(a* b) F(); After: decltype(a * b) F(); Modified: cfe/trunk/lib/Format/TokenAnno

[libunwind] r244892 - Correct sense of unwind return address register range assertion

2015-08-13 Thread Ed Maste via cfe-commits
Author: emaste Date: Thu Aug 13 08:45:45 2015 New Revision: 244892 URL: http://llvm.org/viewvc/llvm-project?rev=244892&view=rev Log: Correct sense of unwind return address register range assertion I encountered this on FreeBSD/arm64, and then found the same issue was reported by Daniil Troshkov.

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Marshall Clow via cfe-commits
On Wed, Aug 12, 2015 at 4:03 PM, Dan Albert wrote: > My testing was varied. I could not get GCC or clang to optimize it away > for Linux, but both did for ARM Android. > Then I don't understand your objection to this change, then. On your platform, the effect of this change is (therefore) a com

[libunwind] r244893 - Enable zero-cost exceptions on non-Apple arm64 platforms

2015-08-13 Thread Ed Maste via cfe-commits
Author: emaste Date: Thu Aug 13 09:21:03 2015 New Revision: 244893 URL: http://llvm.org/viewvc/llvm-project?rev=244893&view=rev Log: Enable zero-cost exceptions on non-Apple arm64 platforms Use the canonical __aarch64__ predefined macro for 64-bit ARM. Apple- specific cases are left as __arm64__.

Re: [PATCH] D7642: Introduce the idea of a minimum libc version

2015-08-13 Thread David Majnemer via cfe-commits
majnemer added a comment. In http://reviews.llvm.org/D7642#223489, @compnerd wrote: > Okay, if thats the general pattern, then we can stick it in the triple. > Though, that means that the use of the triple for determining the MS > compatibility needs to be undone. If the version in the triple

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Thanks for the updates. Looks good with a couple of nits. Comment at: clang-tidy/modernize/PassByValueCheck.cpp:83 @@ +82,3 @@ + public: +ExactlyOneUsageVisitor

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/PassByValueCheck.cpp:131 @@ +130,3 @@ + : ClangTidyCheck(Name, Context) { +std::string IncludeStyleStr = Options.get("IncludeStyle", "llvm"); +if (IncludeStyleStr == "llvm") { alexfh wrote: >

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 32055. angelgarcia marked 3 inline comments as done. angelgarcia added a comment. Make IncludeStyle constant, initialize it with StringSwitch. Fix indentation. http://reviews.llvm.org/D11946 Files: clang-tidy/CMakeLists.txt clang-tidy/Makefile cla

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/PassByValueCheck.cpp:134 @@ +133,3 @@ +: ClangTidyCheck(Name, Context), + IncludeStyle(StringSwitch( + Options.get("IncludeStyle", "llvm")) Thinking a bit more of this, w

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 32059. angelgarcia added a comment. Remove StringSwitch. http://reviews.llvm.org/D11946 Files: clang-tidy/CMakeLists.txt clang-tidy/Makefile clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/Makefile clang-tidy/modernize/ModernizeTidyMo

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/PassByValueCheck.cpp:87 @@ +86,3 @@ +/// \brief Whether or not the parameter variable is referred only once in +/// the +/// given constructor. nit: clang-format doesn't properly reflow com

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 32061. angelgarcia added a comment. Remove StringSwitch. http://reviews.llvm.org/D11946 Files: clang-tidy/CMakeLists.txt clang-tidy/Makefile clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/Makefile clang-tidy/modernize/ModernizeTidyMo

r244902 - Driver: Fix include directories when not using libgcc under mingw

2015-08-13 Thread Martell Malone via cfe-commits
Author: martell Date: Thu Aug 13 10:41:04 2015 New Revision: 244902 URL: http://llvm.org/viewvc/llvm-project?rev=244902&view=rev Log: Driver: Fix include directories when not using libgcc under mingw Summary: When we want to use mingw-w64 and clang with compiler-rt we should not need to have libg

Re: [PATCH] D11808: Driver: Fix include and lib dirs when not using gcc under mingw

2015-08-13 Thread Martell Malone via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL244902: Driver: Fix include directories when not using libgcc under mingw (authored by martell). Changed prior to commit: http://reviews.llvm.org/D11808?vs=32007&id=32062#toc Repository: rL LLVM htt

Re: [PATCH] D11946: Create clang-tidy module modernize. Add pass-by-value check.

2015-08-13 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. I patched this in and the tests fail for me: clang/tools/extra/test/clang-tidy/modernize-pass-by-value.cpp:4:17: error: expected string not found in input // CHECK-FIXES: #includ

Need the Documentation for the LLVM pass and TypeCheck.cpp

2015-08-13 Thread Nikhil Reddy Kothapally via cfe-commits
//=== TypeChecks.cpp - Insert runtime type checks -===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for det

Regarding the Error can you please give me the detailed description to solve this

2015-08-13 Thread Nikhil Reddy Kothapally via cfe-commits
Hello , i have tried to solve but after removing the lib/PoolAllocate code doesn't compile with LLVM mainline, and you don't need it for SAFECode. You can remove PoolAllocate from the list of directories to compile in poolalloc/lib/Makefile. also am not able to compile this in Windows i

Re: [PATCH] D11908: Clang support for -fthinlto.

2015-08-13 Thread David Li via cfe-commits
davidxl added a subscriber: davidxl. Comment at: include/clang/Driver/Options.td:685 @@ -684,1 +684,3 @@ def fno_lto : Flag<["-"], "fno-lto">, Group; +def fthinlto : Flag<["-"], "fthinlto">, Flags<[CC1Option]>, Group; +def fno_thinlto : Flag<["-"], "fno-thinlto">, Group;

r244912 - [Modules] Add Darwin-specific compatibility module map parsing hacks

2015-08-13 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Thu Aug 13 12:13:33 2015 New Revision: 244912 URL: http://llvm.org/viewvc/llvm-project?rev=244912&view=rev Log: [Modules] Add Darwin-specific compatibility module map parsing hacks This preserves backwards compatibility for two hacks in the Darwin system module map files

Re: [PATCH] D11403: [Modules] Add Darwin-specific compatibility module map parsing hacks

2015-08-13 Thread Ben Langmuir via cfe-commits
benlangmuir closed this revision. benlangmuir added a comment. Any regression to code completion was below the noise level in my testing. r244912 Comment at: include/clang/Basic/Module.h:363 @@ +362,3 @@ + /// This is more efficient than getFullModuleName(). + bool fullModule

Re: [PATCH] D11908: Clang support for -fthinlto.

2015-08-13 Thread Teresa Johnson via cfe-commits
tejohnson added inline comments. Comment at: include/clang/Driver/Options.td:685 @@ -684,1 +684,3 @@ def fno_lto : Flag<["-"], "fno-lto">, Group; +def fthinlto : Flag<["-"], "fthinlto">, Flags<[CC1Option]>, Group; +def fno_thinlto : Flag<["-"], "fno-thinlto">, Group;

r244917 - Attempt to fix build after r244912

2015-08-13 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Thu Aug 13 12:30:07 2015 New Revision: 244917 URL: http://llvm.org/viewvc/llvm-project?rev=244917&view=rev Log: Attempt to fix build after r244912 Some compilers were less happy about converting a lambda to a comparator function for array_pod_sort. Modified: cfe/tru

Re: [PATCH] D11944: Nativize filename in FileManager::getFile().

2015-08-13 Thread Richard Smith via cfe-commits
rsmith added a comment. I would think most Windows users would be surprised if we showed them paths with /s instead of \s, but I'm fine with us using / internally if it doesn't leak out to the user. klimek: if we want to nativize, I think the right thing to do is to remove the wrong "normaliza

[PATCH] D12017: Fix IncludeInserter/IncludeSorter bug.

2015-08-13 Thread Angel Garcia via cfe-commits
angelgarcia created this revision. angelgarcia added a reviewer: alexfh. angelgarcia added subscribers: cfe-commits, klimek. angelgarcia changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users". If there weren't any includes in the file, or all of them

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Ivan Krasin via cfe-commits
Thank you, Yaron. Sorry for breaking the build, it obviously passed locally and I didn't think about all the variety of the supported configs. :( Does LLVM have try bots, so that I can run the tests with my patch before committing it? krasin On Thu, Aug 13, 2015 at 3:40 AM, Renato Golin wrote:

Re: [PATCH] D10365: Add cmd to compilation database file format

2015-08-13 Thread Daniel Dilts via cfe-commits
diltsman updated this revision to Diff 32082. diltsman marked an inline comment as done. diltsman added a comment. Arguments and Command can now be in the same compilation database for the same file. Arguments are preferred when both are present. http://reviews.llvm.org/D10365 Files: ../llv

r244923 - [modules] Change the way we deal with .d output for explicitly-specified module

2015-08-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 13 12:57:10 2015 New Revision: 244923 URL: http://llvm.org/viewvc/llvm-project?rev=244923&view=rev Log: [modules] Change the way we deal with .d output for explicitly-specified module files: include the .pcm file itself in the .d output, rather than including its own i

r244922 - Turn off __has_feature(cxx_rtti) when -fno-rtti-data is present

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 12:56:49 2015 New Revision: 244922 URL: http://llvm.org/viewvc/llvm-project?rev=244922&view=rev Log: Turn off __has_feature(cxx_rtti) when -fno-rtti-data is present -fno-rtti-data makes it so that vtables emitted in the current TU lack RTTI data. This means that dynam

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Yaron Keren via cfe-commits
There is great variety of OSs, compilers, configs in the bots. You can't get the smae with try bots unless everything is duplicated which is a waste. You test locally, commit, watch the bots here: http://lab.llvm.org:8011/grid or wait for buildbot failure e-mails which arrive a bit slower. Break

r244926 - Try to fix the build after r244923

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 13:10:34 2015 New Revision: 244926 URL: http://llvm.org/viewvc/llvm-project?rev=244926&view=rev Log: Try to fix the build after r244923 Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp Modified: cfe/trunk/lib/Frontend/DependencyFile.cpp URL: http://llvm.org/v

r244925 - Try to fix new.cpp after r244920 to make it pass

2015-08-13 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Aug 13 13:10:32 2015 New Revision: 244925 URL: http://llvm.org/viewvc/llvm-project?rev=244925&view=rev Log: Try to fix new.cpp after r244920 to make it pass Modified: cfe/trunk/test/CodeGenCXX/new.cpp Modified: cfe/trunk/test/CodeGenCXX/new.cpp URL: http://llvm.org/vie

Re: [PATCH] D11859: Generating vptr assume loads

2015-08-13 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CGCXXABI.h:349-357 @@ -348,1 +348,11 @@ + virtual bool + isVirtualOffsetNeededForVTableField(CodeGenFunction &CGF, + const CXXRecordDecl *NearestVBase) = 0; + + virtual bool canInitiali

r244927 - Fix wrong expected test output in r244923.

2015-08-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 13 13:11:20 2015 New Revision: 244927 URL: http://llvm.org/viewvc/llvm-project?rev=244927&view=rev Log: Fix wrong expected test output in r244923. Modified: cfe/trunk/test/Modules/dependency-gen.modulemap Modified: cfe/trunk/test/Modules/dependency-gen.modulemap

r244928 - Remove and forbid raw_svector_ostream::flush() calls.

2015-08-13 Thread Yaron Keren via cfe-commits
Author: yrnkrn Date: Thu Aug 13 13:12:56 2015 New Revision: 244928 URL: http://llvm.org/viewvc/llvm-project?rev=244928&view=rev Log: Remove and forbid raw_svector_ostream::flush() calls. After r244870 flush() will only compare two null pointers and return, doing nothing but wasting run time. The c

Re: r244926 - Try to fix the build after r244923

2015-08-13 Thread Richard Smith via cfe-commits
On Thu, Aug 13, 2015 at 11:10 AM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Thu Aug 13 13:10:34 2015 > New Revision: 244926 > > URL: http://llvm.org/viewvc/llvm-project?rev=244926&view=rev > Log: > Try to fix the build after r244923 > Thanks! I thoug

Re: [PATCH] RE: [cfe-dev] missing return statement for non-void functions in C++

2015-08-13 Thread Richard Smith via cfe-commits
On Thu, Aug 13, 2015 at 1:52 AM, Sjoerd Meijer wrote: > Hi Richard, > > Thanks for reviewing. Agree, that was a bit confusing. More specifically, > > the warning message was confusing (i.e. wrong). This patch is for > compiling .c > > input in C++ mode. The new flag should be ignored for C++ **in

r244931 - [modules] For explicit module file dependencies, only list direct dependency module files.

2015-08-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Aug 13 13:30:25 2015 New Revision: 244931 URL: http://llvm.org/viewvc/llvm-project?rev=244931&view=rev Log: [modules] For explicit module file dependencies, only list direct dependency module files. Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp cfe/trun

Re: [PATCH] D10365: Add cmd to compilation database file format

2015-08-13 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. This revision is now accepted and ready to land. LG with a happy path test. Comment at: ../llvm/tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp:45 @@ -41,1 +44,3 @@ + expectFailure

r244933 - Fix previous commit: poison only class members, simpler tests

2015-08-13 Thread Naomi Musgrave via cfe-commits
Author: nmusgrave Date: Thu Aug 13 13:35:11 2015 New Revision: 244933 URL: http://llvm.org/viewvc/llvm-project?rev=244933&view=rev Log: Fix previous commit: poison only class members, simpler tests Summary: Poisoning applied to only class members, and before dtors for base class invoked Impleme

Re: [PATCH] D12017: Fix IncludeInserter/IncludeSorter bug.

2015-08-13 Thread Manuel Klimek via cfe-commits
klimek added a comment. Please add a regression test. http://reviews.llvm.org/D12017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10365: Add cmd to compilation database file format

2015-08-13 Thread Daniel Dilts via cfe-commits
diltsman added a comment. Where/how does documentation (http://clang.llvm.org/docs/JSONCompilationDatabase.html) get updated? http://reviews.llvm.org/D10365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

Re: [PATCH] D11844: [Modules] More descriptive diagnostics for misplaced import directive

2015-08-13 Thread Serge Pavlov via cfe-commits
sepavloff updated this revision to Diff 32085. sepavloff added a comment. Updated patch Thanks to all for fruitful discussion! The new version tries to addresses review notes. It differs from the previous version in: - Method tryParseMisplacedModuleImport now depends only on current token and

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Ivan Krasin via cfe-commits
Thank you, Yaron. Understood. On Thu, Aug 13, 2015 at 11:04 AM, Yaron Keren wrote: > There is great variety of OSs, compilers, configs in the bots. You can't > get the smae with try bots unless everything is duplicated which is a > waste. You test locally, commit, watch the bots here: > > http:

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Dan Albert via cfe-commits
Because we consider the fact that clang and gcc do this when those functions are not marked with nonnull by the libc to be a bug. Adding it to libc++ would just make another place that we have to fix that bug. What is the objection to using _Nullable instead of __attribute__(nonnull)? The original

Re: [PATCH] RE: [cfe-dev] missing return statement for non-void functions in C++

2015-08-13 Thread Gabriel Dos Reis via cfe-commits
Please make such programs crash early and often. They are a nightmare to maintain. Make them blow in the face of the original authors; not after they are gone. -- Gaby On Thu, Aug 13, 2015 at 11:18 AM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Aug 13, 2015 at

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Stephen Hines via cfe-commits
I don't see anywhere in the C standard that says that a memcpy() with NULL for either pointer is UB (which would only be valid for the case where n == 0). This seems like a particularly aggressive (mis)optimization in the general case. It should only be acceptable if the length is guaranteed to be

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Aaron Ballman via cfe-commits
On Thu, Aug 13, 2015 at 4:53 PM, Stephen Hines via cfe-commits wrote: > I don't see anywhere in the C standard that says that a memcpy() with NULL > for either pointer is UB (which would only be valid for the case where n == > 0). This seems like a particularly aggressive (mis)optimization in the

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread Justin Bogner via cfe-commits
David Majnemer writes: > majnemer created this revision. > majnemer added a reviewer: rsmith. > majnemer added a subscriber: cfe-commits. > > We risk iterator invalidation issues if we use DenseMap structures for > MaterializedTemporaryExprs. Use a std::map to ensure that they don't > move around

r244956 - Wdeprecated: Replace deprecated throw() with LLVM_NOEXCEPT which expands to 'noexcept' where available (and throw() otherwise)

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 16:15:23 2015 New Revision: 244956 URL: http://llvm.org/viewvc/llvm-project?rev=244956&view=rev Log: Wdeprecated: Replace deprecated throw() with LLVM_NOEXCEPT which expands to 'noexcept' where available (and throw() otherwise) Modified: cfe/trunk/include/cl

Re: [PATCH] D11948: Add some macros to abstract marking of parameters as "not null", and use them in

2015-08-13 Thread Chandler Carruth via cfe-commits
chandlerc added a comment. I agree with both Marshall and Hal. However, I'm also not opposed to platforms opting out if this if they want to. If a particular platform wants to define the behavior of null pointers passed to these functions, that seems like a reasonable thing to support here. The

r244957 - Wdeprecated: LambdaScopeInfos are copied in TreeTransform, so make sure they're copyable.

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 16:23:08 2015 New Revision: 244957 URL: http://llvm.org/viewvc/llvm-project?rev=244957&view=rev Log: Wdeprecated: LambdaScopeInfos are copied in TreeTransform, so make sure they're copyable. Partly addressed by r244843, but the explicit dtor in LambdaScopeInfo w

r244958 - Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 16:24:08 2015 New Revision: 244958 URL: http://llvm.org/viewvc/llvm-project?rev=244958&view=rev Log: Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable Modified: cfe/trunk/unittests/Tooling/CommentHandlerTest.cpp

r244959 - Fix some coding standard issues and delete a dead conditional.

2015-08-13 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 13 16:34:35 2015 New Revision: 244959 URL: http://llvm.org/viewvc/llvm-project?rev=244959&view=rev Log: Fix some coding standard issues and delete a dead conditional. Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp UR

r244961 - [SPARC] Fix types of size_t, intptr_t, and ptrdiff_t on OpenBSD.

2015-08-13 Thread Brad Smith via cfe-commits
Author: brad Date: Thu Aug 13 16:45:57 2015 New Revision: 244961 URL: http://llvm.org/viewvc/llvm-project?rev=244961&view=rev Log: [SPARC] Fix types of size_t, intptr_t, and ptrdiff_t on OpenBSD. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/test/Preprocessor/init.c Modified: cfe/t

Re: r244961 - [SPARC] Fix types of size_t, intptr_t, and ptrdiff_t on OpenBSD.

2015-08-13 Thread Hans Wennborg via cfe-commits
On Thu, Aug 13, 2015 at 2:45 PM, Brad Smith via cfe-commits wrote: > Author: brad > Date: Thu Aug 13 16:45:57 2015 > New Revision: 244961 > > URL: http://llvm.org/viewvc/llvm-project?rev=244961&view=rev > Log: > [SPARC] Fix types of size_t, intptr_t, and ptrdiff_t on OpenBSD. > > Modified: > c

r244962 - Removed one too many braces.

2015-08-13 Thread Brad Smith via cfe-commits
Author: brad Date: Thu Aug 13 17:00:53 2015 New Revision: 244962 URL: http://llvm.org/viewvc/llvm-project?rev=244962&view=rev Log: Removed one too many braces. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/tr

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread David Majnemer via cfe-commits
On Thu, Aug 13, 2015 at 5:15 PM, Justin Bogner wrote: > David Majnemer writes: > > majnemer created this revision. > > majnemer added a reviewer: rsmith. > > majnemer added a subscriber: cfe-commits. > > > > We risk iterator invalidation issues if we use DenseMap structures for > > MaterializedT

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/ASTContext.h:180 @@ -179,3 +179,3 @@ /// that appear in constant initializers to their evaluated values. - llvm::DenseMap + std::map MaterializedTemporaryValues; I would prefer a `DenseMap`, wit

r244968 - Wdeprecated: Make BumpVectorContext movable

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:12:21 2015 New Revision: 244968 URL: http://llvm.org/viewvc/llvm-project?rev=244968&view=rev Log: Wdeprecated: Make BumpVectorContext movable Turns out the one place that relied on the implicit copy ctor was safe because it created an object in a state where t

r244970 - clang/test/Frontend/dependency-gen.c: Add explicit -target x86_64-linux-gnu for -fsanitize.

2015-08-13 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu Aug 13 17:17:34 2015 New Revision: 244970 URL: http://llvm.org/viewvc/llvm-project?rev=244970&view=rev Log: clang/test/Frontend/dependency-gen.c: Add explicit -target x86_64-linux-gnu for -fsanitize. Modified: cfe/trunk/test/Frontend/dependency-gen.c Modified: cfe/

r244971 - Wdeprecated: StoredDiagnostics are stored in a SmallVector, so make sure they're copy/movable

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:20:14 2015 New Revision: 244971 URL: http://llvm.org/viewvc/llvm-project?rev=244971&view=rev Log: Wdeprecated: StoredDiagnostics are stored in a SmallVector, so make sure they're copy/movable Removing the no-op dtor makes these objects safely implicitly copya

r244973 - Wdeprecated: PathPieces are copied, make them safely implicitly copyable by removing the unnecessary user declared dtor.

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:23:53 2015 New Revision: 244973 URL: http://llvm.org/viewvc/llvm-project?rev=244973&view=rev Log: Wdeprecated: PathPieces are copied, make them safely implicitly copyable by removing the unnecessary user declared dtor. Modified: cfe/trunk/include/clang/St

Re: [PATCH] D10365: Add cmd to compilation database file format

2015-08-13 Thread Daniel Dilts via cfe-commits
diltsman updated this revision to Diff 32099. diltsman marked an inline comment as done. diltsman added a comment. Added test for command and arguments in same object. Fixed bug where parse failed if command and argument resolved to empty lists. http://reviews.llvm.org/D10365 Files: ../llvm/t

r244974 - Wdeprecated: RegionBindingsRef are copy constructed, make sure that's safe by removing the unnecessary user-declared copy assignment operator

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:33:24 2015 New Revision: 244974 URL: http://llvm.org/viewvc/llvm-project?rev=244974&view=rev Log: Wdeprecated: RegionBindingsRef are copy constructed, make sure that's safe by removing the unnecessary user-declared copy assignment operator The user-defined co

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread David Majnemer via cfe-commits
majnemer updated this revision to Diff 32100. majnemer added a comment. - Address Justin's review comments. - Address Richard's review comments. http://reviews.llvm.org/D11629 Files: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp lib/CodeGen/CodeGenModule.h test/CodeGenCXX/PR2428

r244975 - Wdeprecated: CollectReachableSymbolsCallback are move constructed/returned by value, so make sure they're copy/moveable

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:50:09 2015 New Revision: 244975 URL: http://llvm.org/viewvc/llvm-project?rev=244975&view=rev Log: Wdeprecated: CollectReachableSymbolsCallback are move constructed/returned by value, so make sure they're copy/moveable (return by value is in ExprEngine::proces

Re: [PATCH] D11572: [Static Analyzer] Checker for OS X / iOS localizability issues

2015-08-13 Thread Kulpreet Chilana via cfe-commits
kulpreet updated this revision to Diff 32102. kulpreet added a comment. Fixed memory corruption bug with temporary std::string - found with address sanitizer. Now, all regression tests pass with MallocScribble on. http://reviews.llvm.org/D11572 Files: lib/StaticAnalyzer/Checkers/CMakeLists.

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/AST/ASTContext.cpp:8557 @@ +8556,3 @@ + if (MayCreate) { +auto *MTVI = &MaterializedTemporaryValues[E]; +if (*MTVI == nullptr) { Maybe use a reference here rather than a pointer. Comment at:

r244979 - Wdeprecated: BugReporterVisitors are copied for cloning (BugReporterVisitorImpl), make sure such copies are safe

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:58:37 2015 New Revision: 244979 URL: http://llvm.org/viewvc/llvm-project?rev=244979&view=rev Log: Wdeprecated: BugReporterVisitors are copied for cloning (BugReporterVisitorImpl), make sure such copies are safe Make the copy/move ctors defaulted in the base c

r244978 - Follow up r244975: The ctors of an abstract class don't need to be protected - the object isn't directly constructible/doesn't present a slicing risk

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 17:58:35 2015 New Revision: 244978 URL: http://llvm.org/viewvc/llvm-project?rev=244978&view=rev Log: Follow up r244975: The ctors of an abstract class don't need to be protected - the object isn't directly constructible/doesn't present a slicing risk Modified:

r244980 - Fix the MSVC build which cannot manifest default move ops

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 18:05:58 2015 New Revision: 244980 URL: http://llvm.org/viewvc/llvm-project?rev=244980&view=rev Log: Fix the MSVC build which cannot manifest default move ops Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.h Modified: c

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread NAKAMURA Takumi via cfe-commits
Tweaked a test in r244970. Could you split it out if you would like to run it for the default target? On Fri, Aug 14, 2015 at 5:07 AM Ivan Krasin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Thank you, Yaron. Understood. > > On Thu, Aug 13, 2015 at 11:04 AM, Yaron Keren > wrote: > >> Th

r244981 - Wdeprecated: Make the SecKeychainBugVisitor copyable (for the clone support in the CRTP base) my removing the user-declared dtor

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 18:09:18 2015 New Revision: 244981 URL: http://llvm.org/viewvc/llvm-project?rev=244981&view=rev Log: Wdeprecated: Make the SecKeychainBugVisitor copyable (for the clone support in the CRTP base) my removing the user-declared dtor The implicit dtor is just as goo

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Ivan Krasin via cfe-commits
Hi there, I will remove both test cases, which rely on the existence of the default blacklist. It's handled by the driver anyway, and the code I changed is in the frontend; at this point, there's no such a thing, as a default blacklist, all of them are explicit. Just a sec. krasin On Thu, Aug 13

r244983 - Wdeprecated: Make Filter safely move constructible.

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 18:15:20 2015 New Revision: 244983 URL: http://llvm.org/viewvc/llvm-project?rev=244983&view=rev Log: Wdeprecated: Make Filter safely move constructible. makeFilter returns Filters by value which seems to be only safe when the copy doesn't occur and RVO kicks in.

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread David Majnemer via cfe-commits
majnemer updated this revision to Diff 32106. majnemer added a comment. - Address Richard's latest review comments. http://reviews.llvm.org/D11629 Files: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp lib/CodeGen/CodeGenModule.cpp test/CodeGenCXX/PR24289.cpp Index: test/CodeGenC

[PATCH] D12021: Remove test cases, which rely on the default sanitizer blacklists.The default blacklists may vary across different architectures andconfigurations. It was not wise to include into http

2015-08-13 Thread Ivan Krasin via cfe-commits
krasin created this revision. krasin added a reviewer: chapuni. krasin added subscribers: pcc, cfe-commits. http://reviews.llvm.org/D12021 Files: test/Frontend/dependency-gen.c Index: test/Frontend/dependency-gen.c === --- test/Fr

Re: r244867 - Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.

2015-08-13 Thread Ivan Krasin via cfe-commits
I have created http://reviews.llvm.org/D12021, please take a look. On Thu, Aug 13, 2015 at 4:13 PM, Ivan Krasin wrote: > Hi there, > > I will remove both test cases, which rely on the existence of the default > blacklist. It's handled by the driver anyway, and the code I changed is in > the fron

Re: [PATCH] D11629: APValues and Constants and MaterializedTemporaryExpr need to have stable maps

2015-08-13 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D11629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D12021: Remove test cases, which rely on the default sanitizer blacklists.

2015-08-13 Thread Peter Collingbourne via cfe-commits
pcc added a comment. You could create a fake resource directory which contains only the `asan_blacklist.txt` file. See `test/Driver/Inputs/resource_dir` for an example of this kind of thing. http://reviews.llvm.org/D12021 ___ cfe-commits mailing l

Re: [PATCH] D12021: Remove test cases, which rely on the default sanitizer blacklists.

2015-08-13 Thread Ivan Krasin via cfe-commits
krasin added a comment. In http://reviews.llvm.org/D12021#224102, @pcc wrote: > You could create a fake resource directory which contains only the > `asan_blacklist.txt` file. See `test/Driver/Inputs/resource_dir` for an > example of this kind of thing. I believe it's unnecessary. The default

Re: [PATCH] D12021: Remove test cases, which rely on the default sanitizer blacklists.

2015-08-13 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a reviewer: pcc. pcc added a comment. This revision is now accepted and ready to land. LGTM Yes, this can be a separate driver test. http://reviews.llvm.org/D12021 ___ cfe-commits mailing list cfe-commits@lists

r244985 - Remove test cases, which rely on the default sanitizer blacklists.

2015-08-13 Thread Ivan Krasin via cfe-commits
Author: krasin Date: Thu Aug 13 18:37:28 2015 New Revision: 244985 URL: http://llvm.org/viewvc/llvm-project?rev=244985&view=rev Log: Remove test cases, which rely on the default sanitizer blacklists. Summary: The default blacklists may vary across different architectures and configurations. It wa

r244986 - Wdeprecated: Ensure CheckNames are copy assignable (used in setCurrentCheckName) by removing the unnecessary copy ctor

2015-08-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Aug 13 18:38:46 2015 New Revision: 244986 URL: http://llvm.org/viewvc/llvm-project?rev=244986&view=rev Log: Wdeprecated: Ensure CheckNames are copy assignable (used in setCurrentCheckName) by removing the unnecessary copy ctor Modified: cfe/trunk/include/clang/Stat

  1   2   >