[PATCH] D36390: Fix overloaded static functions in SemaCodeComplete

2017-10-26 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. This looks good. Sorry for the long wait, do you have commit access? https://reviews.llvm.org/D36390 ___ cfe-commits mailing list cfe-commits@l

[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-10-26 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. Just FYI, I talked with Richard and he'll not get to it before next week. Hope that's fine. https://reviews.llvm.org/D5767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D36390: Fix overloaded static functions in SemaCodeComplete

2017-10-26 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. @bkramer Not yet, it would be good to have one though :) https://reviews.llvm.org/D36390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r316643 - [clang-tidy ObjC] [1/3] New module `objc` for Objective-C checks

2017-10-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Oct 26 01:23:20 2017 New Revision: 316643 URL: http://llvm.org/viewvc/llvm-project?rev=316643&view=rev Log: [clang-tidy ObjC] [1/3] New module `objc` for Objective-C checks Summary: This is part 1 of 3 of a series of changes to improve Objective-C linting in clang-tidy.

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/Execution.h:76 + + void appendArgumentsAdjuster(ArgumentsAdjuster Adjuster); + klimek wrote: > I think the argument adjuster adjustment shouldn't be part of this interface, > as the argument adjust

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 120370. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed review comments o Removed argument adjusting interfaces from ExecutionContext o Switched positions of Action and Adjuster parameters in the `execute` interfaces https://rev

[clang-tools-extra] r316645 - [clang-tidy ObjC] [2/3] Support non-C++ files in ClangTidyTest

2017-10-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Oct 26 01:37:25 2017 New Revision: 316645 URL: http://llvm.org/viewvc/llvm-project?rev=316645&view=rev Log: [clang-tidy ObjC] [2/3] Support non-C++ files in ClangTidyTest Summary: This is part 2 of 3 of a series of changes to improve Objective-C linting in clang-tidy. Cu

r316646 - Fix overloaded static functions in SemaCodeComplete

2017-10-26 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 26 01:41:28 2017 New Revision: 316646 URL: http://llvm.org/viewvc/llvm-project?rev=316646&view=rev Log: Fix overloaded static functions in SemaCodeComplete https://bugs.llvm.org/show_bug.cgi?id=33904 Happens when static function is accessed via the class variable. That l

[PATCH] D36390: Fix overloaded static functions in SemaCodeComplete

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316646: Fix overloaded static functions in SemaCodeComplete (authored by d0k). Changed prior to commit: https://reviews.llvm.org/D36390?vs=111647&id=120374#toc Repository: rL LLVM https://reviews.ll

[PATCH] D38842: [CrossTU] Fix handling of Cross Translation Unit directory path

2017-10-26 Thread Rafael Stahl via Phabricator via cfe-commits
r.stahl accepted this revision. r.stahl added a comment. This revision is now accepted and ready to land. I'm gonna go ahead and approve this now, because I reported the issue. Note that I'm not a regular contributor, yet! Comment at: lib/CrossTU/CrossTranslationUnit.cpp:99

[PATCH] D39321: ARM: centralise SizeType, PtrDiffType, and IntPtrType

2017-10-26 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. Could you upload a diff with more context, as suggested in http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface? That would make it easier to review the patch. Repository: rL LLVM https://reviews.llvm.org/D39321 __

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D34272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] r316649 - [clangd] Add a simple fuzzer. It crashes a lot :)

2017-10-26 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 26 03:03:11 2017 New Revision: 316649 URL: http://llvm.org/viewvc/llvm-project?rev=316649&view=rev Log: [clangd] Add a simple fuzzer. It crashes a lot :) Added: clang-tools-extra/trunk/clangd/fuzzer/ clang-tools-extra/trunk/clangd/fuzzer/CMakeLists.txt clang-

[clang-tools-extra] r316650 - [clangd] Don't use /// for non-doxygen comments.

2017-10-26 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 26 03:07:04 2017 New Revision: 316650 URL: http://llvm.org/viewvc/llvm-project?rev=316650&view=rev Log: [clangd] Don't use /// for non-doxygen comments. Modified: clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp clang-tools-extra/trunk/clangd/tool/ClangdMai

[PATCH] D38819: [libunwind] Add support for dwarf unwinding on windows on x86_64

