[PATCH] D26844: [clang-move] Fix not moving using-decls in global namespace in old.cc

2016-11-18 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287330: [clang-move] Fix not moving using-decls in global namespace in old.cc (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26844?vs=78491&id=78492#toc Repository: rL LLVM

[clang-tools-extra] r287330 - [clang-move] Fix not moving using-decls in global namespace in old.cc

2016-11-18 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Nov 18 04:51:16 2016 New Revision: 287330 URL: http://llvm.org/viewvc/llvm-project?rev=287330&view=rev Log: [clang-move] Fix not moving using-decls in global namespace in old.cc Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D

[PATCH] D26911: readability-redundant-declarations: Fix crash

2016-11-21 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a reviewer: hokein. hokein added a comment. This revision is now accepted and ready to land. LGTM with a nit. Comment at: clang-tidy/readability/RedundantDeclarationCheck.cpp:33 return; + if (!Prev->getLocation().isValid()) +

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-22 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. - --new_depend_on_old: new header will include old header - --old_depend_on_new: old header will include new header. https://reviews.llvm.org/D26966 Files: clang-move/ClangMove.cpp clang-m

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 78874. hokein marked 8 inline comments as done. hokein added a comment. Address review comments. https://reviews.llvm.org/D26966 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/tool/ClangMoveMain.cpp unittests/clang-move/ClangMoveTe

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-22 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:309 + llvm::StringRef FileName, bool IsHeader = false, + StringRef OldHeaderInclude = "") { std::string NewCode; ioeric wrote: > How do you h

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-23 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 79043. hokein marked 8 inline comments as done. hokein added a comment. Update comments. https://reviews.llvm.org/D26966 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/tool/ClangMoveMain.cpp unittests/clang-move/ClangMoveTests.cpp

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-23 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 79046. hokein marked an inline comment as done. hokein added a comment. Fix code indentation. https://reviews.llvm.org/D26966 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/tool/ClangMoveMain.cpp unittests/clang-move/ClangMoveTests

[clang-tools-extra] r287752 - [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-23 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Nov 23 04:04:19 2016 New Revision: 287752 URL: http://llvm.org/viewvc/llvm-project?rev=287752&view=rev Log: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively. Summary: * --new_depend_on_old: new header will include old header * --old_depen

[PATCH] D26966: [clang-move] Add some options allowing to add old/new.h to new/old.h respectively.

2016-11-23 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287752: [clang-move] Add some options allowing to add old/new.h to new/old.h… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26966?vs=79046&id=79047#toc Repository: rL LLVM

[PATCH] D27059: [clang-move] Enable dump all declarations in old header.

2016-11-23 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. - Add -dump_dels option to dump all declarations from old header. It will allow clang-move used as a frontend to get declarations from header. Further more, this will make debugging stuff easie

[PATCH] D27059: [clang-move] Enable dump all declarations in old header.

2016-11-23 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 79120. hokein added a comment. Code style. https://reviews.llvm.org/D27059 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/tool/ClangMoveMain.cpp unittests/clang-move/ClangMoveTests.cpp Index: unittests/clang-move/ClangMoveTests.cp

[PATCH] D27059: [clang-move] Enable dump all declarations in old header.

2016-11-24 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 79194. hokein marked 2 inline comments as done. hokein added a comment. Add comments && Update test. https://reviews.llvm.org/D27059 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h clang-move/tool/ClangMoveMain.cpp unittests/clang-move/ClangMo

[clang-tools-extra] r287863 - [clang-move] Enable dump all declarations in old header.

2016-11-24 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Nov 24 04:17:17 2016 New Revision: 287863 URL: http://llvm.org/viewvc/llvm-project?rev=287863&view=rev Log: [clang-move] Enable dump all declarations in old header. Summary: * Add -dump_dels option to dump all declarations from old header. It will allow clang-move used

[PATCH] D27059: [clang-move] Enable dump all declarations in old header.

2016-11-24 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287863: [clang-move] Enable dump all declarations in old header. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D27059?vs=79194&id=79201#toc Repository: rL LLVM https://revi

[clang-tools-extra] r288498 - [clang-move] some tweaks.

2016-12-02 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Dec 2 06:39:39 2016 New Revision: 288498 URL: http://llvm.org/viewvc/llvm-project?rev=288498&view=rev Log: [clang-move] some tweaks. * Don't save SourceManager for each declarations. * Rename some out-dated methods. No functionality change. Modified: clang-tools-ex

r289431 - [StaticAnalysis] Remove unnecessary parameter in CallGraphNode::addCallee.

2016-12-12 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Dec 12 08:12:10 2016 New Revision: 289431 URL: http://llvm.org/viewvc/llvm-project?rev=289431&view=rev Log: [StaticAnalysis] Remove unnecessary parameter in CallGraphNode::addCallee. Summary: Remove the CallGraph in addCallee as it is not used in addCallee. It decouples a

[clang-tools-extra] r289541 - [clang-move] Fix incorrect EndLoc for declarations in macros.

2016-12-13 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Dec 13 09:35:47 2016 New Revision: 289541 URL: http://llvm.org/viewvc/llvm-project?rev=289541&view=rev Log: [clang-move] Fix incorrect EndLoc for declarations in macros. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D27713 M

[clang-tools-extra] r301188 - [clang-tidy] Some Cleanups for performance-faster-string-find check.

2017-04-24 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Apr 24 11:41:00 2017 New Revision: 301188 URL: http://llvm.org/viewvc/llvm-project?rev=301188&view=rev Log: [clang-tidy] Some Cleanups for performance-faster-string-find check. NFC Modified: clang-tools-extra/trunk/clang-tidy/performance/FasterStringFindCheck.cpp Mo

[clang-tools-extra] r301440 - [clang-tidy] Support detecting for-range loop in inefficient-vector-operation check.

2017-04-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 26 13:13:05 2017 New Revision: 301440 URL: http://llvm.org/viewvc/llvm-project?rev=301440&view=rev Log: [clang-tidy] Support detecting for-range loop in inefficient-vector-operation check. Summary: Also add an option "VectorLikeClasses" allowing user specify customiz

r301525 - Don't hard-code "modules-cache-path" in the test.

2017-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Apr 27 04:20:46 2017 New Revision: 301525 URL: http://llvm.org/viewvc/llvm-project?rev=301525&view=rev Log: Don't hard-code "modules-cache-path" in the test. Modified: cfe/trunk/test/Modules/malformed-overload.m Modified: cfe/trunk/test/Modules/malformed-overload.m U

r301536 - Fix asan failures on OpenMP.

2017-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Apr 27 07:22:33 2017 New Revision: 301536 URL: http://llvm.org/viewvc/llvm-project?rev=301536&view=rev Log: Fix asan failures on OpenMP. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-project/

[clang-tools-extra] r301914 - [clang-move] Find template class forward declarations more precisely.

2017-05-02 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 2 07:15:11 2017 New Revision: 301914 URL: http://llvm.org/viewvc/llvm-project?rev=301914&view=rev Log: [clang-move] Find template class forward declarations more precisely. Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https

[clang-tools-extra] r302934 - [include-fixer] Don't throw exception when parsing unknown arguments in

2017-05-12 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri May 12 14:01:02 2017 New Revision: 302934 URL: http://llvm.org/viewvc/llvm-project?rev=302934&view=rev Log: [include-fixer] Don't throw exception when parsing unknown arguments in vim script. Modified: clang-tools-extra/trunk/include-fixer/find-all-symbols/tool/run-f

[clang-tools-extra] r303095 - [clang-tidy] Fix a typo: dequeue => deque

2017-05-15 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon May 15 13:18:28 2017 New Revision: 303095 URL: http://llvm.org/viewvc/llvm-project?rev=303095&view=rev Log: [clang-tidy] Fix a typo: dequeue => deque Modified: clang-tools-extra/trunk/clang-tidy/performance/InefficientVectorOperationCheck.cpp Modified: clang-tools-

[clang-tools-extra] r303157 - [clang-tidy] Add "emplace_back" detection in inefficient-vector-operation.

2017-05-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 16 05:39:55 2017 New Revision: 303157 URL: http://llvm.org/viewvc/llvm-project?rev=303157&view=rev Log: [clang-tidy] Add "emplace_back" detection in inefficient-vector-operation. Reviewers: alexfh, aaron.ballman Reviewed By: alexfh Subscribers: cfe-commits, Prazek,

Re: [clang-tools-extra] r284233 - [clang-move] Add header guard for the new header.

2016-10-17 Thread Haojian Wu via cfe-commits
ber 2016 at 06:01, Haojian Wu via cfe-commits > > wrote: > >> + std::string GuardName(FileName); > >> + if (IsHeader) { > >> +std::replace(GuardName.begin(), GuardName.end(), '/', '_'); > >> +std::replace(GuardName.begin(), Guar

[clang-tools-extra] r284391 - [clang-move] Fix generating illegal header guard.

2016-10-17 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Oct 17 10:26:34 2016 New Revision: 284391 URL: http://llvm.org/viewvc/llvm-project?rev=284391&view=rev Log: [clang-move] Fix generating illegal header guard. The filepath might contain some characters (i.e. '@') which are not illegal in c identifiers. This patch changes a

Re: [clang-tools-extra] r284233 - [clang-move] Add header guard for the new header.

2016-10-17 Thread Haojian Wu via cfe-commits
at 3:44 PM, Tim Northover > wrote: > >> On 14 October 2016 at 13:33, Tim Northover >> wrote: >> > On 14 October 2016 at 06:01, Haojian Wu via cfe-commits >> > wrote: >> >> + std::string GuardName(FileName); >> >> + if (IsHeader) {

[PATCH] D25747: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.

2016-10-18 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: aaron.ballman. hokein added a subscriber: cfe-commits. Herald added a subscriber: nemanjai. The matcher for matching "class with default constructor" still match some classes without default constructor, which trigger an assert at Line 307. Th

[PATCH] D25762: [clang-move] Move using-decl in old cc.

2016-10-19 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. Another fix is to move the whole anonymous namespace declaration completely instead of moving fun/var declarations only. https://reviews.llvm.org/D25762 Files: clang-move/ClangMove.cpp tes

[PATCH] D25762: [clang-move] Move using-decl in old cc.

2016-10-19 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 75139. hokein marked 2 inline comments as done. hokein added a comment. Address comments. - Cover type alias declarations. - Fix an issue of moving function-scope static definitions in non-moved classes. https://reviews.llvm.org/D25762 Files: clang-move/C

[PATCH] D25762: [clang-move] Move using-decl in old cc.

2016-10-19 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. hokein added inline comments. Comment at: clang-move/ClangMove.cpp:356 Finder->addMatcher( - namedDecl(anyOf(functionDecl(isDefinition()), varDecl(isDefinition())), -inAnonymousNamespace) - .bind("decls_in_

[PATCH] D25770: [clang-tidy] Add cert-err09-cpp check alias.

2016-10-19 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM, thanks. https://reviews.llvm.org/D25770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[clang-tools-extra] r284592 - [clang-move] Move using-decl in old cc.

2016-10-19 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Oct 19 09:13:21 2016 New Revision: 284592 URL: http://llvm.org/viewvc/llvm-project?rev=284592&view=rev Log: [clang-move] Move using-decl in old cc. Summary: Another fix is to move the whole anonymous namespace declaration completely instead of moving fun/var declarations

[PATCH] D25762: [clang-move] Move using-decl in old cc.

2016-10-19 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked 2 inline comments as done. Closed by commit rL284592: [clang-move] Move using-decl in old cc. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25762?vs=75139&id=75146#toc Repository:

[PATCH] D25771: [change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

2016-10-20 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: change-namespace/ChangeNamespace.cpp:566 + break; +if (isDeclVisibleAtLocation(*Result.SourceManager, Using, DeclCtx, Start)) { + for (const auto *UsingShadow : Using->shadows()) { Yeah, it works for most c

[PATCH] D25649: [Clang-tidy]: Fix modernize-avoid-bind erroneous scope resolution.

2016-10-20 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM. I will commit for you. Repository: rL LLVM https://reviews.llvm.org/D25649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang-tools-extra] r284719 - [Clang-tidy]: Fix modernize-avoid-bind erroneous scope resolution.

2016-10-20 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Oct 20 06:32:47 2016 New Revision: 284719 URL: http://llvm.org/viewvc/llvm-project?rev=284719&view=rev Log: [Clang-tidy]: Fix modernize-avoid-bind erroneous scope resolution. Hello, i would like to suggest a fix for one of the checks in clang-tidy and i should hope this

[PATCH] D25649: [Clang-tidy]: Fix modernize-avoid-bind erroneous scope resolution.

2016-10-20 Thread Haojian Wu via cfe-commits
hokein closed this revision. hokein added a comment. Committed in r284719 with some nits fixing. As @jlebar mentioned above, please consider use `Arcanist` (http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-command-line) to upload your patch, which will make the commit stuff eas

[clang-tools-extra] r284727 - [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.

2016-10-20 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Oct 20 08:15:40 2016 New Revision: 284727 URL: http://llvm.org/viewvc/llvm-project?rev=284727&view=rev Log: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init. Summary: The matcher for matching "class with default constructor" still match some

[PATCH] D25747: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.

2016-10-20 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284727: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25747?vs=75066&id=75291#toc Repository:

[PATCH] D25747: [clang-tidy] Fix an assertion failure in cppcoreguidelines-pro-type-member-init.

2016-10-20 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:30 +AST_MATCHER(CXXRecordDecl, hasDefaultConstructor) { + return Node.hasDefaultConstructor(); aaron.ballman wrote: > I think this should be a public AST matcher

[clang-tools-extra] r284859 - [clang-move] Support moving template class forward declarations.

2016-10-21 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Oct 21 14:26:43 2016 New Revision: 284859 URL: http://llvm.org/viewvc/llvm-project?rev=284859&view=rev Log: [clang-move] Support moving template class forward declarations. Modified: clang-tools-extra/trunk/clang-move/ClangMove.cpp clang-tools-extra/trunk/unittest

[PATCH] D25911: [clang-move] Support moving template class forward declarations.

2016-10-24 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization. This will prevent the check warning the variables which have been implicitly added by compiler, like th

[PATCH] D25911: [clang-move] Support moving template class forward declarations.

2016-10-24 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 75595. hokein added a comment. Don't mess up with other patches. https://reviews.llvm.org/D25911 Files: clang-tidy/performance/UnnecessaryCopyInitialization.cpp test/clang-tidy/performance-unnecessary-copy-initialization.cpp Index: test/clang-tidy/perf

[PATCH] D26301: [clang-tidy] Fix a regression issue introduced by r285239.

2016-11-04 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. r285239 changes the behavior of AST CXXDefaultArgExpr node. Update `modernize-use-nullptr` to handle CXXDefaultArgExpr correctly. https://reviews.llvm.org/D26301 Files: clang-tidy/modernize

[PATCH] D26311: Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc

2016-11-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/ClangTidy.cpp:297 + const auto &RegisteredCheckers = + AnalyzerOptions::getRegisteredCheckers(IncludeExperimentalCheckers); + bool AnalyzerChecksEnabled = false; Since the default argument of this funct

[PATCH] D25771: [change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

2016-11-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: change-namespace/ChangeNamespace.cpp:566 + break; +if (isDeclVisibleAtLocation(*Result.SourceManager, Using, DeclCtx, Start)) { + for (const auto *UsingShadow : Using->shadows()) { ioeric wrote: > ioeric wr

[PATCH] D26236: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-07 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77093. hokein marked 5 inline comments as done. hokein added a comment. Address review comments. https://reviews.llvm.org/D26236 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h test/clang-move/Inputs/test.h test/clang-move/move-class.cpp uni

[PATCH] D26236: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-07 Thread Haojian Wu via cfe-commits
hokein added a comment. > The patch summary says "one moved declaration." Why it is just one moved > declaration? Doesn't this also support moving all classes in one file? Oh, the patch summary is not totally correct. It actually does what you mention above. Have updated the summary. ===

[PATCH] D26301: [clang-tidy] Fix a regression issue introduced by r285239.

2016-11-07 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286156: [clang-tidy] Fix a regression issue introduced by r285239. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26301?vs=76920&id=77096#toc Repository: rL LLVM https://re

[clang-tools-extra] r286156 - [clang-tidy] Fix a regression issue introduced by r285239.

2016-11-07 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Nov 7 15:46:24 2016 New Revision: 286156 URL: http://llvm.org/viewvc/llvm-project?rev=286156&view=rev Log: [clang-tidy] Fix a regression issue introduced by r285239. Summary: r285239 changes the behavior of AST CXXDefaultArgExpr node. Update `modernize-use-nullptr` to h

[PATCH] D25911: [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization.

2016-11-07 Thread Haojian Wu via cfe-commits
hokein added a comment. friendly ping. https://reviews.llvm.org/D25911 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26311: Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc

2016-11-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/ClangTidy.cpp:297 + const auto &RegisteredCheckers = + AnalyzerOptions::getRegisteredCheckers(IncludeExperimentalCheckers); + bool AnalyzerChecksEnabled = false; alexfh wrote: > hokein wrote: > > Since t

[PATCH] D26311: Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc

2016-11-07 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM, thanks. https://reviews.llvm.org/D26311 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r286186 - [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization.

2016-11-07 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Nov 7 18:45:34 2016 New Revision: 286186 URL: http://llvm.org/viewvc/llvm-project?rev=286186&view=rev Log: [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization. Summary: This will prevent the check warning the variables which have be

[PATCH] D25911: [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy-initialization.

2016-11-07 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286186: [clang-tidy] Don't warn implicit variables in peformance-unnecessary-copy… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D25911?vs=75595&id=77122#toc Repository: rL

[PATCH] D26236: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77208. hokein marked 2 inline comments as done. hokein added a comment. Fix remaining comments. https://reviews.llvm.org/D26236 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h test/clang-move/Inputs/test.h test/clang-move/move-class.cpp unit

[PATCH] D25771: [change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: change-namespace/ChangeNamespace.cpp:233 + const DeclContext *DeclCtx, SourceLocation Loc) { + return SM.isBeforeInTranslationUnit(SM.getSpellingLoc(D->getLocation()), + SM

[PATCH] D26236: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77223. hokein marked 2 inline comments as done. hokein added a comment. Update test to check old header. https://reviews.llvm.org/D26236 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h test/clang-move/Inputs/test.h test/clang-move/move-class.c

[clang-tools-extra] r286281 - [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Nov 8 13:55:13 2016 New Revision: 286281 URL: http://llvm.org/viewvc/llvm-project?rev=286281&view=rev Log: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h. Summary: When moving all code to new.h/cc, these code also will b

[PATCH] D26236: [clang-move] Move all code from old.h/cc directly when moving all class declarations from old.h.

2016-11-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286281: [clang-move] Move all code from old.h/cc directly when moving all class… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26236?vs=77223&id=77233#toc Repository: rL LL

[PATCH] D25771: [change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein added a comment. One more comment, otherwise looks good. Comment at: change-namespace/ChangeNamespace.cpp:275 + (DiffOldNsSplitted.empty() ? "-" : DiffOldNsSplitted.front())) + .str(); + auto IsInMovedNs = Using an invalid name `-` is not

[PATCH] D26423: [clang-move] Support template class.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D26423 Files: clang-move/ClangMove.cpp test/clang-move/Inputs/template_class_test.cpp test/clang-move/Inputs/template_class_test.h test/clang-move/move-template-

[PATCH] D25771: [change-namespace] shorten namespace qualifier based on UsingDecl and UsingDirectiveDecl.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM with one nit. Comment at: change-namespace/ChangeNamespace.cpp:275 + (DiffOldNsSplitted.empty() ? "-" : DiffOldNsSplitted.front())) + .str(); + auto IsIn

[PATCH] D26423: [clang-move] Support template class.

2016-11-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77292. hokein marked 3 inline comments as done. hokein added a comment. Add comments. https://reviews.llvm.org/D26423 Files: clang-move/ClangMove.cpp test/clang-move/Inputs/template_class_test.cpp test/clang-move/Inputs/template_class_test.h test/cla

[PATCH] D26423: [clang-move] Support template class.

2016-11-09 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. hokein added inline comments. Comment at: clang-move/ClangMove.cpp:417 + if (const auto *FTD = CMD->getDescribedFunctionTemplate()) +UnremovedDeclsInOldHeader.erase(FTD); + else ioeric wrote: > `erase(FTD

[PATCH] D26423: [clang-move] Support template class.

2016-11-09 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL286427: [clang-move] Support template class. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26423?vs=77292&id=77447#toc Repository:

[clang-tools-extra] r286427 - [clang-move] Support template class.

2016-11-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Nov 9 23:33:26 2016 New Revision: 286427 URL: http://llvm.org/viewvc/llvm-project?rev=286427&view=rev Log: [clang-move] Support template class. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26423 Added: clang-tools-ext

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-09 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. Add decent blank line between declarations. https://reviews.llvm.org/D26493 Files: clang-move/ClangMove.cpp unittests/clang-move/ClangMoveTests.cpp Index: unittests/clang-move/ClangMoveTe

[PATCH] D26456: Handle adding new nested namespace in old namespace.

2016-11-10 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM with two nits. Comment at: change-namespace/ChangeNamespace.cpp:475 + // If there is no outer namespace (i.e. DiffOldNamespace is empty), the new + // namespace will b

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-10 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. No functionality change. This is a refactoring patch, which makes the code more readable and easy to extend it to support more types. https://reviews.llvm.org/D26515 Files: clang-move/Clang

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-10 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77521. hokein marked 3 inline comments as done. hokein added a comment. Address comments. https://reviews.llvm.org/D26515 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h Index: clang-move/ClangMove.h ==

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-10 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:144 + void run(const ast_matchers::MatchFinder::MatchResult &Result) override { +if (const auto *CMD = +Result.Nodes.getNodeAs("class_method")) { ioeric wrote: > It'd be more read

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:139 +class ClassDeclarationMatcher : public MatchFinder::MatchCallback { +public: ioeric wrote: > Why is this called a Matcher? Rename it to a better name "Match". https://reviews.llvm.org/D26

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77788. hokein marked 2 inline comments as done. hokein added a comment. Split to small functions. https://reviews.llvm.org/D26515 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h Index: clang-move/ClangMove.h ==

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77794. hokein added a comment. Add comments and update patch descriptions. https://reviews.llvm.org/D26493 Files: clang-move/ClangMove.cpp unittests/clang-move/ClangMoveTests.cpp Index: unittests/clang-move/ClangMoveTests.cpp ===

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77803. hokein marked 2 inline comments as done. hokein added a comment. Address remaining comments. https://reviews.llvm.org/D26515 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h Index: clang-move/ClangMove.h

[PATCH] D26515: [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286825: [clang-move] Abstract a ClassMather for matching class declarations. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26515?vs=77803&id=77804#toc Repository: rL LLVM

[clang-tools-extra] r286825 - [clang-move] Abstract a ClassMather for matching class declarations.

2016-11-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Nov 14 08:15:44 2016 New Revision: 286825 URL: http://llvm.org/viewvc/llvm-project?rev=286825&view=rev Log: [clang-move] Abstract a ClassMather for matching class declarations. Summary: No functionality change. This is a refactoring patch, which makes the code more reada

[PATCH] D26609: [clang-move] Fix an incorrect range for the functions whose returned value is a macro

2016-11-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. hokein added a subscriber: cfe-commits. Fix an incorrect range for the functions whose returned value is a macro (e.g. `bool`). This incorrect range can lead to modifications of an unexpected file where the macro is in. We should use

[clang-tools-extra] r286833 - [clang-move] Fix an incorrect range for the functions whose returned value is a macro

2016-11-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Nov 14 08:46:48 2016 New Revision: 286833 URL: http://llvm.org/viewvc/llvm-project?rev=286833&view=rev Log: [clang-move] Fix an incorrect range for the functions whose returned value is a macro Summary: Fix an incorrect range for the functions whose returned value is a m

[PATCH] D26609: [clang-move] Fix an incorrect range for the functions whose returned value is a macro

2016-11-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286833: [clang-move] Fix an incorrect range for the functions whose returned value is a… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D26609?vs=77806&id=77810#toc Repository:

[PATCH] D26592: [change-namespace] consider typedef/using alias decls in the moved namespace.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. looks good. Comment at: unittests/change-namespace/ChangeNamespaceTests.cpp:829 "void f() {\n" - " using na::CA;\n" -

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:280 assert(It < CurrentNamespaces.rend()); - NewCode += "} // namespace " + *It + "\n"; + NewCode += "} // namespace " + *It + "\n\n"; } ioeric wrote: > Wouldn't this create

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-move/ClangMove.cpp:280 assert(It < CurrentNamespaces.rend()); - NewCode += "} // namespace " + *It + "\n"; + NewCode += "} // namespace " + *It + "\n\n"; } hokein wrote: > ioeric wrote: > > Wou

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77820. hokein marked an inline comment as done. hokein added a comment. Fix a corner case, and add a test. https://reviews.llvm.org/D26493 Files: clang-move/ClangMove.cpp unittests/clang-move/ClangMoveTests.cpp Index: unittests/clang-move/ClangMoveTests

[PATCH] D26493: [clang-move] Make the output code look more pretty.

2016-11-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 77821. hokein added a comment. Remove a trailing blank line. https://reviews.llvm.org/D26493 Files: clang-move/ClangMove.cpp unittests/clang-move/ClangMoveTests.cpp Index: unittests/clang-move/ClangMoveTests.cpp =

[PATCH] D22510: [include-fixer] A refactoring of IncludeFixerContext.

2016-07-19 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. No functional changes in this patch. It is a refactoring (pull out a structure representing the symbol being queried). This is a preparing step for inserting missing namespace qualifiers to all

[clang-tools-extra] r275980 - [include-fixer] A refactoring of IncludeFixerContext.

2016-07-19 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jul 19 09:49:04 2016 New Revision: 275980 URL: http://llvm.org/viewvc/llvm-project?rev=275980&view=rev Log: [include-fixer] A refactoring of IncludeFixerContext. Summary: No functional changes in this patch. It is a refactoring (pull out a structure representing the symbo

Re: [PATCH] D22510: [include-fixer] A refactoring of IncludeFixerContext.

2016-07-19 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275980: [include-fixer] A refactoring of IncludeFixerContext. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22510?vs=64481&id=64502#toc Repository: rL LLVM https://reviews

[clang-tools-extra] r276096 - [include-fixer] Tweak: remove unintended const.

2016-07-20 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jul 20 04:00:22 2016 New Revision: 276096 URL: http://llvm.org/viewvc/llvm-project?rev=276096&view=rev Log: [include-fixer] Tweak: remove unintended const. Modified: clang-tools-extra/trunk/include-fixer/IncludeFixerContext.cpp clang-tools-extra/trunk/include-fixe

[PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-20 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. https://reviews.llvm.org/D22567 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cpp

Re: [PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-21 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 64848. hokein marked 3 inline comments as done. hokein added a comment. Address review comments. https://reviews.llvm.org/D22567 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext.cpp include-fixer/In

Re: [PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-21 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/ClangIncludeFixer.cpp:365 @@ +364,3 @@ + for (const auto &Info : Context.getQuerySymbolInfos()) { +Replacements->insert({FilePath, Info.Range.getOffset(), + Info.Range.getLength(), -

Re: [PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-21 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 64849. hokein added a comment. update error message. https://reviews.llvm.org/D22567 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/Cla

[clang-tools-extra] r276280 - [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-21 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jul 21 08:47:09 2016 New Revision: 276280 URL: http://llvm.org/viewvc/llvm-project?rev=276280&view=rev Log: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol. Reviewers: bkramer Subscribers: ioeric, cfe-commits Differential Revision: http

Re: [PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

2016-07-21 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276280: [include-fixer] Add mising qualifiers to all instances of an unidentified… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22567?vs=64849&id=64877#toc Repository: rL

Re: [PATCH] D21992: [clang-tidy] new cppcoreguidelines-slicing

2016-07-22 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. Looks good now. Do you need I submit for you? https://reviews.llvm.org/D21992 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    10   11   12   13   14   15   16   17   18   19   >