Re: [PATCH] D21959: [X86] Add xgetbv xsetbv intrinsics

2016-07-26 Thread Craig Topper via cfe-commits
craig.topper added a comment. This change seems consistent with similar being done in r250158 when the other xsave intrinsics were added. intrin.h includes x86intrin.h which in turn includes xsaveintrin.h. So this just makes xgetbv/xsetbv available on non-microsoft platforms.

Re: r275590 - [AST] Keep track of the left brace source location of a tag decl.

2016-07-26 Thread Vassil Vassilev via cfe-commits
Thanks! This is really handy interface. Would it make sense adding the same for NamespaceDecl for consistency? On 15/07/16 20:11, Argyrios Kyrtzidis via cfe-commits wrote: Author: akirtzidis Date: Fri Jul 15 13:11:33 2016 New Revision: 275590 URL: http://llvm.org/viewvc/llvm-project?rev=275590&

Re: r275590 - [AST] Keep track of the left brace source location of a tag decl.

2016-07-26 Thread Vassil Vassilev via cfe-commits
(forgot to click "reply all") Thanks! This is really handy interface. Would it make sense adding the same for NamespaceDecl for consistency? On 15/07/16 20:11, Argyrios Kyrtzidis via cfe-commits wrote: Author: akirtzidis Date: Fri Jul 15 13:11:33 2016 New Revision: 275590 URL: http://llvm.org/

Re: r276473 - [modules] Teach the ASTWriter to ignore mutations coming from the ASTReader.

2016-07-26 Thread Richard Smith via cfe-commits
Yes please :) On 25 Jul 2016 10:13 p.m., "Vassil Vassilev via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > It could, it fixes a set of issues wrt to modules. > On 25/07/16 22:39, Hans Wennborg wrote: > >> Should this be merged to 3.9? >> >> On Fri, Jul 22, 2016 at 2:08 PM, Vassil Vassilev

Re: [PATCH] D22419: [CFG] Fix crash in thread sanitizer.

2016-07-26 Thread Artem Dergachev via cfe-commits
NoQ added a comment. Thanks for working on this! While i probably won't be of much help (no expert in temporaries yet), i notice that this code piece (with `getReferenceInitTemporaryType()`) seems to be duplicated at least three times in this file, with slight variations and FIXMEs. So i guess

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-07-26 Thread Martin Böhme via cfe-commits
mboehme updated this revision to Diff 65484. mboehme marked an inline comment as done. mboehme added a comment. Changes in response to reviewer comments https://reviews.llvm.org/D0 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MoveForwardingR

Re: [PATCH] D22220: [clang-tidy] Add check 'misc-move-forwarding-reference'

