Re: [PATCH] D13810: Replacements in different files do not overlap.

2015-10-16 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r250690 - Make test not rely on %T ending on /Output.

2015-10-19 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Oct 19 03:27:51 2015 New Revision: 250690 URL: http://llvm.org/viewvc/llvm-project?rev=250690&view=rev Log: Make test not rely on %T ending on /Output. Modified: cfe/trunk/test/Driver/ps4-linker-non-win.c Modified: cfe/trunk/test/Driver/ps4-linker-non-win.c URL: htt

r250691 - Fix 'will be initialized after' warning.

2015-10-19 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Oct 19 03:43:46 2015 New Revision: 250691 URL: http://llvm.org/viewvc/llvm-project?rev=250691&view=rev Log: Fix 'will be initialized after' warning. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp URL: http://llvm.org/vi

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-10-19 Thread Manuel Klimek via cfe-commits
On Sat, Oct 17, 2015 at 3:41 AM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Oct 16, 2015 at 6:30 PM, Sean Silva wrote: > >> On Fri, Oct 16, 2015 at 6:26 PM, Richard Smith >> wrote: >> >>> On Fri, Oct 16, 2015 at 6:25 PM, Sean Silva >>> wrote: >>> On Fri, Oc

Re: [PATCH] D13852: clang-format: Use pipes instead of temporary files for most lit tests.

2015-10-19 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. This revision is now accepted and ready to land. I'd slightly prefer if the commands were still on their own line (via escaped newlines if that's possible), but lg. http://reviews.llvm.org/D13852

Re: [PATCH] D13000: [libclang] Expose AutoType

2015-10-19 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. Thx Milinan; this also looks fine from a binary compatibility perspective ... http://reviews.llvm.org/D13000 ___ cfe-commits mailing list cfe-com

Re: [PATCH] D13001: [libclang] Handle AutoType in clang_getTypeDeclaration

2015-10-19 Thread Manuel Klimek via cfe-commits
klimek added a comment. +1 to "not tested before" not implying "doesn't need tests" :) http://reviews.llvm.org/D13001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-10-20 Thread Manuel Klimek via cfe-commits
On Tue, Oct 20, 2015 at 5:52 AM Sean Silva wrote: > On Mon, Oct 19, 2015 at 2:10 AM, Manuel Klimek wrote: > >> On Sat, Oct 17, 2015 at 3:41 AM Richard Smith via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> On Fri, Oct 16, 2015 at 6:30 PM, Sean Silva >>> wrote: >>> On Fri, Oct

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-10-20 Thread Manuel Klimek via cfe-commits
On Tue, Oct 20, 2015 at 10:41 AM Sean Silva wrote: > On Tue, Oct 20, 2015 at 1:38 AM, Manuel Klimek wrote: > >> On Tue, Oct 20, 2015 at 5:52 AM Sean Silva wrote: >> >>> On Mon, Oct 19, 2015 at 2:10 AM, Manuel Klimek >>> wrote: >>> On Sat, Oct 17, 2015 at 3:41 AM Richard Smith via cfe-comm

Re: [PATCH] D13871: Add modernize-use-default check to clang-tidy.

2015-10-20 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. LG. Yay! Comment at: clang-tidy/modernize/UseDefaultCheck.cpp:59-60 @@ +58,4 @@ + "= default;"); + // FIXME: this can generate a -Wpedantic warning if there is a sem

Re: [PATCH] D13890: Apply modernize-use-default to clang.

2015-10-20 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: bkramer. klimek added a comment. +benjamin, who has been doing those changes lately... http://reviews.llvm.org/D13890 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D13891: Apply modernize-use-default to llvm.

2015-10-20 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: bkramer. klimek added a comment. +benjamin, who has been doing those changes lately... http://reviews.llvm.org/D13891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D13889: Apply modernize-use-default to clang-tools-extra.

2015-10-20 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D13889 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-10-20 Thread Manuel Klimek via cfe-commits
On Tue, Oct 20, 2015 at 3:38 PM Brad King wrote: > On 10/20/2015 04:38 AM, Manuel Klimek wrote: > > On Tue, Oct 20, 2015 at 5:52 AM Sean Silva wrote: > >> get cmake to generate clang module map files and add explicit module > build steps? > > > > I have some experience hacking on cmake, and from