2017-10-26 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 120380. mstorsjo added a comment. Simplified the assembly by sharing much more code between the unix and win64 paths, added a padding element to ensure more stable struct packing. https://reviews.llvm.org/D38819 Files: docs/index.rst include/__libunwi

[clang-tools-extra] r316652 - [clangd] Don't crash on empty textDocument/didChange.

2017-10-26 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 26 03:36:20 2017 New Revision: 316652 URL: http://llvm.org/viewvc/llvm-project?rev=316652&view=rev Log: [clangd] Don't crash on empty textDocument/didChange. Found by clangd-fuzzer. Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp clang-tools-extra/t

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316653: [Tooling] A new framework for executing clang frontend actions. (authored by ioeric). Repository: rL LLVM https://reviews.llvm.org/D34272 Files: cfe/trunk/include/clang/Tooling/CommonOptions

r316653 - [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 26 03:38:14 2017 New Revision: 316653 URL: http://llvm.org/viewvc/llvm-project?rev=316653&view=rev Log: [Tooling] A new framework for executing clang frontend actions. Summary: This defines a `clang::tooling::ToolExecutor` interface that can be extended to support di

[libunwind] r316657 - [libunwind] Always use unwind tables in tests

2017-10-26 Thread Peter Smith via cfe-commits
Author: psmith Date: Thu Oct 26 05:02:03 2017 New Revision: 316657 URL: http://llvm.org/viewvc/llvm-project?rev=316657&view=rev Log: [libunwind] Always use unwind tables in tests For many targets setting -fno-exceptions will prevent unwinding tables from being generated for the test programs.

r316658 - Add a new attribute definition spelling, Clang<"attr">, that expands to two attribute spellings: GNU<"attr"> and CXX11<"clang", "attr">. This is similar to how the GCC spelling works and is

2017-10-26 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Oct 26 05:19:02 2017 New Revision: 316658 URL: http://llvm.org/viewvc/llvm-project?rev=316658&view=rev Log: Add a new attribute definition spelling, Clang<"attr">, that expands to two attribute spellings: GNU<"attr"> and CXX11<"clang", "attr">. This is similar to h

[clang-tools-extra] r316659 - [clangd] Report an error on findDefinitions/signatureHelp on an unopened file instead of crashing.

2017-10-26 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 26 05:28:13 2017 New Revision: 316659 URL: http://llvm.org/viewvc/llvm-project?rev=316659&view=rev Log: [clangd] Report an error on findDefinitions/signatureHelp on an unopened file instead of crashing. Found by clangd-fuzzer. Modified: clang-tools-extra/trunk/clan

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Phil Camp via Phabricator via cfe-commits
FlameTop added a comment. Hello, I'm afraid this commit is failing on Windows. http://lab.llvm.org:8011/console?builder=llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast&builder=llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast FAIL: Clang-Unit :: Tooling/./ToolingTests.exe/StandaloneToolTest.SimpleAct

[PATCH] D39138: [CodeGen] Generate TBAA info for 'this' pointers

2017-10-26 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev abandoned this revision. kosarev added a comment. OK, thanks. Repository: rL LLVM https://reviews.llvm.org/D39138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39008: [CodeGen] Propagate may-alias'ness of lvalues with TBAA info

2017-10-26 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. I suspect this is supposed to be in this diff: In https://reviews.llvm.org/D38796#906887, @rjmccall wrote: > I think probably the best solution is to track may-alias-ness explicitly in > the TBAAAccessInfo instead of relying in the frontend on being able to > distingui

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Bjorn Pettersson via Phabricator via cfe-commits
bjope added a comment. I get errors when compiling due to this commit: FAILED: tools/clang/lib/Tooling/CMakeFiles/clangTooling.dir/StandaloneExecution.cpp.o /repo/app/clang/3.6/bin/clang++ -march=corei7 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MA

Re: [PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via cfe-commits
Sorry about that! I'm fixing these now... On Thu, Oct 26, 2017 at 2:50 PM Bjorn Pettersson via Phabricator < revi...@reviews.llvm.org> wrote: > bjope added a comment. > > I get errors when compiling due to this commit: > > FAILED: > tools/clang/lib/Tooling/CMakeFiles/clangTooling.dir/Standalone

r316661 - Try to fix warnings and windows test failures caused by r316653

2017-10-26 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 26 06:09:50 2017 New Revision: 316661 URL: http://llvm.org/viewvc/llvm-project?rev=316661&view=rev Log: Try to fix warnings and windows test failures caused by r316653 Modified: cfe/trunk/lib/Tooling/StandaloneExecution.cpp cfe/trunk/unittests/Tooling/Executio

Re: [PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via cfe-commits
r316661 should fix these (hopefully!). On Thu, Oct 26, 2017 at 3:03 PM Eric Liu wrote: > Sorry about that! I'm fixing these now... > > > On Thu, Oct 26, 2017 at 2:50 PM Bjorn Pettersson via Phabricator < > revi...@reviews.llvm.org> wrote: > >> bjope added a comment. >> >> I get errors when compi

Re: r316653 - [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Maxim Kuvyrkov via cfe-commits
Hi Eric, This seems to have broken clang-cmake-thumbv7-a15 buildbot [*]. Would you please investigate? Or did you fix this while I was writing this email in 316661 :-) ? Thank you, [*] http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15/builds/12511 -- Maxim Kuvyrkov www.linaro.org

[PATCH] D37187: [Analyzer] Fix Bug 25609 - Assertion UNREACHABLE: 'Unexpected ProgramPoint' with widen-loops=true

2017-10-26 Thread Henry Wong via Phabricator via cfe-commits
MTC updated this revision to Diff 120401. MTC marked an inline comment as done. MTC added a comment. Split the long "expected" line into multiple lines. https://reviews.llvm.org/D37187 Files: lib/StaticAnalyzer/Core/PathDiagnostic.cpp test/Analysis/loop-widening-notes.c Index: test/Analy

Re: r316653 - [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via cfe-commits
Hi Maxim, Thanks for the email! I'll look into this right now. Thanks, Eric On Thu, Oct 26, 2017 at 3:11 PM Maxim Kuvyrkov wrote: > Hi Eric, > > This seems to have broken clang-cmake-thumbv7-a15 buildbot [*]. Would you > please investigate? > > Or did you fix this while I was writing this ema

Re: [clang-tools-extra] r316650 - [clangd] Don't use /// for non-doxygen comments.

2017-10-26 Thread Jonas Hahnfeld via cfe-commits
Am 2017-10-26 06:07, schrieb Benjamin Kramer via cfe-commits: Author: d0k Date: Thu Oct 26 03:07:04 2017 New Revision: 316650 URL: http://llvm.org/viewvc/llvm-project?rev=316650&view=rev Log: [clangd] Don't use /// for non-doxygen comments. Modified: clang-tools-extra/trunk/clangd/fuzzer/Cl

r316662 - [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL.

2017-10-26 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 26 06:18:14 2017 New Revision: 316662 URL: http://llvm.org/viewvc/llvm-project?rev=316662&view=rev Log: [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL. Summary: The warning was initially introduced in D32914 by @thakis, and th

[PATCH] D38954: [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL.

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316662: [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than… (authored by lebedevri). Changed prior to commit: https://reviews.llvm.org/D38954?vs=120316&id=120402#toc Reposi

[PATCH] D39008: [CodeGen] Propagate may-alias'ness of lvalues with TBAA info

2017-10-26 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Yes, I don't like it too when it comes to comparing pointers to metadata nodes in an attempt to figure out what kind of access we are dealing with. What concerns me is that there may be other kinds of TBAA descriptors that are neither ordinary nor may-alias ones. For ex

[PATCH] D24933: Enable configuration files in clang

2017-10-26 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff updated this revision to Diff 120403. sepavloff added a comment. Addressed reviewer's notes - Do not process binary directory separately but add it to the array of search directories. - Do not use result file name buffer for temporary data. https://reviews.llvm.org/D24933 Files: d

[PATCH] D24933: Enable configuration files in clang

2017-10-26 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff marked 4 inline comments as done. sepavloff added inline comments. Comment at: lib/Driver/Driver.cpp:637 + } + FilePath.clear(); + return false; hfinkel wrote: > Why do we do clear FilePath here? The intent was to avoid copying file name buffer. It h

[PATCH] D39331: Add flags to control the -finstrument-functions instrumentation calls to __cyg_profile functions

2017-10-26 Thread Hans Wennborg via Phabricator via cfe-commits
hans created this revision. This adds two flags: -fno-cygprofile-exit Don't insert any calls for function exit. -fno-cygprofile-args Don't pass any arguments to the cygprofile functions (the implementer has to figure out the caller address themselves) These are useful for reducing the size and

[PATCH] D39057: [clangd][WIP] Integrate the refactoring actions into clangd

2017-10-26 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39057#906297, @ilya-biryukov wrote: > There's another patch (https://reviews.llvm.org/D39276) that tries to add > `workspace/executeCommand` for a slightly different use-case. > Could we take the code for parsing/handling `workspace/execut

Re: [clang-tools-extra] r316650 - [clangd] Don't use /// for non-doxygen comments.

2017-10-26 Thread Benjamin Kramer via cfe-commits
On Thu, Oct 26, 2017 at 3:16 PM, Jonas Hahnfeld wrote: > Am 2017-10-26 06:07, schrieb Benjamin Kramer via cfe-commits: >> >> Author: d0k >> Date: Thu Oct 26 03:07:04 2017 >> New Revision: 316650 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=316650&view=rev >> Log: >> [clangd] Don't use /// fo

[PATCH] D39121: [clang-tidy] Misplaced Operator in Strlen in Alloc

2017-10-26 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 120408. baloghadamsoftware added a comment. Updated according to comments. https://reviews.llvm.org/D39121 Files: clang-tidy/bugprone/BugproneTidyModule.cpp clang-tidy/bugprone/CMakeLists.txt clang-tidy/bugprone/MisplacedOperatorInStrlenInA

[PATCH] D36836: [clang-tidy] Implement readability-function-cognitive-complexity check

2017-10-26 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 120407. lebedev.ri marked 3 inline comments as done. lebedev.ri added a comment. Rebased. Tighten matchers. Add an assert that the function we matched does have the body (the check analyses the function bodies, so if there is no body, there is nothing to d

[PATCH] D36836: [clang-tidy] Implement readability-function-cognitive-complexity check

2017-10-26 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp:499 + functionDecl( + allOf(isDefinition(), unless(anyOf(isInstantiated(), isImplicit() + .bind("func"), aaron.ballman wrote: > Si

[libunwind] r316664 - Merging r316657: fixing libunwind tests

2017-10-26 Thread Renato Golin via cfe-commits
Author: rengolin Date: Thu Oct 26 06:53:36 2017 New Revision: 316664 URL: http://llvm.org/viewvc/llvm-project?rev=316664&view=rev Log: Merging r316657: fixing libunwind tests Modified: libunwind/branches/release_50/test/libunwind/test/config.py Modified: libunwind/branches/release_50/test/li

[PATCH] D39121: [clang-tidy] Misplaced Operator in Strlen in Alloc

2017-10-26 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp:64-67 + const auto StrLenText = Lexer::getSourceText( + CharSourceRange::getTokenRange(StrLen->getSourceRange()), + *Result.SourceManager, getLangOpts()); +

Re: r316653 - [Tooling] A new framework for executing clang frontend actions.

2017-10-26 Thread Eric Liu via cfe-commits
It's not intended, but r316661 indeed fixed http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15 ;) On Thu, Oct 26, 2017 at 3:16 PM Eric Liu wrote: > Hi Maxim, > > Thanks for the email! I'll look into this right now. > > Thanks, > Eric > > On Thu, Oct 26, 2017 at 3:11 PM Maxim Kuvyrkov > w

[PATCH] D39281: [libunwind] Express Registers_*::lastDwarfReg using _LIBUNWIND_HIGHEST_DWARF_REGISTER

2017-10-26 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb added a comment. I think one source of truth is better than two. I do find the constant's value a bit off in general though. That is, the name 'HIGHEST' implies to me that it is the highest value used, not N + 1 as we currently define it. https://reviews.llvm.org/D39281 ___

[PATCH] D38798: [OpenMP] Support for implicit "declare target" functions - Sema patch

2017-10-26 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. Tests? Comment at: include/clang/Basic/LangOptions.def:193 LANGOPT(OpenMPUseTLS , 1, 0, "Use TLS for threadprivates or runtime calls") +LANGOPT(OpenMPImplicitDeclareTarget , 1, 0, "Enable implicit declare target extension - marks automatically d

r316670 - Add objcCategoryImplDecl matcher

2017-10-26 Thread Dave Lee via cfe-commits
Author: kastiglione Date: Thu Oct 26 08:53:37 2017 New Revision: 316670 URL: http://llvm.org/viewvc/llvm-project?rev=316670&view=rev Log: Add objcCategoryImplDecl matcher Summary: Add `objcCategoryImplDecl` which matches ObjC category definitions (`@implementation`). This matcher complements `obj

[PATCH] D39293: Add objcCategoryImplDecl matcher

2017-10-26 Thread Dave Lee via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316670: Add objcCategoryImplDecl matcher (authored by kastiglione). Changed prior to commit: https://reviews.llvm.org/D39293?vs=120269&id=120431#toc Repository: rL LLVM https://reviews.llvm.org/D392

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. Thanks! This looks generally good, I have one pending question inline. Comment at: test/CodeGenObjC/debug-info-blocks.m:13 -// rdar://problem/14386148 -// Test that we don't emit bogus line numbers for the helper functions. -// Test that we do emit sc

[PATCH] D39177: [CodeGen] Generate TBAA info for reference loads

2017-10-26 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev updated this revision to Diff 120428. kosarev added a comment. - Referencee's renamed to pointee's. - EmitLoadOfReference() and EmitLoadOfReferenceLValue() reworked to take reference lvalues. https://reviews.llvm.org/D39177 Files: lib/CodeGen/CGBlocks.cpp lib/CodeGen/CGExpr.cpp l

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere added inline comments. Comment at: lib/CodeGen/CGBlocks.cpp:1651 StartFunction(FD, C.VoidTy, Fn, FI, args); - // Create a scope with an artificial location for the body of this function. - auto AL = ApplyDebugLocation::CreateArtificial(*this); + ApplyDebugLocat

[PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. > And lld currently silently mislinks inputs with .ctors sections Is there a bug for this? I see https://bugs.llvm.org/show_bug.cgi?id=31224, which links to https://reviews.llvm.org/D35509, but neither seems active. https://reviews.llvm.org/D39317 __

Re: [PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
*the wrong thing On Thu, Oct 26, 2017 at 12:43 PM, Nico Weber wrote: > I don't know of one. ruiu said he's considering making lld error out on > mixed init_array + ctors instead of having it silently do the same thing. > > On Thu, Oct 26, 2017 at 12:28 PM, Shoaib Meenai via Phabricator via > cfe

Re: [PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Nico Weber via cfe-commits
I don't know of one. ruiu said he's considering making lld error out on mixed init_array + ctors instead of having it silently do the same thing. On Thu, Oct 26, 2017 at 12:28 PM, Shoaib Meenai via Phabricator via cfe-commits wrote: > smeenai added a comment. > > > And lld currently silently mis

Re: r316518 - mplement __has_unique_object_representations

2017-10-26 Thread Richard Smith via cfe-commits
On 24 Oct 2017 14:32, "Erich Keane via cfe-commits" < cfe-commits@lists.llvm.org> wrote: Author: erichkeane Date: Tue Oct 24 14:31:50 2017 New Revision: 316518 URL: http://llvm.org/viewvc/llvm-project?rev=316518&view=rev Log: mplement __has_unique_object_representations A helper builtin to facil

RE: r316518 - mplement __has_unique_object_representations

2017-10-26 Thread Keane, Erich via cfe-commits
Thanks for the review Richard. Would you like me to revert, or can I just make these changes in a new patch? From: Richard Smith [mailto:rich...@metafoo.co.uk] Sent: Thursday, October 26, 2017 9:50 AM To: Keane, Erich Cc: cfe-commits Subject: Re: r316518 - mplement __has_unique_object_represe

[PATCH] D38819: [libunwind] Add support for dwarf unwinding on windows on x86_64

2017-10-26 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D38819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39317: Use -fuse-init-array if no gcc installation is found.

2017-10-26 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. I don't think working around an lld bug is a particularly good justification for this, but I do think it makes sense to switch this from being a "compatibility with GCC 4.7+" thing to being a

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Greg Clayton via Phabricator via cfe-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Very close. Thanks for making the changes. Just a few nits. Comment at: utils/clangdiag.py:66 +def setDiagBreakpoint(frame, bp_loc, dict): +id = frame.FindV

r316674 - Move MS inline asm parser methods out of line to reduce indentation, NFC

2017-10-26 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 26 10:07:48 2017 New Revision: 316674 URL: http://llvm.org/viewvc/llvm-project?rev=316674&view=rev Log: Move MS inline asm parser methods out of line to reduce indentation, NFC Modified: cfe/trunk/lib/Parse/ParseStmtAsm.cpp Modified: cfe/trunk/lib/Parse/ParseStmtAsm

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. Thanks for the feedback (addressed below). btw, where should this module go? Since it's intended for clang, and clang based tool, developers, I put it in `clang/utils`, but Zackery suggested `lldb/examples/python` might be a better place. Please let me know if anyone

[PATCH] D37341: [Sema] Fix an assert-on-invalid by avoiding function template specialisation deduction for invalid functions with fabricated template arguments

2017-10-26 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai accepted this revision. vsapsai added a comment. This revision is now accepted and ready to land. Looks good to me. Repository: rL LLVM https://reviews.llvm.org/D37341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Zachary Turner via Phabricator via cfe-commits
zturner added a comment. Do I understand correctly that this will insert breakpoints on *all* clang diagnostics? That's not necessarily bad, but I was under the impression originally that it would let you pick the diagnostics you wanted to insert breakpoints on. Also, What is the workflow for

[PATCH] D39305: Simplify codegen and debug info generation for block context parameters.

2017-10-26 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. The original code doesn't make any sense; it looks like the indirection is backwards. We just built a debug variable corresponding to the block descriptor pointer parameter, so LocalAddr should be dbg.declare'd to be that variable and Arg should be dbg.value'd. It lo

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Greg Clayton via Phabricator via cfe-commits
clayborg accepted this revision. clayborg added inline comments. Comment at: utils/clangdiag.py:117 +disable(exe_ctx) +else: +getDiagtool(exe_ctx.GetTarget(), args.path[0]) hintonda wrote: > clayborg wrote: > > should probably verify that this

r316681 - [X86] Add a target attribute test for no-sse4.

2017-10-26 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Oct 26 10:54:22 2017 New Revision: 316681 URL: http://llvm.org/viewvc/llvm-project?rev=316681&view=rev Log: [X86] Add a target attribute test for no-sse4. Modified: cfe/trunk/test/CodeGen/attr-target-x86.c Modified: cfe/trunk/test/CodeGen/attr-target-x86.c URL: htt

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added inline comments. Comment at: test/CodeGenObjC/debug-info-blocks.m:13 -// rdar://problem/14386148 -// Test that we don't emit bogus line numbers for the helper functions. -// Test that we do emit scope info for the helper functions. +// rdar://problem/32907581 +// Test

[PATCH] D39305: Simplify codegen and debug info generation for block context parameters.

2017-10-26 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. In https://reviews.llvm.org/D39305#908208, @rjmccall wrote: > The original code doesn't make any sense; it looks like the indirection is > backwards. We just built a debug variable corresponding to the block > descriptor pointer parameter, so LocalAddr should be dbg.de

[PATCH] D39331: Add flags to control the -finstrument-functions instrumentation calls to __cyg_profile functions

2017-10-26 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. Quick question: We're talking about a few different variants on this feature now: Post-inlining instrumentation, only marking function entries, and not passing the function address. Do you intend to use all of these things separately? I ask because, taken together, that

[PATCH] D38596: Implement attribute target multiversioning

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. I note my rebase lost the tests... I'll fix that up soon, sorry guys! https://reviews.llvm.org/D38596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: test/CodeGenObjC/debug-info-blocks.m:20 // CHECK: call {{.*}}, !dbg ![[DBG_LINE:[0-9]+]] // CHECK-NOT: ret // CHECK: load {{.*}}, !dbg ![[COPY_LINE:[0-9]+]] vsk wrote: > aprantl wrote: > > What's the location used for

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: test/CodeGenObjC/debug-info-blocks.m:20 // CHECK: call {{.*}}, !dbg ![[DBG_LINE:[0-9]+]] // CHECK-NOT: ret // CHECK: load {{.*}}, !dbg ![[COPY_LINE:[0-9]+]] aprantl wrote: > vsk wrote: > > aprantl wrote: > > > What's

r316684 - Simplify codegen and debug info generation for block context parameters.

2017-10-26 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Oct 26 11:16:05 2017 New Revision: 316684 URL: http://llvm.org/viewvc/llvm-project?rev=316684&view=rev Log: Simplify codegen and debug info generation for block context parameters. The exisiting code goes out of its way to put block parameters into an alloca only at -O0,

[PATCH] D39305: Simplify codegen and debug info generation for block context parameters.

2017-10-26 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316684: Simplify codegen and debug info generation for block context parameters. (authored by adrian). Changed prior to commit: https://reviews.llvm.org/D39305?vs=120312&id=120455#toc Repository: rL

[PATCH] D39321: ARM: centralise SizeType, PtrDiffType, and IntPtrType

2017-10-26 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. I think you missed a couple other places which still set SizeType and PtrDiffType? Repository: rL LLVM https://reviews.llvm.org/D39321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

r316686 - Revert "Simplify codegen and debug info generation for block context parameters."

2017-10-26 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Oct 26 11:32:16 2017 New Revision: 316686 URL: http://llvm.org/viewvc/llvm-project?rev=316686&view=rev Log: Revert "Simplify codegen and debug info generation for block context parameters." This reverts commit r316684 while investigating buildbot breakage. Added: cf

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 120459. hintonda added a comment. - Enhance diagtool option to check, reset, print out current value. https://reviews.llvm.org/D36347 Files: utils/clangdiag.py Index: utils/clangdiag.py ===

[PATCH] D38596: Implement attribute target multiversioning

2017-10-26 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 120460. https://reviews.llvm.org/D38596 Files: include/clang/AST/Decl.h include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td include/clang/Basic/TargetInfo.h include/clang/Sema/Sema.h lib/Basic/Targets/X86.cpp lib/Basic/Targ

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 120461. vsk marked 8 inline comments as done. vsk added a comment. - Tighten test case to show the dbg loc on return instructions. https://reviews.llvm.org/D39310 Files: lib/CodeGen/CGBlocks.cpp test/CodeGenObjC/debug-info-blocks.m Index: test/CodeGenObjC

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added inline comments. Comment at: test/CodeGenObjC/debug-info-blocks.m:20 // CHECK: call {{.*}}, !dbg ![[DBG_LINE:[0-9]+]] // CHECK-NOT: ret // CHECK: load {{.*}}, !dbg ![[COPY_LINE:[0-9]+]] aprantl wrote: > aprantl wrote: > > vsk wrote: > > > aprantl wro

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Greg Clayton via Phabricator via cfe-commits
clayborg added a comment. Looks good. https://reviews.llvm.org/D36347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38985: [refactor] Add support for editor commands that connect IDEs/editors to the refactoring actions

2017-10-26 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman marked 5 inline comments as done. arphaman added inline comments. Comment at: include/clang/Tooling/Refactoring/Extract/ExtractFunction.h:21 +/// then called from the place where the original code was. +class ExtractFunction final : public SourceChangeRefactoringRule { +

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added inline comments. Comment at: lib/Basic/Targets/X86.cpp:835 defineCPUMacros(Builder, "slm"); +// gcc also defineds 'silvermont', but we never have. See comment below. break; defines https://reviews.llvm.org/D38824 _

[PATCH] D38985: [refactor] Add support for editor commands that connect IDEs/editors to the refactoring actions

2017-10-26 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 120466. arphaman added a comment. - Use a `RefactoringDescriptor` struct that's accessible from a static function in an operation class. - Make `createSourceReplacements` private. Repository: rL LLVM https://reviews.llvm.org/D38985 Files: include/cla

r316687 - [Analyzer] [Tests] Write analyzers crashes to stdout, and not to a separate file

2017-10-26 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Oct 26 12:00:22 2017 New Revision: 316687 URL: http://llvm.org/viewvc/llvm-project?rev=316687&view=rev Log: [Analyzer] [Tests] Write analyzers crashes to stdout, and not to a separate file With this change it would be sufficient to look at CI console to see the

[PATCH] D36347: New lldb python module for adding diagnostic breakpoints

2017-10-26 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. In https://reviews.llvm.org/D36347#908186, @zturner wrote: > Do I understand correctly that this will insert breakpoints on *all* clang > diagnostics? That's not necessarily bad, but I was under the impression > originally that it would let you pick the diagnostics yo

[PATCH] D39281: [libunwind] Express Registers_*::lastDwarfReg using _LIBUNWIND_HIGHEST_DWARF_REGISTER

2017-10-26 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 120467. mstorsjo edited the summary of this revision. mstorsjo added a comment. Herald added subscribers: JDevlieghere, aprantl. Adjusted _LIBUNWIND_HIGHEST_DWARF_REGISTER to actually have the value of the highest register, not highest+1. https://reviews.l

[PATCH] D39341: [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td file and pair them up with their negations.

2017-10-26 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. It looks like at one time Options.td was in alphabetical order, but that looks to have long been broken. The result is that it all the no- x86 options got separated from their other friends for no good reason. This patch puts them all together in one place wi

[PATCH] D38824: [X86] Synchronize the existing CPU predefined macros with the cases that gcc defines them

2017-10-26 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 120469. craig.topper added a comment. Fix Simon's comment https://reviews.llvm.org/D38824 Files: lib/Basic/Targets/X86.cpp test/Preprocessor/predefined-arch-macros.c Index: test/Preprocessor/predefined-arch-macros.c ===

[PATCH] D38774: [CodeGen] Add support for IncompleteArrayType in Obj-C ivars.

2017-10-26 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks, LGTM. https://reviews.llvm.org/D38774 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

r316689 - Simplify codegen and debug info generation for block context parameters.

2017-10-26 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Oct 26 13:08:52 2017 New Revision: 316689 URL: http://llvm.org/viewvc/llvm-project?rev=316689&view=rev Log: Simplify codegen and debug info generation for block context parameters. The exisiting code goes out of its way to put block parameters into an alloca only at -O0,

[PATCH] D39341: [X86][Driver] Move all of the X86 feature flags to one spot in the Options.td file and pair them up with their negations.

2017-10-26 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM. Thanks. https://reviews.llvm.org/D39341 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D39177: [CodeGen] Generate TBAA info for reference loads

2017-10-26 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D39177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D39008: [CodeGen] Propagate may-alias'ness of lvalues with TBAA info

2017-10-26 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Sure, that makes sense to me. John. Repository: rL LLVM https://reviews.llvm.org/D39008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39310: [CGBlocks] Improve line info in backtraces containing *_helper_block

2017-10-26 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl accepted this revision. aprantl added inline comments. This revision is now accepted and ready to land. Comment at: test/CodeGenObjC/debug-info-blocks.m:20 // CHECK: call {{.*}}, !dbg ![[DBG_LINE:[0-9]+]] // CHECK-NOT: ret // CHECK: load {{.*}}, !dbg ![[COPY_LINE:[0-9]

[PATCH] D39049: [analyzer] Fix wrong calculation of offset in ArrayBoundsV2

2017-10-26 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki added a comment. > Do you mind writing some tests with multidimensional arrays to check what do > we lose if we remove that code? I have spent a few hours trying to write a test case that shows there is false negatives caused by this change. And fail. I see lots of false negati

r316695 - Fix C++ testcase I forgot to add to r316689.

2017-10-26 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Oct 26 13:16:03 2017 New Revision: 316695 URL: http://llvm.org/viewvc/llvm-project?rev=316695&view=rev Log: Fix C++ testcase I forgot to add to r316689. Modified: cfe/trunk/test/CodeGenCXX/blocks.cpp Modified: cfe/trunk/test/CodeGenCXX/blocks.cpp URL: http://llvm.or

[PATCH] D39342: [Bash-autocompletion] Pass all flags in shell command-line to Clang

2017-10-26 Thread Yuka Takahashi via Phabricator via cfe-commits
yamaguchi created this revision. Previously, we passed "#" to --autocomplete to indicate to enable cc1 flags. For example, when -cc1 or -Xclang was passed to bash, bash executed `clang --autocomplete=#-`. However, this was not a good implementation because it depends -Xclang and -cc1 parsing to s

  1   2   >