Re: [clang] 2ec59a0 - Buildbot debugging of 0d0b90105f92f6cd9cc7004d565834f4429183fb (lambda/function_ref lifetime issues)

2020-03-27 Thread David Blaikie via cfe-commits
"[&]" for simplicity/clarity. On Sun, Mar 22, 2020 at 10:44 PM David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: David Blaikie > Date: 2020-03-22T22:43:44-07:00 > New Revision: 2ec59a0a40f4ec02e6b2dbe5f12261959c191aa9 > > UR

Re: [clang] 857bf5d - [FIX] Do not copy an llvm::function_ref if it has to be reused

2020-03-30 Thread David Blaikie via cfe-commits
On Fri, Mar 27, 2020 at 5:16 PM Arthur O'Dwyer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Richard: Okay, filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94376 ! > > David: You are correct, the bug in function_ref appeared only when > constructing from `const function_ref&&`. When I

[clang] db92719 - DebugInfo: Defaulted non-type template parameters of bool type

2020-04-01 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2020-04-01T13:21:13-07:00 New Revision: db92719c1d17f5052e7cd1309b0e1e92240f47be URL: https://github.com/llvm/llvm-project/commit/db92719c1d17f5052e7cd1309b0e1e92240f47be DIFF: https://github.com/llvm/llvm-project/commit/db92719c1d17f5052e7cd1309b0e1e92240f47be.diff

Re: [clang] db92719 - DebugInfo: Defaulted non-type template parameters of bool type

2020-04-01 Thread David Blaikie via cfe-commits
On Wed, Apr 1, 2020 at 1:21 PM David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: David Blaikie > Date: 2020-04-01T13:21:13-07:00 > New Revision: db92719c1d17f5052e7cd1309b0e1e92240f47be > > URL: > https://github.c

[clang] 42465f4 - DebugInfo: (NFC) Refactor DWARF version calculation to make a future change (-fdebug-default-version) easier

2019-11-01 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2019-11-01T14:56:43-07:00 New Revision: 42465f406bcea5ea06001ccc52ab779120b68e87 URL: https://github.com/llvm/llvm-project/commit/42465f406bcea5ea06001ccc52ab779120b68e87 DIFF: https://github.com/llvm/llvm-project/commit/42465f406bcea5ea06001ccc52ab779120b68e87.diff

[clang] 098d901 - DebugInfo: Let -gdwarf use the toolchain default DWARF version, instead of hardcoded/aliased to -gdwarf-4

2019-11-01 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2019-11-01T15:17:51-07:00 New Revision: 098d901bd1be07f60c41450fa4af775b130117b9 URL: https://github.com/llvm/llvm-project/commit/098d901bd1be07f60c41450fa4af775b130117b9 DIFF: https://github.com/llvm/llvm-project/commit/098d901bd1be07f60c41450fa4af775b130117b9.diff

[clang] 1de2a05 - DebugInfo: Accept -gdwarf even in clang-cl

2019-11-01 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2019-11-01T15:36:15-07:00 New Revision: 1de2a05701e73f8ef5914c2f6ea2dcbe617ce18b URL: https://github.com/llvm/llvm-project/commit/1de2a05701e73f8ef5914c2f6ea2dcbe617ce18b DIFF: https://github.com/llvm/llvm-project/commit/1de2a05701e73f8ef5914c2f6ea2dcbe617ce18b.diff

[clang] 8d8f9c2 - [clang] Add -fdebug-default-version for specifying the default DWARF version

2019-11-07 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2019-11-07T12:05:58-08:00 New Revision: 8d8f9c24407461fadf1730e80ebcf7c767254715 URL: https://github.com/llvm/llvm-project/commit/8d8f9c24407461fadf1730e80ebcf7c767254715 DIFF: https://github.com/llvm/llvm-project/commit/8d8f9c24407461fadf1730e80ebcf7c767254715.diff

Re: [clang] d0f3c82 - Fix uninitialized variable warnings. NFCI.