Re: [PATCH] D13897: [AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap.

2015-10-20 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. Yay, another yak shaved \o/ http://reviews.llvm.org/D13897 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-10-21 Thread Manuel Klimek via cfe-commits
On Tue, Oct 20, 2015 at 11:11 PM Sean Silva wrote: > On Tue, Oct 20, 2015 at 6:45 AM, Manuel Klimek wrote: > >> On Tue, Oct 20, 2015 at 3:38 PM Brad King wrote: >> >>> On 10/20/2015 04:38 AM, Manuel Klimek wrote: >>> > On Tue, Oct 20, 2015 at 5:52 AM Sean Silva wrote: >>> >> get cmake to genera

Re: [PATCH] D13931: [Tooling] Add a utility function to replace one nested name with another.

2015-10-21 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: include/clang/Tooling/Core/Lookup.h:37-38 @@ +36,4 @@ +/// \param FromDecl The declaration to which the nested name points. +/// \param ReplacementString The replacement nested name. Should be fully +/// qualified.

Re: [PATCH] D13975: Make string constants in the modernize module static.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. klimek added a comment. A test that fails before this patch and passes afterwards is needed :) If you need help writing that test, let me know. http://reviews.llvm.org/D13973 ___ cfe-commits mailing list cfe-commi

Re: [PATCH] D13976: [AST] Store Decl* and Stmt* directly into the ParentMap.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg Comment at: include/clang/AST/ASTContext.h:463 @@ +462,3 @@ + class DynTypedNodeList { +typedef ast_type_traits::DynTypedNode DynTypedNode; +typedef ArrayRef ARef;

[clang-tools-extra] r251010 - Add %check_clang_tidy and %clang_tidy_diff.

2015-10-22 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Oct 22 06:31:44 2015 New Revision: 251010 URL: http://llvm.org/viewvc/llvm-project?rev=251010&view=rev Log: Add %check_clang_tidy and %clang_tidy_diff. With this, site specific lit configs can inject parameters into the test scripts if they need site specific parameters.

Re: [PATCH] D13983: Correctly print the type in modernize-make-unique.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13982: Don't use "auto" on loops over fundamental types in modernize-loop-convert.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13931: [Tooling] Add a utility function to replace one nested name with another.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: include/clang/Tooling/Core/Lookup.h:37-38 @@ +36,4 @@ +/// \param FromDecl The declaration to which the nested name points. +/// \param ReplacementString The replacement nested name. Should be qualified, +/// leadi

[clang-tools-extra] r251021 - Switch check_clang_tidy to argparse and add a -resource-dir argument.

2015-10-22 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Oct 22 09:54:50 2015 New Revision: 251021 URL: http://llvm.org/viewvc/llvm-project?rev=251021&view=rev Log: Switch check_clang_tidy to argparse and add a -resource-dir argument. -resource-dir can be used to inject non-standard resource dirs via the lit site config. Modif

Re: [PATCH] D13931: [Tooling] Add a utility function to replace one nested name with another.

2015-10-22 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D13931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14011: [AST] Re-add TypeLocs and NestedNameSpecifierLocs to the ParentMap.

2015-10-23 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg; let's see whether it sticks this time :) Comment at: include/clang/AST/ASTContext.h:456 @@ -455,1 +455,3 @@ + /// pointer identity only, which are more common and we can

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-10-23 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Analysis/CFG.cpp:1949-1952 @@ +1948,6 @@ + } + if(!C->body_empty() && !dyn_cast(*C->body_rbegin())) { +// If the body ends with a ReturnStmt, the dtors will be added in VisitReturnStmt +addAutomaticObjDtors(ScopePos, scopeBe

[clang-tools-extra] r251103 - Make isExpensiveToCopy() tri-state.

2015-10-23 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Fri Oct 23 05:00:50 2015 New Revision: 251103 URL: http://llvm.org/viewvc/llvm-project?rev=251103&view=rev Log: Make isExpensiveToCopy() tri-state. This allows returning "don't know" for dependent types. Modified: clang-tools-extra/trunk/clang-tidy/utils/Matchers.h c

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-10-25 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Analysis/CFG.cpp:1949-1952 @@ +1948,6 @@ + } + if(!C->body_empty() && !dyn_cast(*C->body_rbegin())) { +// If the body ends with a ReturnStmt, the dtors will be added in VisitReturnStmt +addAutomaticObjDtors(ScopePos, scopeBe

Re: [PATCH] D14049: clang-tidy/add_new_check.py: Adapt to use %check_clang_tidy in tests

2015-10-25 Thread Manuel Klimek via cfe-commits
LG. Thanks, totally missed this. On Sun, Oct 25, 2015, 7:46 PM Matthias Gehre via cfe-commits < cfe-commits@lists.llvm.org> wrote: > mgehre created this revision. > mgehre added reviewers: alexfh, sbenza, bkramer, aaron.ballman. > mgehre added a subscriber: cfe-commits. > > Adapt clang-tidy/add_n

Re: [PATCH] D14104: clang-format: Add an additional value to AlignAfterOpenBracket: AlwaysBreak.

2015-10-27 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:334 @@ +333,3 @@ + if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak && + Previous.is(tok::l_paren) && State.Column > getNewLineColumn(State) && + (!Previous.Previous ||

Re: [PATCH] D14104: clang-format: Add an additional value to AlignAfterOpenBracket: AlwaysBreak.

2015-10-27 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Format/ContinuationIndenter.cpp:334 @@ +333,3 @@ + if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak && + Previous.is(tok::l_paren) && State.Column > getNewLineColumn(State) && + (!Previous.Previous ||

Re: [PATCH] D14105: clang-format: When a line is formatted, also format subsequence lines if their indent is off.

2015-10-27 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-10-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. Generally, I feel like a lot of the code would be written better as ast matchers (by adding new matchers if necessary). You can use tooling::ast_matchers::matches if you want to do a match inside a callback. Comment at: clang-tidy/modernize/UseDefaultCh

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-10-28 Thread Manuel Klimek via cfe-commits
Thanks! On Wed, Oct 28, 2015 at 4:51 AM Angel Garcia wrote: > angelgarcia added a comment. > > OK, thanks! I will try to refactor some of the parts into AST matchers > then. It will probably take some time, though. > > > http://reviews.llvm.org/D14145 > > > >

Re: [PATCH] D14152: Add "equalsNode" for types and "isCopyAssignmentOperator" matchers.

2015-10-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. Please add unit tests :) http://reviews.llvm.org/D14152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-10-28 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/UseDefaultCheck.cpp:83-91 @@ +82,11 @@ + const CXXMethodDecl *Method) { + if (Method->getNumParams() != 1) +return false; + QualType ArgType = Method->getParamDecl(0)->getType(); + +

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-10-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D14145#277202, @angelgarcia wrote: > > In which cases can this be false? (I assume if not all are copied?) > > > This can be false is there is we do anything else than initializing the > bases and members. So the previous code is there to ensure

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-10-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D14145#277222, @angelgarcia wrote: > You can initialize an indirect base if it's virtual. Cool, those cases would be useful to have as comment, for example: // Make sure there are no additional initializations going on (for example, of indirec

Re: [PATCH] D14152: Add "equalsNode" for types and "isCopyAssignmentOperator" matchers.

2015-10-29 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14176: Only copy small types in modernize-loop-convert.

2015-10-29 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14176 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14213: clang-format: Be slightly more cautious when formatting subsequent lines after a change. With r251474, clang-format could indent the entire rest of the file, if there is a missing

2015-10-31 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14212: Make hasLHS and hasRHS matchers available for ArraySubscriptExpr

2015-10-31 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14198: Make the modernize-loop-convert's const-detection smarter.

2015-10-31 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/LoopConvertCheck.cpp:371-373 @@ -370,1 +370,5 @@ +/// \brief Returns false when it can be guaranteed that no container element +/// is going to be modified due to this expression. +static bool canBeModified(ASTContex

Re: [PATCH] D13388: Add support for querying the visibility of a cursor

2015-10-31 Thread Manuel Klimek via cfe-commits
klimek added a comment. Sergey, I think you raised concerns whether this is necessary. What are your thoughts? http://reviews.llvm.org/D13388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D14145: modernize-use-default supports copy constructor and copy-assignment operator.

2015-11-01 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14145 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

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

2015-11-01 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. klimek added a comment. Is this still the most current patch out there? http://reviews.llvm.org/D5767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

Re: r250577 - [modules] Allow the error when explicitly loading an incompatible module file

2015-11-01 Thread Manuel Klimek via cfe-commits
On Fri, Oct 23, 2015 at 9:31 PM Sean Silva wrote: > On Tue, Oct 20, 2015 at 1:52 AM, Manuel Klimek wrote: > >> On Tue, Oct 20, 2015 at 10:41 AM Sean Silva >> wrote: >> >>> On Tue, Oct 20, 2015 at 1:38 AM, Manuel Klimek >>> wrote: >>> On Tue, Oct 20, 2015 at 5:52 AM Sean Silva wrote:

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-11-01 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: lib/Analysis/CFG.cpp:1949-1952 @@ +1948,6 @@ + } + if(!C->body_empty() && !dyn_cast(*C->body_rbegin())) { +// If the body ends with a ReturnStmt, the dtors will be added in VisitReturnStmt +addAutomaticObjDtors(ScopePos, scopeBe

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-11-01 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: jordan_rose. klimek added a comment. +jordan for an opinion on whether we want to fix the more general case. My main problem is that while we're at it we need to fully understand the change anyway, and if somebody runs into this later, they'll need a long time debuggin

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

2015-11-02 Thread Manuel Klimek via cfe-commits
klimek added a reviewer: bkramer. klimek added a comment. +Benjamin to share another yak :D http://reviews.llvm.org/D11944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14198: Make the modernize-loop-convert's const-detection smarter.

2015-11-02 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/LoopConvertCheck.cpp:371-374 @@ -370,1 +370,6 @@ +/// \brief Returns false when it can be guaranteed that no element of the +/// container we are iterating over is going to be modified due to this +/// expression. +s

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

2015-11-02 Thread Manuel Klimek via cfe-commits
klimek added a comment. Ok, just let me know when you have an updated patch out for review for submission, so I can make sure we'll get the reviews done in a timely fashion. I really want to see this go in :) http://reviews.llvm.org/D5767 ___ cfe-

Re: [PATCH] D14198: Make the modernize-loop-convert's const-detection smarter.

2015-11-02 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. LG. Much better, thanks! http://reviews.llvm.org/D14198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

Re: [PATCH] D14282: Improve more the const-detection in modernize-loop-convert.

2015-11-03 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14289: Handle correctly containers that are data members in modernize-loop-convert.

2015-11-03 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14289 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14291: Improve modernize-make-unique matcher.

2015-11-03 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[PATCH] D14353: Allow use of private headers in different sub-modules.

2015-11-04 Thread Manuel Klimek via cfe-commits
klimek created this revision. klimek added a reviewer: rsmith. klimek added a subscriber: cfe-commits. http://reviews.llvm.org/D14353 Files: lib/Lex/ModuleMap.cpp test/Modules/Inputs/private3/private.h test/Modules/Inputs/private3/public.h test/Modules/private.modulemap Index: test/Modul

Re: [PATCH] D14353: Allow use of private headers in different sub-modules.

2015-11-04 Thread Manuel Klimek via cfe-commits
klimek updated this revision to Diff 39287. klimek added a comment. Remove unnecessary if and fix segfault. http://reviews.llvm.org/D14353 Files: lib/Lex/ModuleMap.cpp test/Modules/Inputs/private3/private.h test/Modules/Inputs/private3/public.h test/Modules/private.modulemap Index: tes

Re: [PATCH] D14353: Allow use of private headers in different sub-modules.

2015-11-04 Thread Manuel Klimek via cfe-commits
klimek marked 2 inline comments as done. klimek added a comment. Addressed comments. http://reviews.llvm.org/D14353 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r252170 - Allow use of private headers in different sub-modules.

2015-11-05 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Nov 5 09:24:47 2015 New Revision: 252170 URL: http://llvm.org/viewvc/llvm-project?rev=252170&view=rev Log: Allow use of private headers in different sub-modules. Added: cfe/trunk/test/Modules/Inputs/private3/ cfe/trunk/test/Modules/Inputs/private3/private.h c

Re: [PATCH] D14192: Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/ClangTidy.cpp:382 @@ +381,3 @@ + const CommandLineArguments &Args, StringRef Filename) { +Context.setCurrentFile(Filename); +const ClangTidyOptions &Opts = Context.getOptions(); My concern is still

Re: [PATCH] D14378: Fix another case where loop-convert wasn't handling correctly data members.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added a comment. > I currently see the following ways forward: > > 1. Extend this patch to cover also "throw", fixing case B) > 2. Do 1) plus loop over the whole body to also fix case C) > 3. Drop this patch and instead remove unreachable blocks after the whole CFG > has been generate

Re: [PATCH] D14437: Avoid naming conflicts with the old index in modernize-loop-convert.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14438: Use the old index identifier by default, instead of 'elem'.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14438 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14442: Allow the alias to be of a different type.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added a comment. Does this still do it for types with a user-provided implicit constructor? http://reviews.llvm.org/D14442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14192: Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/ClangTidy.cpp:382 @@ +381,3 @@ + const CommandLineArguments &Args, StringRef Filename) { +Context.setCurrentFile(Filename); +const ClangTidyOptions &Opts = Context.getOptions(); alexfh wrote: > klim

Re: [PATCH] D14442: Allow the alias to be of a different type.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added a comment. Can you add a test with an overloaded conversion operator? http://reviews.llvm.org/D14442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14192: Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/ClangTidy.cpp:382 @@ +381,3 @@ + const CommandLineArguments &Args, StringRef Filename) { +Context.setCurrentFile(Filename); +const ClangTidyOptions &Opts = Context.getOptions(); alexfh wrote: > klim

Re: [PATCH] D14442: Allow the alias to be of a different type.

2015-11-06 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D14442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D14192: Add ExtraArgs and ExtraArgsBefore options to enable clang warnings via configuration files.

2015-11-09 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. Ok, this patch LG. I'd really like to get rid of the current-file-dependent stuff in ClangTidyOptions though :) http://reviews.llvm.org/D14192 _

Re: [PATCH] D13973: CFG: Delay creating Dtors for CompoundStmts which end in ReturnStmt

2015-11-11 Thread Manuel Klimek via cfe-commits
klimek added a comment. Jordan, your call :) http://reviews.llvm.org/D13973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11837: Add Qt brace style configuration option.

2015-08-10 Thread Manuel Klimek via cfe-commits
klimek added a comment. Hm, the referenced style guide doesn't say anything about namespaces. I also couldn't find anything in the qt source repo (just took a quick look though). Do you have an example of why Qt projects shouldn't just use BS_Linux? http://reviews.llvm.org/D11837 __

Re: [PATCH] D11837: Add Qt brace style configuration option.

2015-08-10 Thread Manuel Klimek via cfe-commits
klimek added a comment. Webkit doesn't break for classes: class MyClass { ... }; http://reviews.llvm.org/D11837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11837: Add Qt brace style configuration option.

2015-08-10 Thread Manuel Klimek via cfe-commits
klimek added a comment. Ah, ok. Interestingly, our current Webkit style uses BS_Stroustrup, which is incorrect for } else {. So yep, implementing BS_Webkit sounds like a win. http://reviews.llvm.org/D11837 ___ cfe-commits mailing list cfe-commits@

Re: [PATCH] D11837: Add WebKit brace style configuration option.

2015-08-10 Thread Manuel Klimek via cfe-commits
klimek added a comment. Can you also fix the current code in getWebKitStyle? http://reviews.llvm.org/D11837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D11837: Add WebKit brace style configuration option.

2015-08-10 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. Ah, awesome, looks good then. Do you have commit access or need one of us to land it? http://reviews.llvm.org/D11837 ___ cfe-commits mailing list cfe-commits@li

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

2015-08-10 Thread Manuel Klimek via cfe-commits
Instead of forwarding this patch, which kills mail threading, I'd just abandon the patch and create a new one where you directly add llvm-commits when you upload it. (we know this is a problem, and we know how to fix it, but we'd need some php hackers to help) On Mon, Aug 10, 2015 at 6:14 PM Tere

