Re: [PATCH] D18957: clang-rename: add missing newline at the end of 'found name:'

2016-04-27 Thread Manuel Klimek via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267855: Add missing newline in clang-rename output. (authored by klimek). Changed prior to commit: http://reviews.llvm.org/D18957?vs=53222&id=55380#toc Repository: rL LLVM http://reviews.llvm.org/D1

[clang-tools-extra] r267855 - Add missing newline in clang-rename output.

2016-04-27 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Apr 28 01:46:44 2016 New Revision: 267855 URL: http://llvm.org/viewvc/llvm-project?rev=267855&view=rev Log: Add missing newline in clang-rename output. Patch by Miklos Vajna. Differential Revision: http://reviews.llvm.org/D18957 Modified: clang-tools-extra/trunk/cla

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: djasper. Comment at: lib/Format/AffectedRangeManager.cpp:103 @@ -102,1 +102,3 @@ AnnotatedLine *Line, const AnnotatedLine *PreviousLine) { + assert(Line && "does not contain any line"); + Perhaps we should change this to take a Line&

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Anna Zaks via cfe-commits
zaks.anna added inline comments. Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:300-301 @@ -299,3 +299,4 @@ + assert(SM && "SourceManager is NULL, cannot iterate through the diagnostics"); for (std::vector::iterator DI = Diags.begin(), LGTM ht

Re: [PATCH] D17841: [libclang/python] Add bindings for children of diagnostics

2016-04-27 Thread Hanson Wang via cfe-commits
hansonw added reviewers: compnerd, skalinichev. hansonw added a comment. Adding you guys since you reviewed some recent changes :) http://reviews.llvm.org/D17841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

Re: [PATCH] D17841: [libclang/python] Add bindings for children of diagnostics

2016-04-27 Thread Hanson Wang via cfe-commits
hansonw updated this revision to Diff 55378. hansonw added a comment. Rebase http://reviews.llvm.org/D17841 Files: bindings/python/clang/cindex.py bindings/python/tests/cindex/test_diagnostics.py Index: bindings/python/tests/cindex/test_diagnostics.py ==

Re: [PATCH] D19062: Add functions in ctype.h to builtin function database (Fix)

2016-04-27 Thread Taewook Oh via cfe-commits
twoh updated this revision to Diff 55377. twoh added a comment. Addressing comments from @joerg. Two versions of the test provided, one for an architecture with signed char(x86_64) and the other for an architecture with unsigned char(powerpc64). http://reviews.llvm.org/D19062 Files: include

Re: [PATCH] D19587: Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.

2016-04-27 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/AffectedRangeManager.h:68 @@ +67,2 @@ +#endif // LLVM_CLANG_LIB_FORMAT_AFFECTEDRANGEMANAGER_H +# ?? http://reviews.llvm.org/D19587 ___ cfe-commits mailing list c

Re: [PATCH] D19587: Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.

2016-04-27 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Otherwise looks good. http://reviews.llvm.org/D19587 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D19619: [libc++] Remove the names of unreferenced parameters.

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. r267852. http://reviews.llvm.org/D19619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r267852 - Remove names of unreferenced parameters. Patch from s...@microsoft.com

2016-04-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Apr 27 22:17:56 2016 New Revision: 267852 URL: http://llvm.org/viewvc/llvm-project?rev=267852&view=rev Log: Remove names of unreferenced parameters. Patch from s...@microsoft.com Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread NAKAMURA Takumi via cfe-commits
chapuni added a subscriber: chapuni. Comment at: clang-tools-extra/trunk/unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp:333 @@ +332,3 @@ + static const char Code[] = R"( + typedef unsigned size_t; + typedef struct { int x; } X; size_t

Re: [PATCH] D19620: [libc++] Add braces, move braces, and rename variables to avoid shadowing.

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. r267844. http://reviews.llvm.org/D19620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267845 - CGOpenMPRuntime.h: Prune extra comma in \param. [-Wdocumentation]

2016-04-27 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Wed Apr 27 21:45:21 2016 New Revision: 267845 URL: http://llvm.org/viewvc/llvm-project?rev=267845&view=rev Log: CGOpenMPRuntime.h: Prune extra comma in \param. [-Wdocumentation] Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.h Modified: cfe/trunk/lib/CodeGen/CGOpenMPRu

[libcxx] r267844 - Add braces, move braces, and rename variables to avoid shadowing. Patch from s...@microsoft.com

2016-04-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Apr 27 21:45:11 2016 New Revision: 267844 URL: http://llvm.org/viewvc/llvm-project?rev=267844&view=rev Log: Add braces, move braces, and rename variables to avoid shadowing. Patch from s...@microsoft.com Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.sor

Re: [PATCH] D19620: [libc++] Add braces, move braces, and rename variables to avoid shadowing.

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. I hope the actual warning says 'meow' in all cases. http://reviews.llvm.org/D19620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Douglas Yung via cfe-commits
dyung added a comment. In http://reviews.llvm.org/D19048#414568, @aprantl wrote: > Thanks! > > Is there anything meaningful that could be CHECKed here? > Usually a crash means that we previously had a code path without test > coverage. This was definitely a code path without test coverage. W

Re: [PATCH] D19622: [libc++] Implement the member functions of a local struct.

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. r267843. This warning seems a bit silly though. http://reviews.llvm.org/D19622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r267843 - Provide member function definitions to avoid warnings. Patch from s...@microsoft.com

2016-04-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Apr 27 21:18:48 2016 New Revision: 267843 URL: http://llvm.org/viewvc/llvm-project?rev=267843&view=rev Log: Provide member function definitions to avoid warnings. Patch from s...@microsoft.com Modified: libcxx/trunk/test/std/utilities/meta/meta.rel/is_nothrow_callabl

[clang-tools-extra] r267841 - FindAllSymbolsTest.CTypedefTest: Tweak for LLP64 like x86_64-win32.

2016-04-27 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Wed Apr 27 21:15:16 2016 New Revision: 267841 URL: http://llvm.org/viewvc/llvm-project?rev=267841&view=rev Log: FindAllSymbolsTest.CTypedefTest: Tweak for LLP64 like x86_64-win32. In file included from symbol.cc:1: symbols.h:2:24: error: typedef redefinition with differe

Re: [PATCH] D19393: Move Checkers.inc to clang/include/.../Checkers

2016-04-27 Thread Chih-Hung Hsieh via cfe-commits
chh closed this revision. chh added a comment. Was submitted in r267832 | chh | 2016-04-27 18:09:09 -0700 (Wed, 27 Apr 2016) http://reviews.llvm.org/D19393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: [PATCH] D19621: [libc++] Rename function parameters to avoid shadowing.

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. r267838. http://reviews.llvm.org/D19621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r267838 - Rename function parameters to avoid shadowing. Patch from s...@microsoft.com

2016-04-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Apr 27 21:00:52 2016 New Revision: 267838 URL: http://llvm.org/viewvc/llvm-project?rev=267838&view=rev Log: Rename function parameters to avoid shadowing. Patch from s...@microsoft.com Modified: libcxx/trunk/test/std/thread/futures/futures.async/async.pass.cpp Modifi

Re: [PATCH] D19618: [libc++] Consistently guard "#pragma clang" with "#if defined(__clang__)".

2016-04-27 Thread Eric Fiselier via cfe-commits
EricWF closed this revision. EricWF added a comment. Committed in r267836. I must say it's pretty cool to review and commit a patch from *the* STL. Never thought that would happen when I started programming. http://reviews.llvm.org/D19618 ___ cfe-c

[libcxx] r267836 - Guard Clang and GCC specific pragmas. Patch from s...@microsoft.com

2016-04-27 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed Apr 27 20:49:03 2016 New Revision: 267836 URL: http://llvm.org/viewvc/llvm-project?rev=267836&view=rev Log: Guard Clang and GCC specific pragmas. Patch from s...@microsoft.com Modified: libcxx/trunk/test/std/depr/depr.c.headers/stdio_h.pass.cpp libcxx/trunk/test/s

Re: [PATCH] D19249: Fix include path in ClangTidy.cpp.

2016-04-27 Thread Stephen Hines via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267835: Fix include path in ClangTidy.cpp. (authored by srhines). Changed prior to commit: http://reviews.llvm.org/D19249?vs=54587&id=55368#toc Repository: rL LLVM http://reviews.llvm.org/D19249 Fi

[clang-tools-extra] r267835 - Fix include path in ClangTidy.cpp.

2016-04-27 Thread Stephen Hines via cfe-commits
Author: srhines Date: Wed Apr 27 20:42:12 2016 New Revision: 267835 URL: http://llvm.org/viewvc/llvm-project?rev=267835&view=rev Log: Fix include path in ClangTidy.cpp. Summary: https://llvm.org/bugs/show_bug.cgi?id=27355 To compile with other binary output directory structures in build systems l

r267832 - [analyzer] Move Checkers.inc to clang/include/...

2016-04-27 Thread Chih-Hung Hsieh via cfe-commits
Author: chh Date: Wed Apr 27 20:09:09 2016 New Revision: 267832 URL: http://llvm.org/viewvc/llvm-project?rev=267832&view=rev Log: [analyzer] Move Checkers.inc to clang/include/... Simplify sharing of Checkers.inc with other files like ClangTidy.cpp. Differential Revision: http://reviews.llvm.org

Re: [PATCH] D18073: Add memory allocating functions

2016-04-27 Thread Alexander Riccio via cfe-commits
ariccio marked an inline comment as done. ariccio added a comment. Wrongly `#if defined` out test is now fixed. http://reviews.llvm.org/D18073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D18073: Add memory allocating functions

2016-04-27 Thread Alexander Riccio via cfe-commits
ariccio updated this revision to Diff 55366. ariccio added a comment. Conditionally check Windows methods on Windows. Is this what you're thinking of? It's kinda ugly - I was hoping to avoid the `#if`s - but it does only check the Windows functions on Windows builds only. http://reviews.llvm.o

Re: [PATCH] D18088: Add a new warning to notify users of mismatched SDK and deployment target

2016-04-27 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Driver/ToolChains.cpp:722 @@ +721,3 @@ +if (BeginSDK != StringRef::npos && EndSDK != StringRef::npos) { + StringRef SDK = isysroot.slice(BeginSDK + 5, EndSDK); + if (!SDK.startswith(getPlatformFamily()))

Re: [PATCH] D18088: Add a new warning to notify users of mismatched SDK and deployment target

2016-04-27 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. Comment at: lib/Driver/ToolChains.cpp:718-720 @@ +717,5 @@ +StringRef isysroot = A->getValue(); +// Assume SDK has path: SOME_PATH/SDKs/PlatformXX.YY.sdk +size_t BeginSDK = isysroot.rfind("SDKs/"); +size_t EndSDK = isysroot.rfind(

r267830 - clang/test/CodeGenCXX/cfi-blacklist.cpp: Exclude ms targets. They would be non-cfi.

2016-04-27 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Wed Apr 27 19:53:30 2016 New Revision: 267830 URL: http://llvm.org/viewvc/llvm-project?rev=267830&view=rev Log: clang/test/CodeGenCXX/cfi-blacklist.cpp: Exclude ms targets. They would be non-cfi. Modified: cfe/trunk/test/CodeGenCXX/cfi-blacklist.cpp Modified: cfe/trunk

RE: [PATCH] D19567: PR21823: 'nodebug' attribute on global/static variables

2016-04-27 Thread Robinson, Paul via cfe-commits
Huh. There are strange interactions here, which makes me even more nervous about testing fewer cases. As it happens, the test as written did not exercise all 3 modified paths. Because 'struct S2' had all its members marked with nodebug, none of the static-member references caused debug info for

[clang-tools-extra] r267828 - clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-member-init-cxx98.cpp: Appease ms targets with -fno-delayed-template-parsing.

2016-04-27 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Wed Apr 27 19:39:48 2016 New Revision: 267828 URL: http://llvm.org/viewvc/llvm-project?rev=267828&view=rev Log: clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-member-init-cxx98.cpp: Appease ms targets with -fno-delayed-template-parsing. Modified: clang-to

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-27 Thread Richard Smith via cfe-commits
rsmith added a comment. LGTM http://reviews.llvm.org/D18271 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19175: Fix for PR27015 (variable template initialized with a generic lambda expression)

2016-04-27 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Parse/ParseTemplate.cpp:151-153 @@ -149,1 +150,5 @@ + if (isSpecialization) +TemplateParmScopePtr->setFlags(TemplateParmScopePtr->getFlags() ^ + Scope::TemplateParamScope); + Us

r267824 - Driver: only produce CFI -fvisibility= error when compiling.

2016-04-27 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Apr 27 19:18:30 2016 New Revision: 267824 URL: http://llvm.org/viewvc/llvm-project?rev=267824&view=rev Log: Driver: only produce CFI -fvisibility= error when compiling. The -fvisibility= flag only affects compile jobs, so there's no need to error out because of it if we aren

Re: [PATCH] D19443: Module Debugging: Fix the condition for determining whether a template instantiation is in a module.

2016-04-27 Thread Adrian Prantl via cfe-commits
aprantl closed this revision. aprantl added a comment. Thanks! Committed as 267464, 267633, 267630, 267612, 267611. Repository: rL LLVM http://reviews.llvm.org/D19443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

Re: [PATCH] D19175: Fix for PR27015 (variable template initialized with a generic lambda expression)

2016-04-27 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 55356. ahatanak added a comment. Made a couple of changes to distinguish between an explicit specialization ('template<>') and a template declaration which doesn't have a named template parameter (see the variable template fn0 in test case vartemplate-lambd

Re: [PATCH] D19249: Fix include path in ClangTidy.cpp.

2016-04-27 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Since http://reviews.llvm.org/D19393 is approved, this patch also looks fine. http://reviews.llvm.org/D19249 ___ cfe-commits mailing list cfe-com

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-27 Thread Reid Kleckner via cfe-commits
rnk updated this revision to Diff 55359. rnk added a comment. - address comments http://reviews.llvm.org/D18271 Files: include/clang/Basic/Diagnostic.h include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/AnalysisBasedWa

r267814 - [OpenMP] Code generation for target exit data directive

2016-04-27 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Wed Apr 27 18:14:30 2016 New Revision: 267814 URL: http://llvm.org/viewvc/llvm-project?rev=267814&view=rev Log: [OpenMP] Code generation for target exit data directive Summary: This patch adds support for the target exit data directive code generation. Given that, apart fro

Re: [PATCH] D17369: [OpenMP] Code generation for target exit data directive

2016-04-27 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 55352. sfantao added a comment. - Rebase. http://reviews.llvm.org/D17369 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_exit_data_codegen.cpp Index: test/OpenMP/target_exit_data_

Re: [PATCH] D17368: [OpenMP] Code generation for target enter data directive

2016-04-27 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 55349. sfantao added a comment. - Rebase. http://reviews.llvm.org/D17368 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_enter_data_codegen.cpp Index: test/OpenMP/target_enter_dat

r267812 - [OpenMP] Code generation for target enter data directive

2016-04-27 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Wed Apr 27 18:07:29 2016 New Revision: 267812 URL: http://llvm.org/viewvc/llvm-project?rev=267812&view=rev Log: [OpenMP] Code generation for target enter data directive Summary: This patch adds support for the target enter data directive code generation. Reviewers: hfinkel

r267811 - [OpenMP] Code generation for target data directive

2016-04-27 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Wed Apr 27 17:58:19 2016 New Revision: 267811 URL: http://llvm.org/viewvc/llvm-project?rev=267811&view=rev Log: [OpenMP] Code generation for target data directive Summary: This patch adds support for the target data directive code generation. Part of the already existent fu

Re: [PATCH] D17367: [OpenMP] Code generation for target data directive

2016-04-27 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 55347. sfantao added a comment. - Rebase. http://reviews.llvm.org/D17367 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp test/OpenMP/target_data_codegen.cpp Index: test/OpenMP/target_data_codegen.cp

Re: [PATCH] D18088: Add a new warning to notify users of mismatched SDK and deployment target

2016-04-27 Thread Chris Bieneman via cfe-commits
beanz added a comment. Ping? http://reviews.llvm.org/D18088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16749: [OpenMP] Map clause codegeneration.

2016-04-27 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Alexey, Thanks for the review! Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4692-4694 @@ +4691,5 @@ + llvm::Value *ElemSize; + if (auto *PTy = BaseTy->getAs()) { +ElemSize = CGF.getTypeSize(PTy->getPointeeType().getCanonicalType());

Re: [PATCH] D19567: PR21823: 'nodebug' attribute on global/static variables

2016-04-27 Thread David Blaikie via cfe-commits
On Wed, Apr 27, 2016 at 3:24 PM, Paul Robinson via cfe-commits < cfe-commits@lists.llvm.org> wrote: > probinson added a comment. > > In http://reviews.llvm.org/D19567#413997, @dblaikie wrote: > > > For 3 code paths (that seem fairly independent from one another) I'd > only really expect to see 3 v

Re: [PATCH] D17392: Embed bitcode in object file (clang cc1 part)

2016-04-27 Thread Steven Wu via cfe-commits
steven_wu added a comment. Ping. http://reviews.llvm.org/D17392 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267805 - Remove unused LangOpts private variable in HeaderSearch.

2016-04-27 Thread Samuel Antao via cfe-commits
Author: sfantao Date: Wed Apr 27 17:28:32 2016 New Revision: 267805 URL: http://llvm.org/viewvc/llvm-project?rev=267805&view=rev Log: Remove unused LangOpts private variable in HeaderSearch. Was causing warnings during the build. Modified: cfe/trunk/include/clang/Lex/HeaderSearch.h cfe/

Re: [PATCH] D19623: [libc++] Initialize local doubles to 0.0.

2016-04-27 Thread Howard Hinnant via cfe-commits
howard.hinnant added a subscriber: howard.hinnant. howard.hinnant added a comment. When in doubt, I find initializing to nan a safe thing to do. Either the code is correct, or the nan will find the bug. http://reviews.llvm.org/D19623 ___ cfe-commi

r267804 - Minor test simplification (per David Blaikie suggestion).

2016-04-27 Thread Paul Robinson via cfe-commits
Author: probinson Date: Wed Apr 27 17:18:46 2016 New Revision: 267804 URL: http://llvm.org/viewvc/llvm-project?rev=267804&view=rev Log: Minor test simplification (per David Blaikie suggestion). Modified: cfe/trunk/test/CodeGenCXX/debug-info-nodebug.cpp Modified: cfe/trunk/test/CodeGenCXX/deb

Re: [PATCH] D19567: PR21823: 'nodebug' attribute on global/static variables

2016-04-27 Thread Paul Robinson via cfe-commits
probinson added a comment. In http://reviews.llvm.org/D19567#413997, @dblaikie wrote: > For 3 code paths (that seem fairly independent from one another) I'd only > really expect to see 3 variables in the test - one to exercise each codepath. > What's the reason for the larger set of test cases?

Re: r267756 - [CMake] On Darwin bootstrap LTO builds set DYLD_LIBRARY_PATH instead of using llvm-ar

2016-04-27 Thread Chris Bieneman via cfe-commits
Fat archives is the big thing. Since we can do fat multi-stage builds using llvm-ar isn’t really ideal. -Chris > On Apr 27, 2016, at 3:16 PM, Rafael Espíndola > wrote: > > BTW, do you know what is missing in llvm-ar? I know of fat archive > support, but if there is something else could you op

Re: r267756 - [CMake] On Darwin bootstrap LTO builds set DYLD_LIBRARY_PATH instead of using llvm-ar

2016-04-27 Thread Rafael Espíndola via cfe-commits
BTW, do you know what is missing in llvm-ar? I know of fat archive support, but if there is something else could you open a bug report? Cheers, Rafael On 27 April 2016 at 14:52, Chris Bieneman via cfe-commits wrote: > Author: cbieneman > Date: Wed Apr 27 13:52:48 2016 > New Revision: 267756 > >

r267802 - [modules] When diagnosing a missing module import, suggest adding a #include if

2016-04-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Apr 27 16:57:05 2016 New Revision: 267802 URL: http://llvm.org/viewvc/llvm-project?rev=267802&view=rev Log: [modules] When diagnosing a missing module import, suggest adding a #include if the current language doesn't have an import syntax and we can figure out a suitable f

Re: [PATCH] D19623: [libc++] Initialize local doubles to 0.0.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT added a comment. I'd be happy to deal with this in another way. Would you accept _MSC_VER-guarded pragmas to silence such warnings? I didn't see an easy way to rework the logic here so that the variables are obviously initialized on every codepath, which would be the ideal pragma-less

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-04-27 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: include/clang/Basic/DiagnosticGroups.td:341-342 @@ +340,4 @@ + +def ShadowFieldInConstructor : DiagGroup<"shadow-field-in-constructor">; +def ShadowFieldInConstructorModified : DiagGroup<"

Re: [PATCH] D19623: [libc++] Initialize local doubles to 0.0.

2016-04-27 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith added a comment. I don't know how the libc++ folks feel about this, but our usual policy in Clang and LLVM is that we don't add bogus initializers to shut up incorrect "maybe used uninitialized" compiler warnings, because these initializers prevent tool

Re: [PATCH] D19072: [CodeGen] Split CGDebugInfo into CGDebugInfo and CGDebugDwarf

2016-04-27 Thread Eric Christopher via cfe-commits
This appears to be a different direction from what we'd agreed upon. Please update the original thread with discussion and your intentions and a breakdown of costs, long-term maintainability, and your plans here. Thanks. On Mon, Apr 18, 2016 at 2:07 PM Eric Christopher via cfe-commits < cfe-commi

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-27 Thread Apelete Seketeli via cfe-commits
apelete updated this revision to Diff 55327. apelete added a comment. [scan-build] fix logic error warnings emitted on clang code base Changes since last revision: - lib/Format/AffectedRangeManager.cpp: moved the fixes from lib/Format/Format.cpp:AffectedRangeManager::nonPPLineAffected() here si

[PATCH] D19625: [libc++] Void-cast runtime-unused variables.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: mclow.lists, EricWF. STL_MSFT added a subscriber: cfe-commits. [libc++] Void-cast runtime-unused variables. Also, remove unused names in exception handlers and remove an unused array. Fixes MSVC "warning C4101: unreferenced local variable

[PATCH] D19623: [libc++] Initialize local doubles to 0.0.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. [libc++] Initialize local doubles to 0.0. (Zero is a strict subset of garbage.) Fixes MSVC "warning C4701: potentially uninitialized local variable 'meow' used". http://revi

[PATCH] D19622: [libc++] Implement the member functions of a local struct.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. [libc++] Implement the member functions of a local struct. Fixes MSVC "warning C4822: local class member function does not have a body". http://reviews.llvm.org/D19622 Files:

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Adrian Prantl via cfe-commits
aprantl added a comment. Thanks! Is there anything meaningful that could be CHECKed here? Usually a crash means that we previously had a code path without test coverage. http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.

[PATCH] D19621: [libc++] Rename function parameters to avoid shadowing.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: mclow.lists, EricWF. STL_MSFT added a subscriber: cfe-commits. [libc++] Rename function parameters to avoid shadowing. Fixes MSVC "warning C4459: declaration of 'meow' hides global declaration". http://reviews.llvm.org/D19621 Files: te

[PATCH] D19620: [libc++] Add braces, move braces, and rename variables to avoid shadowing.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: mclow.lists, EricWF. STL_MSFT added a subscriber: cfe-commits. [libc++] Add braces, move braces, and rename variables to avoid shadowing. Fixes MSVC "warning C4456: declaration of 'meow' hides previous local declaration". http://reviews.

[PATCH] D19619: [libc++] Remove the names of unreferenced parameters.

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. [libc++] Remove the names of unreferenced parameters. Fixes MSVC "warning C4100: unreferenced formal parameter". http://reviews.llvm.org/D19619 Files: test/std/algorithms/a

[PATCH] D19618: [libc++] Consistently guard "#pragma clang" with "#if defined(__clang__)".

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: mclow.lists, EricWF. STL_MSFT added a subscriber: cfe-commits. [libc++] Consistently guard "#pragma clang" with "#if defined(__clang__)". Similarly, consistently guard "#pragma GCC" with "#if defined(__GNUC__)". Fixes MSVC "warning C4068:

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-27 Thread Douglas Yung via cfe-commits
dyung added a comment. ping http://reviews.llvm.org/D19048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-27 Thread Renato Golin via cfe-commits
rengolin added a comment. LGTM! Thanks! http://reviews.llvm.org/D18963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267788 - Revert unnecessary tblgen change.

2016-04-27 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Apr 27 15:49:44 2016 New Revision: 267788 URL: http://llvm.org/viewvc/llvm-project?rev=267788&view=rev Log: Revert unnecessary tblgen change. Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp URL: http://llv

[clang-tools-extra] r267786 - Wdocumentation fix

2016-04-27 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Wed Apr 27 15:43:32 2016 New Revision: 267786 URL: http://llvm.org/viewvc/llvm-project?rev=267786&view=rev Log: Wdocumentation fix Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Modified: clang-tools-extra/trunk/include-fixer/tool/ClangInclud

Re: [PATCH] D18635: Rework interface for bitset-using features to use a notion of LTO visibility.

2016-04-27 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267784: Rework interface for bitset-using features to use a notion of LTO visibility. (authored by pcc). Changed prior to commit: http://reviews.llvm.org/D18635?vs=54439&id=55307#toc Repository: rL L

r267784 - Rework interface for bitset-using features to use a notion of LTO visibility.

2016-04-27 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Apr 27 15:39:53 2016 New Revision: 267784 URL: http://llvm.org/viewvc/llvm-project?rev=267784&view=rev Log: Rework interface for bitset-using features to use a notion of LTO visibility. Bitsets, and the compiler features they rely on (vtable opt, CFI), only have visibility w

Re: [PATCH] D19361: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-27 Thread Nico Weber via cfe-commits
thakis added a subscriber: thakis. thakis added a comment. Thanks for the patch! To add to your proposed todo list (which sounds great): All these stack-using pragmas aren't serialized to pch files at the moment either. Maybe you want to work on that too (either serialize the stacks, or emit a

Re: [PATCH] D18635: Rework interface for bitset-using features to use a notion of LTO visibility.

2016-04-27 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: docs/ControlFlowIntegrity.rst:268-269 @@ -262,1 +267,4 @@ +Normally, the compiler will disable CFI checks for classes that do not +have hidden LTO visibility. With this flag enabled, the

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-27 Thread Asiri Rathnayake via cfe-commits
rmaprath added inline comments. Comment at: src/algorithm.cpp:51 @@ -50,3 +50,3 @@ #ifndef _LIBCPP_HAS_NO_THREADS -static pthread_mutex_t __rs_mut = PTHREAD_MUTEX_INITIALIZER; +static mutex __rs_mut; #endif bcraig wrote: > rmaprath wrote: > > mclow.lists wrote:

Re: [PATCH] D19432: [SystemZ] Support Swift calling convention

2016-04-27 Thread Ulrich Weigand via cfe-commits
uweigand accepted this revision. uweigand added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D19432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

Re: [PATCH] D19586: Misleading Indentation check

2016-04-27 Thread Nick Lewycky via cfe-commits
nlewycky added a subscriber: nlewycky. Comment at: clang-tidy/readability/MisleadingIndentationCheck.cpp:31 @@ +30,3 @@ + Result.SourceManager->getExpansionColumnNumber(ElseLoc)) +diag(ElseLoc, "potentional dangling else"); +} Typo of "potential" as "pote

Re: [PATCH] D19062: Add functions in ctype.h to builtin function database (Fix)

2016-04-27 Thread Joerg Sonnenberger via cfe-commits
joerg added a comment. Looking again at the failure mode, I think the best approach is to go back to the original test case and just select a fixed target. The problematic IR difference is purely an ABI choice of the target and not even related to -fsigned-char vs -funsigned-char. As such, the

Re: [PATCH] D19361: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-27 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, thanks this is a nice cleanup! Comment at: include/clang/Sema/Sema.h:338-342 @@ +337,7 @@ +PSK_Reset = 0x0,// #pragma () +PSK_Set = 0x1,

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-27 Thread Ben Craig via cfe-commits
bcraig added inline comments. Comment at: src/algorithm.cpp:51 @@ -50,3 +50,3 @@ #ifndef _LIBCPP_HAS_NO_THREADS -static pthread_mutex_t __rs_mut = PTHREAD_MUTEX_INITIALIZER; +static mutex __rs_mut; #endif rmaprath wrote: > mclow.lists wrote: > > What happened to

Re: [PATCH] D19003: Set C99 as default C Standard for PS4 target

2016-04-27 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267772: Set the default C standard to C99 when targeting the PS4. (authored by ssrivastava). Changed prior to commit: http://reviews.llvm.org/D19003?vs=54956&id=55299#toc Repository: rL LLVM http://

r267772 - Set the default C standard to C99 when targeting the PS4.

2016-04-27 Thread Sunil Srivastava via cfe-commits
Author: ssrivastava Date: Wed Apr 27 14:53:03 2016 New Revision: 267772 URL: http://llvm.org/viewvc/llvm-project?rev=267772&view=rev Log: Set the default C standard to C99 when targeting the PS4. Patch by Douglas Yung! Differential Revision: http://reviews.llvm.org/D19003 Modified: cfe/trun

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-27 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. > On a bikeshed note: is `<__os_support>` the right name? Or should it be > something like `<__thread>` or `<__threading_support>`? I went with `__os_support` in case if we'd want to group further external dependencies (like, for example, if some non-c POSIX calls a

Re: [PATCH] D18635: Rework interface for bitset-using features to use a notion of LTO visibility.

2016-04-27 Thread Peter Collingbourne via cfe-commits
pcc added a comment. Ping. http://reviews.llvm.org/D18635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek removed rL LLVM as the repository for this revision. Prazek updated this revision to Diff 55295. http://reviews.llvm.org/D19183 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeSharedCheck.cpp clang-tidy/modernize/MakeSharedCheck.h clang-tidy/modernize/MakeSmartP

Re: r267534 - [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-27 Thread Dmitry Polukhin via cfe-commits
So it seems that there is an agreement that Clang don't need this MSVC "feature" so I'll revert my patch tomorrow when I get to the office. On Wed, Apr 27, 2016 at 10:09 PM, Stephan T. Lavavej < s...@exchange.microsoft.com> wrote: > [Richard Smith] > > You can find a description of the problem in

Re: [PATCH] D19612: Use the new path for coverage related headers and update CMakeLists.txt

2016-04-27 Thread David Li via cfe-commits
davidxl accepted this revision. davidxl added a reviewer: davidxl. davidxl added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D19612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D19612: Use the new path for coverage related headers and update CMakeLists.txt

2016-04-27 Thread Easwaran Raman via cfe-commits
eraman created this revision. eraman added a reviewer: vsk. eraman added subscribers: cfe-commits, davidxl. http://reviews.llvm.org/D19612 Files: lib/CodeGen/CMakeLists.txt lib/CodeGen/CoverageMappingGen.cpp Index: lib/CodeGen/CoverageMappingGen.cpp ==

Re: [PATCH] D18274: [clang-tidy] Add boost module

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek updated this revision to Diff 55287. http://reviews.llvm.org/D18274 Files: clang-tidy/CMakeLists.txt clang-tidy/boost/BoostTidyModule.cpp clang-tidy/boost/CMakeLists.txt clang-tidy/plugin/CMakeLists.txt clang-tidy/tool/CMakeLists.txt clang-tidy/tool/ClangTidyMain.cpp docs/Rel

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek marked 3 inline comments as done. Prazek added a comment. Repository: rL LLVM http://reviews.llvm.org/D19183 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267764 - Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil.

2016-04-27 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Apr 27 14:12:56 2016 New Revision: 267764 URL: http://llvm.org/viewvc/llvm-project?rev=267764&view=rev Log: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil. Summary: As of D18614, TargetMachine exposes a hook to add a set of passes that should be run as earl

Re: [PATCH] D18617: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil.

2016-04-27 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267764: Call TargetMachine::addEarlyAsPossiblePasses from BackendUtil. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D18617?vs=53415&id=55290#toc Repository: rL LLVM http://

RE: r267534 - [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-27 Thread Stephan T. Lavavej via cfe-commits
[Richard Smith] > You can find a description of the problem in http://llvm.org/PR27337 > Brief summary: > The WTL bug is the missing 'public' on the second base class on this line: > https://sourceforge.net/p/wtl/code/HEAD/tree/trunk/wtl/Samples/MDIDocVw/mainfrm.h#l636 > The C1xx bug is that it ac

Re: [PATCH] D18136: boost-use-to-string check

2016-04-27 Thread Piotr Padlewski via cfe-commits
Prazek updated this revision to Diff 55280. http://reviews.llvm.org/D18136 Files: clang-tidy/boost/BoostTidyModule.cpp clang-tidy/boost/CMakeLists.txt clang-tidy/boost/UseToStringCheck.cpp clang-tidy/boost/UseToStringCheck.h docs/ReleaseNotes.rst docs/clang-tidy/checks/boost-use-to-st

  1   2   >