2016-07-26 Thread Martin Böhme via cfe-commits
mboehme marked 13 inline comments as done. Comment at: clang-tidy/misc/MoveForwardingReferenceCheck.cpp:20 @@ +19,3 @@ + +static void ReplaceMoveWithForward(const UnresolvedLookupExpr *Callee, + const TemplateTypeParmType *TypeParmType, --

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-26 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaInit.cpp:6945 @@ +6944,3 @@ + // get the integer literal. + Init = cast(const_cast( +Var->getInit()))->getSubExpr(); Could you please take a look at the new diagnostics you are

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Lei Zhang via cfe-commits
zlei updated this revision to Diff 65497. zlei added a comment. Herald added subscribers: srhines, danalbert, tberghammer. Support a new option `-rtlib=platform` for internal use, and fix tests that previously failed when configured with `CLANG_DEFAULT_RTLIB=compiler-rt`. https://reviews.llvm.o

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Lei Zhang via cfe-commits
zlei added inline comments. Comment at: CMakeLists.txt:210 @@ -202,3 +209,3 @@ set(CLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING "Vendor-specific text for showing with version information.") I think the original code for resetting `CLANG_DEFAULT_CXX_STDLIB` do

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added inline comments. Comment at: CMakeLists.txt:210 @@ -202,3 +209,3 @@ set(CLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING "Vendor-specific text for showing with version information.") zlei wrote: > I think the original code for resetting `CLANG_DEFA

[PATCH] D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments infunction call expression.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added reviewers: alexfh, djasper. hokein added a subscriber: cfe-commits. The check doesn't mark the template argument as used when the template argument is a template. https://reviews.llvm.org/D22803 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-26 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:148 @@ +147,3 @@ + +// FIXME: This function has quadratic runtime right now. Check if skipping +// this function for too long CompoundStmts is an option. I've a feeling this comment was

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Lei Zhang via cfe-commits
zlei added inline comments. Comment at: CMakeLists.txt:210 @@ -202,3 +209,3 @@ set(CLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING "Vendor-specific text for showing with version information.") Hahnfeld wrote: > zlei wrote: > > I think the original code for reset

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-26 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. In https://reviews.llvm.org/D22666#493708, @rjmccall wrote: > Note that the presence of the mcount call itself will significantly impact > inlining and, really, the entire optimization pipeline. Having this be a > late pass seems more in keeping with what I assume

[PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg created this revision. massberg added reviewers: bkramer, hokein. massberg added a subscriber: cfe-commits. [clang-include-fixer] Added Emacs integration for clang-include-fixer. https://reviews.llvm.org/D22805 Files: include-fixer/tool/clang-include-fixer.el Index: include-fixer/too

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-26 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 65506. teemperor added a comment. - Now passing ChildSignatures by const reference. https://reviews.llvm.org/D20795 Files: include/clang/Analysis/CloneDetection.h include/clang/StaticAnalyzer/Checkers/Checkers.td lib/Analysis/CMakeLists.txt lib/An

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-26 Thread Honggyu Kim via cfe-commits
honggyu.kim added a comment. One more problem is that -finstrument-functions has the same inlining problem. The code in `llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp` shows that. void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,

Re: [PATCH] D17820: Clang Code Completion Filtering

2016-07-26 Thread Bianca-Cristina Cristescu via cfe-commits
CrisCristescu updated this revision to Diff 65508. CrisCristescu marked an inline comment as done. CrisCristescu added a comment. Some more cosmetics. Repository: rL LLVM https://reviews.llvm.org/D17820 Files: include/clang/Lex/Preprocessor.h include/clang/Sema/CodeCompleteConsumer.h l

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added a comment. Nice! Thanks very much for making emacs integration. I'm not familiar with elisp, but it looks almost good to me. Just a few nits. Comment at: include-fixer/tool/clang-include-fixer.el:8 @@ +7,3 @@ + +;; This package allows to envoke the 'clnag-include-f

[clang-tools-extra] r276746 - Test commit -- adding a newline

2016-07-26 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Tue Jul 26 09:01:48 2016 New Revision: 276746 URL: http://llvm.org/viewvc/llvm-project?rev=276746&view=rev Log: Test commit -- adding a newline Modified: clang-tools-extra/trunk/clang-tidy/misc/MoveConstantArgumentCheck.cpp Modified: clang-tools-extra/trunk/clang-tidy/m

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. There is also the other way round: `CLANG_DEFAULT_RTLIB=libgcc` shows that Darwin doesn't support that and gets a `SIGSEGV` (because it doesn't expect it to be `libgcc` without an option to be set, hehe) Based on some `GetCXXStdlibType` for toolchains that only support

[PATCH] D22808: [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace.

2016-07-26 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: bkramer. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek. [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace. https://reviews.llvm.org/D22808 Fil

Re: [PATCH] D21748: Implement tooling::Replacements as a class.

2016-07-26 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: unittests/Tooling/RefactoringTest.cpp:112 @@ -111,4 +111,3 @@ -TEST_F(ReplacementTest, CanApplyReplacements) { - FileID ID = Context.createInMemoryFile("input.cpp", - "line1\nline2\nline3\nline4")

[PATCH] D22810: scan-build: Add an option to show the description in the list of defect

2016-07-26 Thread Sylvestre Ledru via cfe-commits
sylvestre.ledru created this revision. sylvestre.ledru added reviewers: zaks.anna, rizsotto.mailinglist. sylvestre.ledru added a subscriber: cfe-commits. This patch adds an option //--show-description// to add the defect description to the list of defect. This helps to get a better understanding

[libcxx] r276750 - Implement LCM and GCD for Library Fundamentals. Reviewed as https://reviews.llvm.org/D21343.

2016-07-26 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jul 26 09:28:34 2016 New Revision: 276750 URL: http://llvm.org/viewvc/llvm-project?rev=276750&view=rev Log: Implement LCM and GCD for Library Fundamentals. Reviewed as https://reviews.llvm.org/D21343. Added: libcxx/trunk/include/experimental/numeric libcxx/trun

[libcxx] r276751 - Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS.

2016-07-26 Thread Marshall Clow via cfe-commits
Author: marshall Date: Tue Jul 26 09:29:45 2016 New Revision: 276751 URL: http://llvm.org/viewvc/llvm-project?rev=276751&view=rev Log: Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS. Added: libcxx/trunk/test/std/numerics/numeric.ops/numeric.ops.gcd/ libcxx/trun

[clang-tools-extra] r276752 - Revert test commit

2016-07-26 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Tue Jul 26 09:37:39 2016 New Revision: 276752 URL: http://llvm.org/viewvc/llvm-project?rev=276752&view=rev Log: Revert test commit This reverts rL276746. Modified: clang-tools-extra/trunk/clang-tidy/misc/MoveConstantArgumentCheck.cpp Modified: clang-tools-extra/trunk/c

r276754 - [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace.

2016-07-26 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Jul 26 09:53:05 2016 New Revision: 276754 URL: http://llvm.org/viewvc/llvm-project?rev=276754&view=rev Log: [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace. Summary: [Tooling] skip anonymous namespa

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg updated this revision to Diff 65521. massberg added a comment. Updating https://reviews.llvm.org/D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer. - Fixed typo - Added documentation how to setup tools within emacs - Removed unnecessary yes-no question http

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

2016-07-26 Thread Anton Yartsev via cfe-commits
ayartsev added inline comments. Comment at: test/Analysis/PR12421.c:11 @@ +10,2 @@ + +// CHECK: warning: Path diagnostic report is not generated. HTMLDiagnostics does not support diagnostics that cross file boundaries. zaks.anna wrote: > We should use the name of

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

2016-07-26 Thread Anton Yartsev via cfe-commits
ayartsev updated this revision to Diff 65519. ayartsev marked 2 inline comments as done. https://reviews.llvm.org/D22494 Files: lib/StaticAnalyzer/Core/PathDiagnostic.cpp test/Analysis/diagnostics/diag-cross-file-boundaries.c test/Analysis/diagnostics/diag-cross-file-boundaries.h Index: te

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: include-fixer/tool/clang-include-fixer.el:8 @@ +7,3 @@ + +;; This package allows to invoke the 'clnag-include-fixer' within Emacs. +;; 'clang-include-fixer' provides an automated way of adding #include clnag is another ty

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg updated this revision to Diff 65524. massberg added a comment. Updating https://reviews.llvm.org/D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer. -Fixed documentation https://reviews.llvm.org/D22805 Files: docs/include-fixer.rst include-fixer/tool/cl

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg updated this revision to Diff 65525. massberg added a comment. Updating https://reviews.llvm.org/D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer. - Fixed typo https://reviews.llvm.org/D22805 Files: docs/include-fixer.rst include-fixer/tool/clang-incl

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg marked 3 inline comments as done. massberg added a comment. Thanks for the comments. I fixed the typos and wrote a (short) documentation. https://reviews.llvm.org/D22805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

Re: [PATCH] D17820: Clang Code Completion Filtering

2016-07-26 Thread Vassil Vassilev via cfe-commits
v.g.vassilev requested changes to this revision. v.g.vassilev added a reviewer: v.g.vassilev. This revision now requires changes to proceed. Comment at: lib/Lex/Preprocessor.cpp:748 @@ +747,3 @@ + if (Result.is(tok::code_completion)) + setCodeCompletionIdentifierInfo(Result.

Re: [PATCH] D22808: [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace.

2016-07-26 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276754: [Tooling] skip anonymous namespaces when checking if typeLoc references a… (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D22808?vs=65511&id=65520#toc Repository: rL

Re: [PATCH] D21385: Adjust Registry interface to not require plugins to export a registry

2016-07-26 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: rnk. klimek added a comment. +Reid for a windows reviewer Repository: rL LLVM https://reviews.llvm.org/D21385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r276756 - Update for LLVM changes

2016-07-26 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Jul 26 10:21:18 2016 New Revision: 276756 URL: http://llvm.org/viewvc/llvm-project?rev=276756&view=rev Log: Update for LLVM changes InstSimplify has gained the ability to remove needless bitcasts which perturbed some clang codegen tests. Modified: cfe/trunk/test/Co

Re: [PATCH] D22663: Support setting default value for -rtlib at build time

2016-07-26 Thread Chris Bieneman via cfe-commits
beanz added inline comments. Comment at: CMakeLists.txt:210 @@ -202,3 +209,3 @@ set(CLANG_VENDOR ${PACKAGE_VENDOR} CACHE STRING "Vendor-specific text for showing with version information.") Hahnfeld wrote: > zlei wrote: > > Hahnfeld wrote: > > > zlei wrote:

r276755 - Make RecursiveASTVisitor visit lambda capture initialization expressions

2016-07-26 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Tue Jul 26 10:19:10 2016 New Revision: 276755 URL: http://llvm.org/viewvc/llvm-project?rev=276755&view=rev Log: Make RecursiveASTVisitor visit lambda capture initialization expressions Summary: Lambda capture initializations are part of the explicit source code and therefor

Re: [PATCH] D22637: [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-26 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/Misc/amdgcn.languageOptsOpenCL.cl:188 @@ +187,3 @@ +#endif +// expected-warning@+6{{unsupported OpenCL extension 'cl_khr_mipmap_image' - ignoring}} +#else ashi1 wrote: > yaxunl wrote: > > Anastasia wrote: > > > Ca

Re: [PATCH] D17820: Clang Code Completion Filtering

2016-07-26 Thread Bianca-Cristina Cristescu via cfe-commits
CrisCristescu updated this revision to Diff 65528. CrisCristescu added a comment. Wrong indentation update. Repository: rL LLVM https://reviews.llvm.org/D17820 Files: include/clang/Lex/Preprocessor.h include/clang/Sema/CodeCompleteConsumer.h lib/Lex/Lexer.cpp lib/Lex/Preprocessor.cpp

[PATCH] D22812: [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. In missing complete type cases, we don't know where to add the qualifiers. https://reviews.llvm.org/D22812 Files: include-fixer/IncludeFixer.cpp unittests/include-fixer/IncludeFixerTest.cp

Re: [PATCH] D22637: [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-26 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/extension-version.cl:228 @@ +227,3 @@ +#endif +// expected-warning@+6{{unsupported OpenCL extension 'cl_khr_mipmap_image' - ignoring}} +#else Anastasia wrote: > ashi1 wrote: > > Anastasia wrote: > > > C

Re: [PATCH] D22566: Make RecursiveASTVisitor visit lambda capture initialization expressions

2016-07-26 Thread Martin Böhme via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276755: Make RecursiveASTVisitor visit lambda capture initialization expressions (authored by mboehme). Changed prior to commit: https://reviews.llvm.org/D22566?vs=64665&id=65526#toc Repository: rL L

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-26 Thread Manuel Klimek via cfe-commits
klimek added a comment. Kirill, are your specific concerns addressed? https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.el:126 @@ +125,3 @@ + (setq header-infos (plist-get include-fixer-context :HeaderInfos)) + (setq symbol (plist-get include-fixer-context :SymbolIdentifier)) + (setq symbol-offset (plist-get (plist-

Re: r276473 - [modules] Teach the ASTWriter to ignore mutations coming from the ASTReader.

2016-07-26 Thread Hans Wennborg via cfe-commits
Merged to 3.9 in r276757. Cheers, Hans On Tue, Jul 26, 2016 at 2:01 AM, Richard Smith wrote: > Yes please :) > > > On 25 Jul 2016 10:13 p.m., "Vassil Vassilev via cfe-commits" > wrote: >> >> It could, it fixes a set of issues wrt to modules. >> On 25/07/16 22:39, Hans Wennborg wrote: >>> >>> Sh

[PATCH] D22815: [OpenCL][AMDGPU] Add support for -cl-denorms-are-zero

2016-07-26 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: tstellarAMD, arsenm, nhaustov, Anastasia, rsmith. yaxunl added a subscriber: cfe-commits. Herald added a subscriber: kzhuravl. Adjust target features for amdgcn target when -cl-denorms-are-zero is set. Denormal support is controlled by feature

r276759 - Revert "Make RecursiveASTVisitor visit lambda capture initialization expressions"

2016-07-26 Thread Martin Bohme via cfe-commits
Author: mboehme Date: Tue Jul 26 11:01:55 2016 New Revision: 276759 URL: http://llvm.org/viewvc/llvm-project?rev=276759&view=rev Log: Revert "Make RecursiveASTVisitor visit lambda capture initialization expressions" This reverts commit r276755. (Broke clang-tidy check modernize-loop-convert.)

[PATCH] D22818: [libcxx] [test] Silence another occurrence of MSVC's spurious unused warning.

2016-07-26 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. Silence another occurrence of MSVC's spurious unused warning. Again, I'm sorry about this one (VSO#188582 tracks the need to fix the compiler), but this targeted suppression h

[PATCH] D22819: [libcxx] [test] Add env.lst and keep.lst to .gitignore for the MSVC libraries test harness.

2016-07-26 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. This is optional, but I think it would be convenient if we could upstream the ignoring of env.lst and keep.lst files that our test harness automatically generates. https://re

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-26 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D22666#495978, @honggyu.kim wrote: > In https://reviews.llvm.org/D22666#493708, @rjmccall wrote: > > > Note that the presence of the mcount call itself will significantly impact > > inlining and, really, the entire optimization pipeline. Havi

Re: [PATCH] D22818: [libcxx] [test] Silence another occurrence of MSVC's spurious unused warning.

2016-07-26 Thread David Majnemer via cfe-commits
majnemer added a subscriber: majnemer. majnemer added a comment. Do we have a way to keep track of this change so we can remove it when MSVC gets fixed? https://reviews.llvm.org/D22818 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

RE: [PATCH] D22818: [libcxx] [test] Silence another occurrence of MSVC's spurious unused warning.

2016-07-26 Thread Stephan T. Lavavej via cfe-commits
I've added a note to myself (in the list of "bugs I need fixes for") that these two suppressions should be removed when the compiler bug is finally fixed. JonCaves actually marked this as Fix Available on July 20, so a fix may be forthcoming in the near future. STL -Original Message- F

Re: [PATCH] D22773: Modules: add command line option fmodules-disable-diagnostic-validation to disable validation of the diagnostic options when loading the module

2016-07-26 Thread Ben Langmuir via cfe-commits
benlangmuir accepted this revision. benlangmuir added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D22773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

Re: [PATCH] D22782: Added 'inline' attribute to __init to inline the basic_string's constructor

2016-07-26 Thread Aditya Kumar via cfe-commits
hiraditya added a comment. In https://reviews.llvm.org/D22782#495436, @mclow.lists wrote: > Do we have a test for the problem that this is solving? We are looking at the libcxx testsuite, it seems there are only correctness/functionality tests. Do you have any pointers on how to add tests to

[clang-tools-extra] r276761 - [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jul 26 11:32:42 2016 New Revision: 276761 URL: http://llvm.org/viewvc/llvm-project?rev=276761&view=rev Log: [include-fixer] Don't add qualifiers in missing complete type cases. Summary: In missing complete type cases, we don't know where to add the qualifiers. Reviewers

Re: [PATCH] D22812: [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276761: [include-fixer] Don't add qualifiers in missing complete type cases. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22812?vs=65531&id=65544#toc Repository: rL LLVM

Re: [PATCH] D22419: [CFG] Fix crash in thread sanitizer.

2016-07-26 Thread Nandor Licker via cfe-commits
nandor updated this revision to Diff 65545. nandor marked an inline comment as done. nandor added a comment. removed redundant checks https://reviews.llvm.org/D22419 Files: lib/Analysis/CFG.cpp test/SemaCXX/warn-thread-safety-analysis.cpp Index: test/SemaCXX/warn-thread-safety-analysis.cpp

Re: [PATCH] D22419: [CFG] Fix crash in thread sanitizer.

2016-07-26 Thread Nandor Licker via cfe-commits
nandor added a comment. I'm not an expert in temporaries either, I think for a proper fix a lot more work is required. It seems that the problem is with locating destructors in destructor calls. I get the impression that currently a destructor node pointing to the declaration is added and the

Re: r275590 - [AST] Keep track of the left brace source location of a tag decl.

2016-07-26 Thread Argyrios Kyrtzidis via cfe-commits
Yes, I think so. > On Jul 26, 2016, at 1:37 AM, Vassil Vassilev wrote: > > (forgot to click "reply all") > Thanks! This is really handy interface. Would it make sense adding the same > for NamespaceDecl for consistency? > On 15/07/16 20:11, Argyrios Kyrtzidis via cfe-commits wrote: >> Author: a

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg updated this revision to Diff 65546. massberg added a comment. Updating https://reviews.llvm.org/D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer. Now working with the newest clang-include-fixer input/output format. https://reviews.llvm.org/D22805 Files:

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg marked an inline comment as done. massberg added a comment. Thanks, now supporting the new format. https://reviews.llvm.org/D22805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.el:32 @@ +31,3 @@ + "google3" + "/usr/local/google/home/massberg/Emacs_Lisp/include-fixer/clang-include-fixer input format." + :group 'clang-include-fixer You forgot to remove th

Re: [PATCH] D22773: Modules: add command line option fmodules-disable-diagnostic-validation to disable validation of the diagnostic options when loading the module

2016-07-26 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276769: Modules: add command line option fmodules-disable-diagnostic-validation (authored by mren). Changed prior to commit: https://reviews.llvm.org/D22773?vs=65449&id=65548#toc Repository: rL LLVM

r276769 - Modules: add command line option fmodules-disable-diagnostic-validation

2016-07-26 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Jul 26 12:12:17 2016 New Revision: 276769 URL: http://llvm.org/viewvc/llvm-project?rev=276769&view=rev Log: Modules: add command line option fmodules-disable-diagnostic-validation With PCH+Module, sometimes compiler gives a hard error: Module file ‘.pcm' is out of date and

Re: [PATCH] D16135: Macro Debug Info support in Clang

2016-07-26 Thread Amjad Aboud via cfe-commits
aaboud added reviewers: erichkeane, bwyma. aaboud updated this revision to Diff 65551. aaboud added a comment. Updated patch to top of trunk (r276746) - Thanks to Ranjeet Singh. Please, provide your feedback. https://reviews.llvm.org/D16135 Files: include/clang/AST/ASTConsumer.h lib/AST/AS

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-26 Thread Artem Dergachev via cfe-commits
NoQ accepted this revision. NoQ added a reviewer: NoQ. NoQ added a comment. Great! Will commit. https://reviews.llvm.org/D20795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22824: MathExtras.h: add LLVM_CONSTEXPR where simple

2016-07-26 Thread Hubert Tong via cfe-commits
hubert.reinterpretcast created this revision. hubert.reinterpretcast added reviewers: aaron.ballman, faisalv, rsmith. hubert.reinterpretcast added a subscriber: cfe-commits. This change adds `LLVM_CONSTEXPR` to functions selected as follows: - the body is already valid under C++11 for a `constexpr

Re: [PATCH] D22666: Frontend: Fix mcount inlining bug

2016-07-26 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D22666#496218, @hfinkel wrote: > In https://reviews.llvm.org/D22666#495978, @honggyu.kim wrote: > > > In https://reviews.llvm.org/D22666#493708, @rjmccall wrote: > > > > > Note that the presence of the mcount call itself will significantly > >

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg updated this revision to Diff 65562. massberg added a comment. Updating https://reviews.llvm.org/D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer. - fixed private path - removed debug message https://reviews.llvm.org/D22805 Files: docs/include-fixer.rst

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Jens Massberg via cfe-commits
massberg marked 2 inline comments as done. massberg added a comment. Thanks for the comments! Comment at: include-fixer/tool/clang-include-fixer.el:125 @@ +124,3 @@ + ;; The header-infos is already sorted by include-fixer. + (setq header-infos (plist-get include-fixer-context

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-26 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276782: [analyzer] Add basic capabilities to detect source code clones. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D20795?vs=65506&id=65563#toc Repository: rL LLVM ht

Re: [PATCH] D22798: Fix for compiling with clang <= 3.7 and g++6 headers.

2016-07-26 Thread Vedant Kumar via cfe-commits
vsk accepted this revision. vsk added a comment. This revision is now accepted and ready to land. LGTM. Let me know if you'd like me to commit this for you. Repository: rL LLVM https://reviews.llvm.org/D22798 ___ cfe-commits mailing list cfe-com

r276782 - [analyzer] Add basic capabilities to detect source code clones.

2016-07-26 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Jul 26 13:13:12 2016 New Revision: 276782 URL: http://llvm.org/viewvc/llvm-project?rev=276782&view=rev Log: [analyzer] Add basic capabilities to detect source code clones. This patch adds the CloneDetector class which allows searching source code for clones. For every

Re: [PATCH] D22208: [clang-tidy] Fixes to modernize-use-emplace

2016-07-26 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:115 @@ -95,1 +114,3 @@ + auto CtorCallSourceRange = CharSourceRange::getTokenRange( + InnerCtorCall->getExprLoc(), CallParensRange.getBegin()); alexfh wrote: > This doesn't

Re: r276782 - [analyzer] Add basic capabilities to detect source code clones.

2016-07-26 Thread Mike Aizatsky via cfe-commits
Artem, I think you broke the build. Could you take a look please? http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/11051 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/11051/steps/build%20clang/logs/stdio [80/140] Building CXX object tools/clang/lib/

r276791 - [analyzer] Hotfix for build failure due to declaration shadowing in r276782.

2016-07-26 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Jul 26 14:05:22 2016 New Revision: 276791 URL: http://llvm.org/viewvc/llvm-project?rev=276791&view=rev Log: [analyzer] Hotfix for build failure due to declaration shadowing in r276782. CloneDetector member variable is shadowing the class with the same name, which cause

Re: r276782 - [analyzer] Add basic capabilities to detect source code clones.

2016-07-26 Thread Artem Dergachev via cfe-commits
Yep, sorry, should be fixed in r276791. On 26.07.2016 22:13, Mike Aizatsky wrote: Artem, I think you broke the build. Could you take a look please? http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/11051 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/build

Re: [PATCH] D21385: Adjust Registry interface to not require plugins to export a registry

2016-07-26 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM https://reviews.llvm.org/D21385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

r276797 - Modules: follow up to r276769.

2016-07-26 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Jul 26 14:56:12 2016 New Revision: 276797 URL: http://llvm.org/viewvc/llvm-project?rev=276797&view=rev Log: Modules: follow up to r276769. In r276769, I forgot to forward the driver option, add that here. rdar://26675801 Modified: cfe/trunk/lib/Driver/Tools.cpp Modif

Re: [PATCH] D22637: [OpenCL] Add extension cl_khr_mipmap_image to clang

2016-07-26 Thread Aaron En Ye Shi via cfe-commits
ashi1 updated this revision to Diff 65582. ashi1 added a comment. Revised based on Anastasia's comments. Restructured the if statements in test cases. Repository: rL LLVM https://reviews.llvm.org/D22637 Files: include/clang/Basic/OpenCLExtensions.def lib/Basic/Targets.cpp test/Misc/am

Re: r276716 - [Coverage] Do not write out coverage mappings with zero entries

2016-07-26 Thread Vedant Kumar via cfe-commits
Hi Justin, Could you take a look at this code coverage fix? It skips visiting decls if they would require context from system headers to present properly. This prevents us from writing out an empty coverage mapping for the lambda in `assert([] { return true; }());`. I think it would be a good id

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-26 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 65588. yaxunl marked an inline comment as done. yaxunl added a comment. Add more sema tests. Eliminate redundant diagnostic messages. https://reviews.llvm.org/D21567 Files: include/clang/AST/OperationKinds.def include/clang/Basic/DiagnosticGroups.td in

Re: r276716 - [Coverage] Do not write out coverage mappings with zero entries

2016-07-26 Thread Justin Bogner via cfe-commits
Vedant Kumar via cfe-commits writes: > Hi Justin, > > Could you take a look at this code coverage fix? > > It skips visiting decls if they would require context from system headers to > present properly. This prevents us from writing out an empty coverage mapping > for the lambda in `assert([] { r

Re: r276716 - [Coverage] Do not write out coverage mappings with zero entries

2016-07-26 Thread Vedant Kumar via cfe-commits
Thanks Justin! @Hans, could we take this for llvm 3.9 also? best, vedant > On Jul 26, 2016, at 1:39 PM, Justin Bogner wrote: > > Vedant Kumar via cfe-commits writes: >> Hi Justin, >> >> Could you take a look at this code coverage fix? >> >> It skips visiting decls if they would require cont

Re: r276716 - [Coverage] Do not write out coverage mappings with zero entries

2016-07-26 Thread Hans Wennborg via cfe-commits
Sure, r276801. Thanks, Hans On Tue, Jul 26, 2016 at 1:41 PM, Vedant Kumar wrote: > Thanks Justin! > > @Hans, could we take this for llvm 3.9 also? > > best, > vedant > >> On Jul 26, 2016, at 1:39 PM, Justin Bogner wrote: >> >> Vedant Kumar via cfe-commits writes: >>> Hi Justin, >>> >>> Could y

Re: [PATCH] D22697: [ObjC Availability] Consider lexical context of use of declaration when emitting availability diagnostics

2016-07-26 Thread Erik Pilkington via cfe-commits
erik.pilkington updated this revision to Diff 65595. erik.pilkington added a comment. Thanks for taking a look! This new patch makes a `getCurContextVersion` (now `getVersionForDecl`) take a parameter, which is the declaration that needs to be considered. This is so that we can later reuse it t

Re: [PATCH] D22766: Handle -mlong-calls on Hexagon

2016-07-26 Thread Eric Christopher via cfe-commits
echristo added a comment. Why isn't the existing +long-calls handling good enough (other than making it a generic option rather than arm specific)? You don't seem to be using any of the code in Targets.cpp to do anything. Also a couple of random comments inline on the patch. -eric ==

Re: [PATCH] D20196: [clang-tidy] Inefficient string operation

2016-07-26 Thread Bittner Barni via cfe-commits
bittnerbarni updated this revision to Diff 65606. https://reviews.llvm.org/D20196 Files: clang-tidy/performance/CMakeLists.txt clang-tidy/performance/InefficientStringConcatenationCheck.cpp clang-tidy/performance/InefficientStringConcatenationCheck.h clang-tidy/performance/PerformanceTidy

Re: [PATCH] Add support for the 'unless' matcher in the dynamic layer.

2016-07-26 Thread Samuel Benzaquen via cfe-commits
One of the reasons we added the minimum was because these nodes added overhead to the matching that was not unnecessary when they only had a single node. On the current implementation we could actually get rid of the node completely for the one argument calls. I would be ok with removing the lower

Re: [llvm-dev] [PATCH] Add support for the 'unless' matcher in the dynamic layer.

2016-07-26 Thread Piotr Padlewski via cfe-commits
We could also just add nothing() matcher, so debugging would be much easier, just add anything() or nothing() matcher as extra argument. The other pros of it is that new developers won't send the patches that uses those variadic matchers with only one argument. 2016-07-26 16:02 GMT-07:00 Zac Hans

[PATCH] Add support for the 'unless' matcher in the dynamic layer.

2016-07-26 Thread Zac Hansen via cfe-commits
I was wondering if there is any objection to removing the 2-element minimum on the eachOf, anyOf and allOf matchers. It is frustrating when playing with matchers to have to edit significant amounts of code to be able to temporarily go from 2 to 1 matcher inside an any- or allOf matcher. And overa

[PATCH] D22834: Added 'inline' attribute to basic_string's destructor

2016-07-26 Thread Laxman Sole via cfe-commits
laxmansole created this revision. laxmansole added reviewers: mclow.lists, howard.hinnant. laxmansole added subscribers: cfe-commits, sebpop, hiraditya, evandro, flyingforyou. Currently basic_string's destructor is not getting inlined. So adding 'inline' attribute to ~basic_string(). Worked i

Re: [PATCH] Add support for the 'unless' matcher in the dynamic layer.

2016-07-26 Thread Zac Hansen via cfe-commits
Even if it still did add overhead, it seems perfectly reasonable, from a user's perspective (namely mine), that if I introduce unnecessary narrowing matchers to my chain that there may be a performance penalty. The ability to do the following easily outweighs any performance issues for me: anyOf

Re: [PATCH] D22782: Added 'inline' attribute to __init to inline the basic_string's constructor

2016-07-26 Thread Laxman Sole via cfe-commits
laxmansole added a comment. In https://reviews.llvm.org/D22782#495436, @mclow.lists wrote: > Do we have a test for the problem that this is solving? $ cat foo.cpp int foo(const std::string name); int main(){ return foo("bar"); } $clang++ -S -O3 -fno-exceptions foo.cpp Assembly ou

Re: [PATCH] D22426: Fix automatic detection of ARM MSVC toolset in clang.exe

2016-07-26 Thread Dave Bartolomeo via cfe-commits
DaveBartolomeo updated this revision to Diff 65633. DaveBartolomeo added a comment. Herald added a subscriber: samparker. Updated the selection algorithm based on review feedback. Now, if clang.exe itself is x64-hosted, we'll look for the x64-hosted MSVC toolset if it exists. If clang.exe is not

  1   2   >