Re: [PATCH] D22408: [clang-rename] add support for overridden functions

2016-07-19 Thread Manuel Klimek 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/D22408 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

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

2016-07-20 Thread Manuel Klimek 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/D22566 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

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

2016-07-20 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: include/clang/Tooling/Core/Replacement.h:145 @@ -145,4 +144,3 @@ -/// \brief A set of Replacements. -/// FIXME: Change to a vector and deduplicate in the RefactoringTool. -typedef std::set Replacements; +/// \brief This maintains a set o

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

2016-07-21 Thread Manuel Klimek via cfe-commits
klimek added a comment. Kirill, you happy with this approach? 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] D21814: clang-rename: split existing options into two new subcommands

2016-07-21 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-rename/RenamingAction.cpp:48 @@ +47,3 @@ +for (unsigned I = 0; I < NewNameList.size(); ++I) { + HandleOneRename(Context, NewNameList[I], PrevNameList[I], USRList[I]); +} Question is whether if we go down

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

2016-07-22 Thread Manuel Klimek via cfe-commits
klimek added a comment. Kirill, unless you have *specific* issues with this patch, I think it's good to land. Comment at: clang-rename/RenamingAction.cpp:48 @@ +47,3 @@ +for (unsigned I = 0; I < NewNameList.size(); ++I) { + HandleOneRename(Context, NewNameList[I], Prev

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")

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

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: [llvm-dev] [PATCH] Add support for the 'unless' matcher in the dynamic layer.