2019-11-18 Thread David Blaikie via cfe-commits
Which compiler/what sort of warning was this addressing? (it can be beneficial to leave variables uninitialized if their value isn't intended to be used - so things like asan can catch bugs where the read of uninitialized is unintended) On Sat, Nov 2, 2019 at 11:27 AM Simon Pilgrim via cfe-commits

Re: [clang] dd870f6 - Fix warning about unused std::unique result, erase shifted elements

2019-11-18 Thread David Blaikie via cfe-commits
Hey Ben - if you're still involved with this part of the project - could you check that this change (to code you committed back in 2014, r215810) is correct & add a test case if possible? On Thu, Nov 7, 2019 at 10:39 AM Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author

Re: [clang] dd870f6 - Fix warning about unused std::unique result, erase shifted elements

2019-11-18 Thread David Blaikie via cfe-commits
OK - thanks for the context! On Mon, Nov 18, 2019 at 5:07 PM Ben Langmuir wrote: > Nice find. > > The change LGTM, and is clearly what I always intended it to do. I was > confused how this ever worked at all, but I see that (at least in libc++) > we move the values into place rather than swap t

[clang] e956952 - DebugInfo: Flag Dwarf Version metadata for merging during LTO

2019-11-22 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2019-11-22T17:16:35-08:00 New Revision: e956952edec140d2475aa7c8cbe20fbdd3320634 URL: https://github.com/llvm/llvm-project/commit/e956952edec140d2475aa7c8cbe20fbdd3320634 DIFF: https://github.com/llvm/llvm-project/commit/e956952edec140d2475aa7c8cbe20fbdd3320634.diff

Re: [clang] ce1f95a - Reland "[clang] Remove the DIFlagArgumentNotModified debug info flag"

2019-12-26 Thread David Blaikie via cfe-commits
On Wed, Nov 20, 2019 at 1:08 AM Djordje Todorovic via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: Djordje Todorovic > Date: 2019-11-20T10:08:07+01:00 > New Revision: ce1f95a6e077693f93d8869245f911aff3eb7e4c > > URL: > https://github.com/llvm/llvm-project/commit/ce1f95a6e077693f93d

Re: [clang] 3f4b70c - Revert "[clang][modules] Add support for merging lifetime-extended temporaries"

2019-12-26 Thread David Blaikie via cfe-commits
Please include details about the reason for the revert (links to and quotes from buildbots are helpful, etc) in the commit message - so others can follow along more easily (if they're seeing a local regression, they might be able to check if this revert is likely to address it - if they want to pic

[clang] 65eb74e - PointerLikeTypeTraits: Standardize NumLowBitsAvailable on static constexpr rather than anonymous enum

2020-01-16 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2020-01-16T15:30:50-08:00 New Revision: 65eb74e94b414fcde6bfa810d1c30c7fcb136b77 URL: https://github.com/llvm/llvm-project/commit/65eb74e94b414fcde6bfa810d1c30c7fcb136b77 DIFF: https://github.com/llvm/llvm-project/commit/65eb74e94b414fcde6bfa810d1c30c7fcb136b77.diff

r328166 - Fix for LLVM change (Transforms/Utils/Local.h -> Analysis/Utils/Local.h)

2018-03-21 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Mar 21 15:34:27 2018 New Revision: 328166 URL: http://llvm.org/viewvc/llvm-project?rev=328166&view=rev Log: Fix for LLVM change (Transforms/Utils/Local.h -> Analysis/Utils/Local.h) Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cp

Re: [PATCH] D44788: Add an option to support debug fission on implicit ThinLTO.

2018-03-22 Thread David Blaikie via cfe-commits
In implicit ThinLTO, the object files are only temporary. Sort of similar to using -gsplit-dwarf when compiling straight to an executable (without using -c): "clang++ x.cpp y.cpp -o a.out" - where should the .dwo files go then? If they go where the .o files go, then they'll be in /tmp/ and get del

Re: [PATCH] D44788: Add an option to support debug fission on implicit ThinLTO.

2018-03-22 Thread David Blaikie via cfe-commits
The only data we have is that where .o files go, .dwo files go beside them. How to generalize this to other situations isn't really obvious to me - even for a.out (do you put all the .dwo files next to a.out? in the same directory? if the names collide, where then? etc). Interestingly GCC for "g++

Re: [PATCH] D44826: Add -Wunused-using, a warning that finds unused using declarations.

2018-03-23 Thread David Blaikie via cfe-commits
While implementing the warning is great (wonder if there's any codebase that isn't -Wunused-using clean, that we could use to compare Clang and GCC's behavior broadly - make sure it's catching the same cases (or justify/investigate differences)) - and using it to motivate the debug info is an impro

r328380 - Change for an LLVM header file move

2018-03-23 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Mar 23 15:16:59 2018 New Revision: 328380 URL: http://llvm.org/viewvc/llvm-project?rev=328380&view=rev Log: Change for an LLVM header file move Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp URL: http://llvm.org/vie

Re: [PATCH] D44883: [Sema] Extend -Wself-assign with -Wself-assign-overloaded to warn on overloaded self-assignment (classes)

2018-03-26 Thread David Blaikie via cfe-commits
Historically Clang's policy on warnings was, I think, much more conservative than it seems to be today. There was a strong desire not to implement off-by-default warnings, and to have warnings with an exceptionally low false-positive rate - maybe the user-defined operator detection was either assum

r328718 - Fix for LLVM header changes

2018-03-28 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Mar 28 10:45:10 2018 New Revision: 328718 URL: http://llvm.org/viewvc/llvm-project?rev=328718&view=rev Log: Fix for LLVM header changes Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp URL: http://llvm.org/viewvc/llvm

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-02 Thread David Blaikie via cfe-commits
On Mon, Apr 2, 2018 at 8:05 AM Roman Lebedev via Phabricator < revi...@reviews.llvm.org> wrote: > lebedev.ri added a comment. > > In https://reviews.llvm.org/D44883#1054326, @thakis wrote: > > > In https://reviews.llvm.org/D44883#1048751, @dblaikie wrote: > > > > > Historically Clang's policy on w

r329097 - Restrict a test using named file descriptors to using the system shell

2018-04-03 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Tue Apr 3 11:22:14 2018 New Revision: 329097 URL: http://llvm.org/viewvc/llvm-project?rev=329097&view=rev Log: Restrict a test using named file descriptors to using the system shell Modified: cfe/trunk/test/Misc/dev-fd-fs.c Modified: cfe/trunk/test/Misc/dev-fd-fs.c UR

Re: r329445 - Revert "[analyzer] Remove an unused variable"

2018-04-09 Thread David Blaikie via cfe-commits
Best if you can use the SubVersion revision number rather than a git hash when reverting. There's a utility in the LLVM project to help with this (llvm/utils/git-svn/git-svnrevert) On Fri, Apr 6, 2018 at 12:16 PM George Karpenkov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: geor

Re: [PATCH] D43779: [Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>

2018-04-09 Thread David Blaikie via cfe-commits
FWIW - I had some thoughts on this a while back: https://reviews.llvm.org/D4313 On Mon, Apr 9, 2018 at 4:54 AM Roman Lebedev via Phabricator via llvm-commits wrote: > lebedev.ri added a comment. > > In https://reviews.llvm.org/D43779#1061444, @alexfh wrote: > > > In https://reviews.llvm.org/D437

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
On Tue, Apr 10, 2018 at 7:21 AM Roman Lebedev via Phabricator < revi...@reviews.llvm.org> wrote: > lebedev.ri added a comment. > > In https://reviews.llvm.org/D44883#1063003, @thakis wrote: > > > This landing made our clang trunk bots do an evaluation of this warning > :-P It fired 8 times, all fa

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
It's more the fact that that's /all/ the warning improvement has found so far. If it was 8 false positives & also found 80 actionable bugs/bad code, that'd be one thing. Now, admittedly, maybe it would help find bugs that people usually catch with a unit test, etc but never make it to checked in c

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
On Tue, Apr 10, 2018 at 9:25 AM Roman Lebedev wrote: > Because *so far* it has been running on the existing code, which i guess > was already pretty warning free, and was run through the static analyzer, which obviously should catch such issues. > Existing code this has been run over isn't nece

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
Any good ideas on how to evaluate it, then? (in addition to/other than something like Google where we can track the diagnostic for - a few months?) On Tue, Apr 10, 2018 at 9:34 AM John McCall wrote: > Yeah, -Wself-assign in general is about catching a class of live-coding > errors which is prett

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
On Tue, Apr 10, 2018 at 9:59 AM John McCall wrote: > Also, the standard for the static analyzer is not lower than it is for the > compiler. > > The static analyzer tries to catch a much larger class of bugs, but it > also tries very hard to make all the warnings it emits count. There’s a > really

Re: [PATCH] D44883: [Sema] Extend -Wself-assign and -Wself-assign-field to warn on overloaded self-assignment (classes)

2018-04-10 Thread David Blaikie via cfe-commits
On Tue, Apr 10, 2018 at 10:20 AM John McCall wrote: > Do you think they’re bad precedent? Somewhat, yes - though -Wparens is perhaps conflating a few cases too. I think the argument for the -Wparens for precedence is probably pretty good. But the argument for -Wparens for conditional assignmen

r316794 - StaticAnalyzer: Modularize/fix ODR violations making functions inline but non-static in headers

2017-10-27 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Oct 27 13:40:46 2017 New Revision: 316794 URL: http://llvm.org/viewvc/llvm-project?rev=316794&view=rev Log: StaticAnalyzer: Modularize/fix ODR violations making functions inline but non-static in headers Also move these out of the llvm namespace & rely on ADL as is app

r316792 - CharInfo.h: Modularize/fix ODR violations by making inline functions in header not static

2017-10-27 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Oct 27 13:40:45 2017 New Revision: 316792 URL: http://llvm.org/viewvc/llvm-project?rev=316792&view=rev Log: CharInfo.h: Modularize/fix ODR violations by making inline functions in header not static Modified: cfe/trunk/include/clang/Basic/CharInfo.h Modified: cfe/t

r316791 - ASTContext.h: Modularize/fix ODR violations by removing 'static' from inline functions in headers

2017-10-27 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Oct 27 13:40:44 2017 New Revision: 316791 URL: http://llvm.org/viewvc/llvm-project?rev=316791&view=rev Log: ASTContext.h: Modularize/fix ODR violations by removing 'static' from inline functions in headers Modified: cfe/trunk/include/clang/AST/ASTContext.h Modifie

r316793 - Sanitizers.h: Modularize/Fix ODR violations by making inline functions non-static

2017-10-27 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Oct 27 13:40:45 2017 New Revision: 316793 URL: http://llvm.org/viewvc/llvm-project?rev=316793&view=rev Log: Sanitizers.h: Modularize/Fix ODR violations by making inline functions non-static Modified: cfe/trunk/include/clang/Basic/Sanitizers.h Modified: cfe/trunk/i

Re: r316403 - [Analyzer] Fix for the memory leak: fix typo in if-statement.

2017-10-30 Thread David Blaikie via cfe-commits
I realize this was changed in a follow-up commit anyway, but for future reference: There's no need (& best to avoid - simpler to read, avoids bugs like this, etc) to conditionalize delete like this. Delete is a no-op on null pointers anyway, so this dtor should just contain an unconditional "delete

Re: r316536 - [Analyzer] Store BodyFarm in std::unique_ptr

2017-10-30 Thread David Blaikie via cfe-commits
Could this be a value rather than indirected through a unique_ptr? Simply: BodyFarm BdyFrm; & initialized in the ctors init list? On Tue, Oct 24, 2017 at 4:53 PM George Karpenkov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: george.karpenkov > Date: Tue Oct 24 16:53:19 2017 >

Re: [PATCH] D39208: [Analyzer] Do not use static storage to for implementations created in BodyFarm.cpp

2017-10-30 Thread David Blaikie via cfe-commits
On Mon, Oct 23, 2017 at 5:01 PM George Karpenkov via Phabricator via cfe-commits wrote: > george.karpenkov added a comment. > > @dcoughlin the context I was thinking about is that if everyone > consistently runs `clang-format` (if we want that), then we never would > have discussion. > The altern

r317274 - Modular Codegen: Don't home/modularize static functions in headers

2017-11-02 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Nov 2 14:55:40 2017 New Revision: 317274 URL: http://llvm.org/viewvc/llvm-project?rev=317274&view=rev Log: Modular Codegen: Don't home/modularize static functions in headers Consistent with various workarounds in the backwards compatible modules that allow static funct

r317279 - Modular Codegen: Don't home always_inline functions

2017-11-02 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Nov 2 15:28:50 2017 New Revision: 317279 URL: http://llvm.org/viewvc/llvm-project?rev=317279&view=rev Log: Modular Codegen: Don't home always_inline functions Since they'll likely (not always - if the address is taken, etc) be inlined away, even at -O0, separately prov

Re: [PATCH] D39622: Fix type debug information generation for enum-based template specialization

2017-11-03 Thread David Blaikie via cfe-commits
When you say "symbols table" - what are you referring to? On Fri, Nov 3, 2017 at 4:20 PM Adrian Prantl via Phabricator < revi...@reviews.llvm.org> wrote: > aprantl added a comment. > > Can you add a testcase? > > > Repository: > rL LLVM > > https://reviews.llvm.org/D39622 > > > > __

Re: [PATCH] D39622: Fix type debug information generation for enum-based template specialization

2017-11-06 Thread David Blaikie via cfe-commits
Ping \/ On Fri, Nov 3, 2017 at 4:22 PM David Blaikie wrote: > When you say "symbols table" - what are you referring to? > > On Fri, Nov 3, 2017 at 4:20 PM Adrian Prantl via Phabricator < > revi...@reviews.llvm.org> wrote: > >> aprantl added a comment. >> >> Can you add a testcase? >> >> >> Repos

Re: [PATCH] D39622: Fix type debug information generation for enum-based template specialization

2017-11-13 Thread David Blaikie via cfe-commits
On Sun, Nov 12, 2017 at 12:53 PM Anton via Phabricator < revi...@reviews.llvm.org> wrote: > xgsa added a comment. > > In https://reviews.llvm.org/D39622#919579, @aprantl wrote: > > > For clarification: what is the "symbols table" you are referring to in > the description? > > > I meant the data du

r318304 - ASTMatchers.h: Fix ODR violations by avoiding internal linkage variables in headers

2017-11-15 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Nov 15 08:52:12 2017 New Revision: 318304 URL: http://llvm.org/viewvc/llvm-project?rev=318304&view=rev Log: ASTMatchers.h: Fix ODR violations by avoiding internal linkage variables in headers Internal linkage variables ODR referenced from inline functions create ODR vi

Re: [PATCH] D33989: [OpenCL] Allow targets to select address space per type

2017-11-16 Thread David Blaikie via cfe-commits
Ping on this layering violation. A simple way to demonstrate this is to move the definition of clang::Type::getTypeClass out of line: This results in an unresolved symbol due to incorrect/broken dependencies. Richard? Anyone else? Ideas on how to address this layering violation? Anastasia: Could

r318491 - Update for layering fix in LLVM CodeGen<>Target

2017-11-16 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Nov 16 17:07:20 2017 New Revision: 318491 URL: http://llvm.org/viewvc/llvm-project?rev=318491&view=rev Log: Update for layering fix in LLVM CodeGen<>Target Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp URL: http://

r318720 - ASTMatchers{, Macros}.h: Add some extra macros to use for decl/def of matchers

2017-11-20 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Nov 20 17:09:18 2017 New Revision: 318720 URL: http://llvm.org/viewvc/llvm-project?rev=318720&view=rev Log: ASTMatchers{,Macros}.h: Add some extra macros to use for decl/def of matchers Fix ODR violations caused by using internal linkage variables in non-internal inline

r318719 - FormatInternal.h: Add missing includes.

2017-11-20 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Nov 20 17:09:17 2017 New Revision: 318719 URL: http://llvm.org/viewvc/llvm-project?rev=318719&view=rev Log: FormatInternal.h: Add missing includes. Modified: cfe/trunk/lib/Format/FormatInternal.h Modified: cfe/trunk/lib/Format/FormatInternal.h URL: http://llvm.org

[clang] d8a1a55 - DebugInfo: Disable ctor homing for types with only deleted (non copy/move) ctors

2023-02-27 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2023-02-28T01:25:22Z New Revision: d8a1a559f3009a31c517f864156db91d2ae3012c URL: https://github.com/llvm/llvm-project/commit/d8a1a559f3009a31c517f864156db91d2ae3012c DIFF: https://github.com/llvm/llvm-project/commit/d8a1a559f3009a31c517f864156db91d2ae3012c.diff LOG:

[clang] 58ec6e0 - [NFC] [clang] Forward forwarding reference

2023-02-27 Thread David Blaikie via cfe-commits
Author: Chris Cotter Date: 2023-02-28T01:27:21Z New Revision: 58ec6e09abe8083709802833572bca931b2d15d9 URL: https://github.com/llvm/llvm-project/commit/58ec6e09abe8083709802833572bca931b2d15d9 DIFF: https://github.com/llvm/llvm-project/commit/58ec6e09abe8083709802833572bca931b2d15d9.diff LOG:

[clang] e9c9db3 - PR58819: Correct linkage and mangling of lambdas in inline static member initializers

2023-04-03 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2023-04-04T04:45:32Z New Revision: e9c9db34a9b04706937e9dd764d1d97ca84337b6 URL: https://github.com/llvm/llvm-project/commit/e9c9db34a9b04706937e9dd764d1d97ca84337b6 DIFF: https://github.com/llvm/llvm-project/commit/e9c9db34a9b04706937e9dd764d1d97ca84337b6.diff LOG:

[clang] e5144d9 - Fix a few clang-tidy warnings (container empty checks, function decl/def param naming)

2023-04-04 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2023-04-05T01:06:41Z New Revision: e5144d9d2dd26a67f576d2f5772b3cf0486245f4 URL: https://github.com/llvm/llvm-project/commit/e5144d9d2dd26a67f576d2f5772b3cf0486245f4 DIFF: https://github.com/llvm/llvm-project/commit/e5144d9d2dd26a67f576d2f5772b3cf0486245f4.diff LOG:

[clang] a8b0c6f - Remove -Wpacked false positive for non-pod types where the layout isn't directly changed

2023-05-08 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2023-05-09T00:13:45Z New Revision: a8b0c6fa28acced71db33e80bd0b51d00422035b URL: https://github.com/llvm/llvm-project/commit/a8b0c6fa28acced71db33e80bd0b51d00422035b DIFF: https://github.com/llvm/llvm-project/commit/a8b0c6fa28acced71db33e80bd0b51d00422035b.diff LOG:

[clang] 793c5b1 - Fix for release notes (follow-up to D149182/a8b0c6fa)

2023-05-08 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2023-05-09T00:40:11Z New Revision: 793c5b12b9a70e363be40c5da2e26d7151fbbf41 URL: https://github.com/llvm/llvm-project/commit/793c5b12b9a70e363be40c5da2e26d7151fbbf41 DIFF: https://github.com/llvm/llvm-project/commit/793c5b12b9a70e363be40c5da2e26d7151fbbf41.diff LOG:

Re: [clang] a446827 - [NFC][Clang][Driver][AMDGPU] Avoid temporary copies of std::string by using Twine and StringRef

2022-12-05 Thread David Blaikie via cfe-commits
On Mon, Dec 5, 2022 at 5:27 AM Juan Manuel MARTINEZ CAAMAÑO via cfe-commits wrote: > > > Author: Juan Manuel MARTINEZ CAAMAÑO > Date: 2022-12-05T07:27:10-06:00 > New Revision: a446827249bdeb2f27e55a9f4942bd7425ecb0ff > > URL: > https://github.com/llvm/llvm-project/commit/a446827249bdeb2f27e55a9f4

[clang] 3c312e4 - DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions

2022-12-06 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2022-12-06T21:11:08Z New Revision: 3c312e48f325c1b1ee11404ee6cfa08ee00037b0 URL: https://github.com/llvm/llvm-project/commit/3c312e48f325c1b1ee11404ee6cfa08ee00037b0 DIFF: https://github.com/llvm/llvm-project/commit/3c312e48f325c1b1ee11404ee6cfa08ee00037b0.diff LOG:

[clang] 6ab6085 - Revert "DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions"

2022-12-06 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2022-12-06T22:52:47Z New Revision: 6ab6085c77ef9bcdabf842342f63fba4291791a4 URL: https://github.com/llvm/llvm-project/commit/6ab6085c77ef9bcdabf842342f63fba4291791a4 DIFF: https://github.com/llvm/llvm-project/commit/6ab6085c77ef9bcdabf842342f63fba4291791a4.diff LOG:

[clang] c73876d - Reapply "DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions""

2022-12-12 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2022-12-12T22:36:23Z New Revision: c73876db4f2dfd2c38d5720f62509e57f23b2059 URL: https://github.com/llvm/llvm-project/commit/c73876db4f2dfd2c38d5720f62509e57f23b2059 DIFF: https://github.com/llvm/llvm-project/commit/c73876db4f2dfd2c38d5720f62509e57f23b2059.diff LOG:

[clang] be931f8 - clang/test/CodeCompletion: Simplify/fix some `touch` commands

2022-12-16 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2022-12-16T23:18:11Z New Revision: be931f89451b650e081daf875213c19f658caf25 URL: https://github.com/llvm/llvm-project/commit/be931f89451b650e081daf875213c19f658caf25 DIFF: https://github.com/llvm/llvm-project/commit/be931f89451b650e081daf875213c19f658caf25.diff LOG:

[clang] 7a91e00 - Ensure clang test doesn't write out to the source directory

2022-12-16 Thread David Blaikie via cfe-commits
Author: David Blaikie Date: 2022-12-16T23:39:28Z New Revision: 7a91e00d915c638bfb4864826bc445211e0e41d7 URL: https://github.com/llvm/llvm-project/commit/7a91e00d915c638bfb4864826bc445211e0e41d7 DIFF: https://github.com/llvm/llvm-project/commit/7a91e00d915c638bfb4864826bc445211e0e41d7.diff LOG:

Re: [PATCH] D27180: Testbed and skeleton of a new expression parser

2016-12-19 Thread David Blaikie via cfe-commits
On Thu, Dec 15, 2016 at 2:18 PM Sean Callanan via Phabricator via cfe-commits wrote: > spyffe updated this revision to Diff 81661. > spyffe marked 2 inline comments as done. > spyffe added a comment. > Herald added a subscriber: jgosnell. > > Applied Vassil and Vedant's comments. I will commit t

Re: [PATCH] D27763: Debug Info: Modified DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory. (Clang part)

2016-12-19 Thread David Blaikie via cfe-commits
Was this change approved by anyone? Generally once it's sent for review, you should wait until it's approved before committing (the assumption being, if you sent it for review it's because it needed review) On Wed, Dec 14, 2016 at 12:49 PM Amjad Aboud via Phabricator via cfe-commits wrote: > Thi

Re: [PATCH] D27683: Prepare PrettyStackTrace for LLDB adoption

2016-12-19 Thread David Blaikie via cfe-commits
Test coverage? On Tue, Dec 13, 2016 at 2:39 PM Sean Callanan via Phabricator via cfe-commits wrote: > spyffe retitled this revision from "Fix the linkage for > __crashtracer_info__" to "Prepare PrettyStackTrace for LLDB adoption". > spyffe updated the summary for this revision. > spyffe updated

Re: [PATCH] D27763: Debug Info: Modified DIBuilder::createCompileUnit() to take DIFile instead of FileName and Directory. (Clang part)

2016-12-19 Thread David Blaikie via cfe-commits
Ah, sure - no worries. Good to mention/link to the other change, etc, in the future. (if the changes on the clang side are trivial enough to not need review, may not need to send them out for review either - or could include them as an addendum to the llvm change ("oh, and here's what it looks like

Re: [PATCH] D27180: Testbed and skeleton of a new expression parser

2016-12-19 Thread David Blaikie via cfe-commits
I don't know much about who owns this sort of code, nor Vassil's work/responsibility in this area - but if he's OK with it/feels able to sign off on it, that'd be sufficient/fine by me (& others closer to it can pipe up if he seems like not the right person to approve). Thanks! - Dave On Mon, Dec

Re: [PATCH] D27683: Prepare PrettyStackTrace for LLDB adoption

2016-12-19 Thread David Blaikie via cfe-commits
On Mon, Dec 19, 2016 at 9:39 AM Sean Callanan wrote: > That would require making LLDB crash and collecting the relevant crash log > data out of the user's own logs. This isn't impossible – but additionally > the generation of that log is asynchronous and you don't quite know when > it'll land. >

r290631 - DebugInfo: Don't include size/alignment on class declarations

2016-12-27 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Tue Dec 27 16:05:35 2016 New Revision: 290631 URL: http://llvm.org/viewvc/llvm-project?rev=290631&view=rev Log: DebugInfo: Don't include size/alignment on class declarations This seems like it must've been a leftover by accident - no tests were backing it up & it doesn't ma

r291017 - Remove use of intrusive ref count ownership acquisition

2017-01-04 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Jan 4 16:36:39 2017 New Revision: 291017 URL: http://llvm.org/viewvc/llvm-project?rev=291017&view=rev Log: Remove use of intrusive ref count ownership acquisition The one use of CheckerManager (AnalysisConsumer, calling createCheckerManager) keeps a strong reference to

r291018 - Fix for LLVM Bitcode API change (to use std::shared_ptr)

2017-01-04 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Wed Jan 4 16:36:43 2017 New Revision: 291018 URL: http://llvm.org/viewvc/llvm-project?rev=291018&view=rev Log: Fix for LLVM Bitcode API change (to use std::shared_ptr) Modified: cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter.cpp cfe/trunk/lib/Frontend/TestModul

r291143 - Migrate PathDiagnosticPiece to std::shared_ptr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 11:26:53 2017 New Revision: 291143 URL: http://llvm.org/viewvc/llvm-project?rev=291143&view=rev Log: Migrate PathDiagnosticPiece to std::shared_ptr Simplifies and makes explicit the memory ownership model rather than implicitly passing/acquiring ownership. Modif

r291150 - Use shared_ptr instead of IntrusiveRefCntPtr for ModuleFileExtension

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 12:23:18 2017 New Revision: 291150 URL: http://llvm.org/viewvc/llvm-project?rev=291150&view=rev Log: Use shared_ptr instead of IntrusiveRefCntPtr for ModuleFileExtension The intrusiveness wasn't needed here, so this simplifies/clarifies the ownership model. Modi

r291155 - Simplify ASTReader ctor by using in-class initializers for many member variables

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 12:45:45 2017 New Revision: 291155 URL: http://llvm.org/viewvc/llvm-project?rev=291155&view=rev Log: Simplify ASTReader ctor by using in-class initializers for many member variables Modified: cfe/trunk/include/clang/Serialization/ASTWriter.h cfe/trunk/lib

r291154 - Simplify ASTReader ctor by using in-class initializers (NSDMIs to the rest of you) for many member variables

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 12:45:43 2017 New Revision: 291154 URL: http://llvm.org/viewvc/llvm-project?rev=291154&view=rev Log: Simplify ASTReader ctor by using in-class initializers (NSDMIs to the rest of you) for many member variables Modified: cfe/trunk/include/clang/Serialization/

r291156 - Move VariantMatcher's Payload to std::shared_ptr rather than IntrusiveRefCntPtr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 12:51:54 2017 New Revision: 291156 URL: http://llvm.org/viewvc/llvm-project?rev=291156&view=rev Log: Move VariantMatcher's Payload to std::shared_ptr rather than IntrusiveRefCntPtr Modified: cfe/trunk/include/clang/ASTMatchers/Dynamic/VariantValue.h cfe/t

r291160 - Move PreprocessorOptions to std::shared_ptr from IntrusiveRefCntPtr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 13:11:36 2017 New Revision: 291160 URL: http://llvm.org/viewvc/llvm-project?rev=291160&view=rev Log: Move PreprocessorOptions to std::shared_ptr from IntrusiveRefCntPtr Modified: cfe/trunk/include/clang/Frontend/CompilerInvocation.h cfe/trunk/include/clan

r291159 - Move FailedModulesSet over to shared_ptr from IntrusiveRefCntPtr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 13:11:31 2017 New Revision: 291159 URL: http://llvm.org/viewvc/llvm-project?rev=291159&view=rev Log: Move FailedModulesSet over to shared_ptr from IntrusiveRefCntPtr Modified: cfe/trunk/include/clang/Lex/PreprocessorOptions.h cfe/trunk/lib/Frontend/Compil

r291166 - Move Preprocessor over to std::shared_ptr rather than IntrusiveRefCntPtr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 13:48:07 2017 New Revision: 291166 URL: http://llvm.org/viewvc/llvm-project?rev=291166&view=rev Log: Move Preprocessor over to std::shared_ptr rather than IntrusiveRefCntPtr Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h cfe/trunk/include/clang/Fron

r291167 - Move SerializedDiagnosticPrinter's SharedState to std::shared_ptr rather than IntrusiveRefCntPtr

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 13:48:10 2017 New Revision: 291167 URL: http://llvm.org/viewvc/llvm-project?rev=291167&view=rev Log: Move SerializedDiagnosticPrinter's SharedState to std::shared_ptr rather than IntrusiveRefCntPtr Modified: cfe/trunk/lib/Frontend/SerializedDiagnosticPrinter

r291184 - IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 16:19:11 2017 New Revision: 291184 URL: http://llvm.org/viewvc/llvm-project?rev=291184&view=rev Log: IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h cfe/trunk/

r291185 - Fix examples for recent shared_ptrification

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 16:36:44 2017 New Revision: 291185 URL: http://llvm.org/viewvc/llvm-project?rev=291185&view=rev Log: Fix examples for recent shared_ptrification Modified: cfe/trunk/examples/clang-interpreter/main.cpp Modified: cfe/trunk/examples/clang-interpreter/main.cpp U

[clang-tools-extra] r291186 - Fix for shared_ptrification in Clang

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 16:44:07 2017 New Revision: 291186 URL: http://llvm.org/viewvc/llvm-project?rev=291186&view=rev Log: Fix for shared_ptrification in Clang Modified: clang-tools-extra/trunk/include-fixer/IncludeFixer.cpp clang-tools-extra/trunk/include-fixer/IncludeFixer.h

r291202 - shared_ptrify (from InclusiveRefCntPtr) HeaderSearchOptions

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 19:04:46 2017 New Revision: 291202 URL: http://llvm.org/viewvc/llvm-project?rev=291202&view=rev Log: shared_ptrify (from InclusiveRefCntPtr) HeaderSearchOptions Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h cfe/trunk/include/clang/Frontend/Compiler

[clang-tools-extra] r291203 - Fixes for Clang API change

2017-01-05 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Jan 5 19:09:06 2017 New Revision: 291203 URL: http://llvm.org/viewvc/llvm-project?rev=291203&view=rev Log: Fixes for Clang API change Modified: clang-tools-extra/trunk/modularize/ModularizeUtilities.cpp clang-tools-extra/trunk/modularize/ModularizeUtilities.h

r291249 - Revert "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer"

2017-01-06 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 6 11:47:10 2017 New Revision: 291249 URL: http://llvm.org/viewvc/llvm-project?rev=291249&view=rev Log: Revert "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" Caused a memory leak reported by asan. Reverting while I inves

[clang-tools-extra] r291251 - Revert "Fix for shared_ptrification in Clang"

2017-01-06 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 6 11:47:19 2017 New Revision: 291251 URL: http://llvm.org/viewvc/llvm-project?rev=291251&view=rev Log: Revert "Fix for shared_ptrification in Clang" The original commit caused an asan-detected memory leak in Clang. Reverting while I investigate. This reverts commi

r291252 - Revert "Fix examples for recent shared_ptrification"

2017-01-06 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 6 11:50:34 2017 New Revision: 291252 URL: http://llvm.org/viewvc/llvm-project?rev=291252&view=rev Log: Revert "Fix examples for recent shared_ptrification" (should've rolled in to this revert of the CompilerInstance change in the first place... anyway) This revert

[clang-tools-extra] r291272 - Reapply "Fix for shared_ptrification in Clang"

2017-01-06 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 6 13:49:09 2017 New Revision: 291272 URL: http://llvm.org/viewvc/llvm-project?rev=291272&view=rev Log: Reapply "Fix for shared_ptrification in Clang" Aleksey Shlyapnikov pointed out the memory leak I'd introduced, so recommitted the clang change with a fix for that

r291270 - Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer"

2017-01-06 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 6 13:49:01 2017 New Revision: 291270 URL: http://llvm.org/viewvc/llvm-project?rev=291270&view=rev Log: Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" Aleksey Shlypanikov pointed out my mistake in migrating an ex

Re: [libcxx] r291275 - [libc++] Cleanup and document <__threading_support>

2017-01-06 Thread David Blaikie via cfe-commits
On Fri, Jan 6, 2017 at 12:16 PM Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Fri Jan 6 14:05:40 2017 > New Revision: 291275 > > URL: http://llvm.org/viewvc/llvm-project?rev=291275&view=rev > Log: > [libc++] Cleanup and document <__threading_support>

Re: [libcxx] r291275 - [libc++] Cleanup and document <__threading_support>

2017-01-06 Thread David Blaikie via cfe-commits
Thanks! On Fri, Jan 6, 2017 at 3:26 PM Eric Fiselier wrote: > Should be fixed in r291298. Sorry for the breakage. > > /Eric > > On Fri, Jan 6, 2017 at 4:18 PM, Eric Fiselier wrote: > > Hi David, > > Thanks for the information. Looking into it now. > > /Eric > > On Fri, Jan 6, 2017 at 4:02 PM, D

Re: r291058 - [Sema] Mark undefined ctors as deleted. NFC.

2017-01-09 Thread David Blaikie via cfe-commits
Alternatively could make the bool ctor a template with some SFINAE to restrict it to only parameters of type bool - thus blocking all conversions there, if they're particularly problematic. On Wed, Jan 4, 2017 at 5:32 PM George Burgess IV via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Aut

Re: [PATCH] D25435: Add -fdebug-info-for-profiling to emit more debug info for sample pgo profile collection

2017-01-09 Thread David Blaikie via cfe-commits
I started the llvm-dev thread for the instruction location tradeoffs (removing the location from instructions to improve profiling support - possibly at the cost of other debug info consumers). The motivation for this flag is different - for added functionality that's generally (imho/based on conv

Re: [PATCH] D21675: New ODR checker for modules

2016-08-17 Thread David Blaikie via cfe-commits
dblaikie added inline comments. Comment at: lib/AST/DeclBase.cpp:1810-1812 @@ +1809,5 @@ + void VisitNamedDecl(const NamedDecl *D) { +if (IdentifierInfo *II = D->getIdentifier()) { + ID.AddString(II->getName()); +} +Inherited::VisitNamedDecl(D);

Re: [PATCH] D23705: [GraphTraits] Make nodes_iterator dereference to NodeType*

2016-08-19 Thread David Blaikie via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Consider renaming and/or generalizing the handlers. Also, in a follow-up or preliminary commit, could you remove all the DerefFun stuff. Move the definition of CGdereference (if they remai

r279444 - Remove redundant test

2016-08-22 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Aug 22 12:49:50 2016 New Revision: 279444 URL: http://llvm.org/viewvc/llvm-project?rev=279444&view=rev Log: Remove redundant test test/CodeGenCXX/debug-info-zero-length-arrays.cpp tests this functionality more comprehensively Removed: cfe/trunk/test/CodeGenCXX/debu

r279445 - PR29086: DebugInfo: Improve support for fixed array dimensions in variable length arrays

2016-08-22 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Aug 22 12:49:56 2016 New Revision: 279445 URL: http://llvm.org/viewvc/llvm-project?rev=279445&view=rev Log: PR29086: DebugInfo: Improve support for fixed array dimensions in variable length arrays Added: cfe/trunk/test/CodeGenCXX/debug-info-vla.cpp Modified: cf

Re: [PATCH] D23730: [GraphTraits] Replace all NodeType usage with NodeRef

2016-08-22 Thread David Blaikie via cfe-commits
dblaikie added a comment. Not all of these already had NodeRef implemented - that implies that some algorithms weren't using NodeRef before this change, or that these traits are unused? I thought the plan was to migrate each algorithm then just do a strict cleanup. Did that not pan out/some oth

Re: [PATCH] D23730: [GraphTraits] Replace all NodeType usage with NodeRef

2016-08-22 Thread David Blaikie via cfe-commits
dblaikie added a comment. In https://reviews.llvm.org/D23730#522501, @timshen wrote: > In https://reviews.llvm.org/D23730#522396, @dblaikie wrote: > > > Not all of these already had NodeRef implemented - that implies that some > > algorithms weren't using NodeRef before this change, or that thes

Re: [PATCH] D23730: [GraphTraits] Replace all NodeType usage with NodeRef

2016-08-22 Thread David Blaikie via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Or it isn't approved (was mixing up reviews) - but now it is... https://reviews.llvm.org/D23730 ___ cfe-commits mailing list cfe-commits@list

<    2   3   4   5   6   7   8   9   10   11   >