2016-07-27 Thread Manuel Klimek via cfe-commits
On Wed, Jul 27, 2016 at 1:06 AM Piotr Padlewski via llvm-dev < llvm-...@lists.llvm.org> wrote: > 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

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

2016-07-27 Thread Manuel Klimek 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/D21748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D21749: Changes related to new implementation of tooling::Replacements as class.

2016-07-27 Thread Manuel Klimek 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/D21749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

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

2016-07-28 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:83 @@ -80,3 +82,3 @@ if (const auto *Used = Result.Nodes.getNodeAs("used")) { -if (const auto *Specialization = -dyn_cast(Used)) +if (const auto *FD = dyn_cast(Used)) {

Re: [PATCH] D22957: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Manuel Klimek 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/D22957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D22963: [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg Comment at: unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:550 @@ +549,3 @@ +"template class Y {};" + "X xi;", +classTemplateSpecializationDecl(hasAnyTempl

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-rename/tool/clang-rename.el:7 @@ +6,3 @@ + +;; This package allows to filter code through clang-format to fix its formatting. +;; clang-format is a tool that formats C/C++/Obj-C code according to a set of s/clang-fo

Re: [PATCH] D22903: [clang-tidy] Prepare modernize-loop-convert for upcoming changes in D22566

2016-08-01 Thread Manuel Klimek 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/D22903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

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

2016-08-02 Thread Manuel Klimek 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/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D22505: clang-format Access Modifier Use Normal Indent

2016-08-02 Thread Manuel Klimek via cfe-commits
klimek added a comment. Perhaps call it AccessModifierIntroducesScope or something? Side-track: I find it highly confusing that in class C { int v1; private: int v2; } v1 & v2 have different indent, although they are in the same scope. https://reviews.llvm.org/D22505

Re: [PATCH] D22505: clang-format Access Modifier Use Normal Indent

2016-08-02 Thread Manuel Klimek via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D22505#503278, @djasper wrote: > So you'd be for #1 of the three choices from my previous comment? Yes, because I think ultimately introducing scopes is different from simple outdents/indents. https://reviews.llvm.org/D22505

<    1   2   3   4   5   6   >