Re: [PATCH] D20827: [include-fixer] Use YAML format in -output-headers and -insert-header mode.

2016-06-01 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271382: [include-fixer] Use YAML format in -output-headers and -insert-header mode. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20827?vs=59187&id=59198#toc Repository: rL

[PATCH] D20909: [clang-tidy] Ignore function context in misc-unused-using-decls.

2016-06-02 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. Make the check's behavior more correct when handling using-decls in multiple scopes. http://reviews.llvm.org/D20909 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedU

Re: [PATCH] D20909: [clang-tidy] Ignore function context in misc-unused-using-decls.

2016-06-03 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59492. hokein added a comment. Address code comments. http://reviews.llvm.org/D20909 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck.h test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unuse

[clang-tools-extra] r271632 - [clang-tidy] Ignore function context in misc-unused-using-decls.

2016-06-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jun 3 03:05:11 2016 New Revision: 271632 URL: http://llvm.org/viewvc/llvm-project?rev=271632&view=rev Log: [clang-tidy] Ignore function context in misc-unused-using-decls. Summary: Make the check's behavior more correct when handling using-decls in multiple scopes. Rev

Re: [PATCH] D20909: [clang-tidy] Ignore function context in misc-unused-using-decls.

2016-06-03 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271632: [clang-tidy] Ignore function context in misc-unused-using-decls. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20909?vs=59492&id=59494#toc Repository: rL LLVM http:

[PATCH] D20950: [include-fixer] Don't add missing header if the unindentified symbol isn't from the main file.

2016-06-03 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. The further solution is to add the missing header to the file where the symbol comes from. http://reviews.llvm.org/D20950 Files: include-fixer/IncludeFixer.cpp unittests/include-fixer/Incl

[clang-tools-extra] r271660 - [include-fixer] Don't add missing header if the unindentified symbol isn't from the main file.

2016-06-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jun 3 06:26:02 2016 New Revision: 271660 URL: http://llvm.org/viewvc/llvm-project?rev=271660&view=rev Log: [include-fixer] Don't add missing header if the unindentified symbol isn't from the main file. Summary: The further solution is to add the missing header to the fi

Re: [PATCH] D20950: [include-fixer] Don't add missing header if the unindentified symbol isn't from the main file.

2016-06-03 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271660: [include-fixer] Don't add missing header if the unindentified symbol isn't… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20950?vs=59496&id=59529#toc Repository: rL

[PATCH] D20966: [include-fixer] Add the missing header to the file where the unidentified symbol comes from.

2016-06-03 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added reviewers: bkramer, ioeric. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D20966 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cpp include-fixer/tool/clang-include

Re: [PATCH] D21019: [include-fixer] try to make vim header selection more friendly.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.py:53 @@ +52,3 @@ + except Exception: +if res == '': + # choose the top ranked header by default We can handle the ` ` , `a`, `q` cases after `res=vim.eval(to_eval)` instead

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59721. hokein marked an inline comment as done. hokein added a comment. Address review comments. http://reviews.llvm.org/D20467 Files: docs/ReleaseNotes.rst docs/include-fixer.rst Index: docs/include-fixer.rst ===

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D20467#435685, @Eugene.Zelenko wrote: > Could you please mention include-fixer in docs/ReleaseNotes.rst? This is > definitely major new feature in upcoming release. Done. http://reviews.llvm.org/D20467 ___

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-06 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59725. hokein marked 3 inline comments as done. hokein added a comment. Add comments. http://reviews.llvm.org/D20467 Files: docs/ReleaseNotes.rst docs/include-fixer.rst Index: docs/include-fixer.rst ==

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-07 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59838. hokein added a comment. Fix typo. http://reviews.llvm.org/D20467 Files: docs/ReleaseNotes.rst docs/include-fixer.rst Index: docs/include-fixer.rst === --- docs/include-fixer.rst +++

[clang-tools-extra] r271989 - [include-fixer] Mention more details in the document.

2016-06-07 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jun 7 02:50:48 2016 New Revision: 271989 URL: http://llvm.org/viewvc/llvm-project?rev=271989&view=rev Log: [include-fixer] Mention more details in the document. Reviewers: bkramer Subscribers: Eugene.Zelenko, cfe-commits, ioeric Differential Revision: http://reviews.ll

Re: [PATCH] D20467: [include-fixer] Mention more details in the document.

2016-06-07 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271989: [include-fixer] Mention more details in the document. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20467?vs=59838&id=59839#toc Repository: rL LLVM http://reviews.l

[PATCH] D21059: [clang-tidy] Ignore the deleted function in misc-definitions-in-headers.

2016-06-07 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D21059 Files: clang-tidy/misc/DefinitionsInHeadersCheck.cpp test/clang-tidy/misc-definitions-in-headers-cxx11.hpp Index: test/clang-tidy/misc-definitions-in-headers-

Re: [PATCH] D21059: [clang-tidy] Ignore the deleted function in misc-definitions-in-headers.

2016-06-07 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 59843. hokein marked an inline comment as done. hokein added a comment. Use the existing test file. http://reviews.llvm.org/D21059 Files: clang-tidy/misc/DefinitionsInHeadersCheck.cpp test/clang-tidy/misc-definitions-in-headers.hpp Index: test/clang-tid

Re: [PATCH] D21059: [clang-tidy] Ignore the deleted function in misc-definitions-in-headers.

2016-06-07 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL271991: [clang-tidy] Ignore the deleted function in misc-definitions-in-headers. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21059?vs=59843&id=59845#toc Repository: rL LLV

[clang-tools-extra] r271991 - [clang-tidy] Ignore the deleted function in misc-definitions-in-headers.

2016-06-07 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jun 7 03:55:38 2016 New Revision: 271991 URL: http://llvm.org/viewvc/llvm-project?rev=271991&view=rev Log: [clang-tidy] Ignore the deleted function in misc-definitions-in-headers. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org

Re: [PATCH] D21036: Misplaced const-qualification with typedef types

2016-06-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/misc-misplaced-const.c:17 @@ +16,3 @@ + const ip i3 = 0; + // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: 'i3' declared with a const-qualified typedef type; results in the type being 'int *const' instead of 'const int *'

Re: [PATCH] D20966: [include-fixer] Add the missing header to the file where the unidentified symbol comes from.

2016-06-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/IncludeFixer.cpp:104 @@ -103,3 @@ -// class Bar; -// Foo foo; -// bkramer wrote: > Does this patch do the right thing for the test case in the comment? > Otherwise we'll try add includes to s

Re: [PATCH] D20512: [PATCH] Bug 27475 - Request header guard check processes .hpp files as well as .h files

2016-06-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/llvm/HeaderGuardCheck.h:19 @@ -18,3 +18,3 @@ /// Finds and fixes header guards that do not adhere to LLVM style. class LLVMHeaderGuardCheck : public utils::HeaderGuardCheck { hokein wrote: > madsravn wrote:

Re: [PATCH] D21036: Misplaced const-qualification with typedef types

2016-06-07 Thread Haojian Wu via cfe-commits
hokein added a comment. @aaron.ballman, you forgot to add the check in docs/ReleaseNotes.rst. http://reviews.llvm.org/D21036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added reviewers: bkramer, ioeric. hokein added a subscriber: cfe-commits. Currently, removing dot dot in header's path doesn't make include-fixer minimize path correctly in some cases, for example, specify a relative search path based on the build directory("-I

[clang-tools-extra] r272152 - [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jun 8 10:10:18 2016 New Revision: 272152 URL: http://llvm.org/viewvc/llvm-project?rev=272152&view=rev Log: [include-fixer] Keep dot dot in SymbolInfo file paths. Summary: Currently, removing dot dot in header's path doesn't make include-fixer minimize path correctly in s

Re: [PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272152: [include-fixer] Keep dot dot in SymbolInfo file paths. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21132?vs=60041&id=60042#toc Repository: rL LLVM http://reviews.

Re: [PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 60041. hokein added a comment. Rebase. http://reviews.llvm.org/D21132 Files: include-fixer/find-all-symbols/PathConfig.cpp include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp test/include-fixer/include_path.cpp unittests/include-fixer/find-all

[PATCH] D21278: Fix an enum-compare compliation warning message.

2016-06-13 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: klimek. hokein added subscribers: cfe-commits, spatel. A follow-up fix on D21235. http://reviews.llvm.org/D21278 Files: lib/Target/X86/X86ISelLowering.cpp Index: lib/Target/X86/X86ISelLowering.cpp =

Re: [PATCH] D21278: Fix an enumeral mismatch warning.

2016-06-13 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D21278#455850, @klimek wrote: > LG. Fix the change description when submitting, though - this is not about an > enum comparison, right? Done. This is enumeral mismatch indeed. http://reviews.llvm.org/D21278 ___

Re: [PATCH] D21278: Fix an enumeral mismatch warning.

2016-06-13 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272539: Fix an enumeral mismatch warning. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21278?vs=60494&id=60498#toc Repository: rL LLVM http://reviews.llvm.org/D21278 File

[PATCH] D21371: [include-fixer] Correct two wrong header mappings.

2016-06-15 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added subscribers: cfe-commits, ioeric. http://reviews.llvm.org/D21371 Files: include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp Index: include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp

[clang-tools-extra] r272773 - [include-fixer] Correct two wrong header mappings.

2016-06-15 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jun 15 06:15:12 2016 New Revision: 272773 URL: http://llvm.org/viewvc/llvm-project?rev=272773&view=rev Log: [include-fixer] Correct two wrong header mappings. Reviewers: bkramer Subscribers: ioeric, cfe-commits Differential Revision: http://reviews.llvm.org/D21371 Modi

Re: [PATCH] D21371: [include-fixer] Correct two wrong header mappings.

2016-06-15 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272773: [include-fixer] Correct two wrong header mappings. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21371?vs=60812&id=60814#toc Repository: rL LLVM http://reviews.llvm

r272890 - A follow-up fixing on cuda-march.cu: Don't match clang to other place.

2016-06-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jun 16 08:27:02 2016 New Revision: 272890 URL: http://llvm.org/viewvc/llvm-project?rev=272890&view=rev Log: A follow-up fixing on cuda-march.cu: Don't match clang to other place. Modified: cfe/trunk/test/Driver/cuda-march.cu Modified: cfe/trunk/test/Driver/cuda-march

[PATCH] D21470: [clang-tidy] Don't run misc-definitions-in-headers check in failing TUs.

2016-06-17 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D21470 Files: clang-tidy/misc/DefinitionsInHeadersCheck.cpp Index: clang-tidy/misc/DefinitionsInHeadersCheck.cpp ==

Re: [PATCH] D20964: [clang-tidy] Add modernize-use-emplace

2016-06-17 Thread Haojian Wu via cfe-commits
hokein added a comment. A few comments. Comment at: clang-tidy/modernize/ModernizeTidyModule.cpp:59 @@ -57,2 +58,3 @@ CheckFactories.registerCheck("modernize-use-nullptr"); +CheckFactories.registerCheck("modernize-use-emplace"); CheckFactories.registerCheck("modern

Re: [PATCH] D20964: [clang-tidy] Add modernize-use-emplace

2016-06-20 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Looks almost good now, a few comments. You'd better await for comments from @alexfh or @sbenza before committing. Comment at: docs/clang-tidy/checks/modernize-use-emplace.rst

[PATCH] D21603: [include-fixer] Fix namespace after inserting a missing header.

2016-06-22 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a subscriber: cfe-commits. This is an initial version of fixing namespace issues by adding a missing namespace prefix to an unidentified symbol. This version only fixes the first discovered unidentified symbol In the long run, include-fixer should fix al

Re: [PATCH] D21603: [include-fixer] Fix namespace after inserting a missing header.

2016-06-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 61524. hokein added a comment. Fix a typo. http://reviews.llvm.org/D21603 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/SymbolIndexManager.cpp include-fixer/SymbolIndexManager.h include-fixer/find-all-symbo

[clang-tools-extra] r273849 - [clang-tidy] Don't run misc-definitions-in-headers check in failing TUs.

2016-06-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Jun 27 03:04:01 2016 New Revision: 273849 URL: http://llvm.org/viewvc/llvm-project?rev=273849&view=rev Log: [clang-tidy] Don't run misc-definitions-in-headers check in failing TUs. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org

Re: [PATCH] D21470: [clang-tidy] Don't run misc-definitions-in-headers check in failing TUs.

2016-06-27 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL273849: [clang-tidy] Don't run misc-definitions-in-headers check in failing TUs. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21470?vs=61092&id=61938#toc Repository: rL LLV

[PATCH] D21747: [clang-tidy] Warning enum unused using declarations.

2016-06-27 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D21747 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unused-using-decls.cpp ==

[clang-tools-extra] r273882 - [clang-tidy] Warning enum unused using declarations.

2016-06-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Jun 27 09:47:39 2016 New Revision: 273882 URL: http://llvm.org/viewvc/llvm-project?rev=273882&view=rev Log: [clang-tidy] Warning enum unused using declarations. Reviewers: alexfh, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://review

Re: [PATCH] D21747: [clang-tidy] Warning enum unused using declarations.

2016-06-27 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL273882: [clang-tidy] Warning enum unused using declarations. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21747?vs=61955&id=61966#toc Repository: rL LLVM http://reviews.ll

Re: [PATCH] D21603: [include-fixer] Fix namespace after inserting a missing header.

2016-06-28 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D21603#468717, @djasper wrote: > Sorry, I completely forgot about this. Will try to review today. Is this part > about the patch description accurate? Yes, the description is accurate. > Specifically, what needs to be implemented in vim to ma

[PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-06-29 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added subscribers: cfe-commits, Eugene.Zelenko. Fix PR28350. http://reviews.llvm.org/D21833 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unused-u

[PATCH] D21860: [ASTMatcher] Add a node matcher for EnumType.

2016-06-29 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: klimek. http://reviews.llvm.org/D21860 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Registry.c

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-06-29 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:22 @@ +21,3 @@ +namespace { +// FIXME: Move this node matcher to ASTMatcher. +const internal::VariadicDynCastAllOfMatcher enumType; Done in D21860. http://reviews.llvm

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-06-29 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 62278. hokein added a comment. Address review comments. http://reviews.llvm.org/D21833 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unused-using-decls.cpp ==

r274217 - [ASTMatcher] Add a node matcher for EnumType.

2016-06-30 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jun 30 02:50:01 2016 New Revision: 274217 URL: http://llvm.org/viewvc/llvm-project?rev=274217&view=rev Log: [ASTMatcher] Add a node matcher for EnumType. Reviewers: aaron.ballman Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D21860 Mod

Re: [PATCH] D21860: [ASTMatcher] Add a node matcher for EnumType.

2016-06-30 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274217: [ASTMatcher] Add a node matcher for EnumType. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21860?vs=62277&id=62340#toc Repository: rL LLVM http://reviews.llvm.org/

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-06-30 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 62354. hokein added a comment. enumType is already in ASTMatcher now. http://reviews.llvm.org/D21833 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unused-using-decls.cpp

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-06-30 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. hokein added a comment. http://reviews.llvm.org/D21833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-06-30 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/IncludeFixer.cpp:234 @@ +233,3 @@ + std::string MinimizedFilePath = minimizeInclude( + ((FilePath[0] == '"' || FilePath[0] == '<') ? FilePath + : "\"" + FileP

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-06-30 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 62383. hokein marked 4 inline comments as done. hokein added a comment. Address review comments. http://reviews.llvm.org/D21603 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/SymbolIndexManager.cpp include-fix

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-01 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 62473. hokein marked 5 inline comments as done. hokein added a comment. Fix review comments. http://reviews.llvm.org/D21603 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/SymbolIndexManager.cpp include-fixer/S

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-01 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/IncludeFixer.cpp:258 @@ +257,3 @@ + +// Query the symbol based on C++ name Lookup rules. +// Firstly, lookup the identifier with scoped namespace contexts; If fails, djasper wrote: > Could you add som

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-07-04 Thread Haojian Wu via cfe-commits
hokein added a comment. Friendly ping ;) http://reviews.llvm.org/D21833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r274496 - [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-07-04 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Jul 4 07:01:56 2016 New Revision: 274496 URL: http://llvm.org/viewvc/llvm-project?rev=274496&view=rev Log: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check. Summary: Fix PR28350. Reviewers: alexfh Subscribers: aaron.ballman, Eugene.Zelenko,

Re: [PATCH] D21833: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check.

2016-07-04 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274496: [clang-tidy] Fix more enum declaration cases in misc-unused-using-decls check. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21833?vs=62354&id=62668#toc Repository:

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-06 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 62849. hokein marked 2 inline comments as done. hokein added a comment. Address Ben's comments. http://reviews.llvm.org/D21603 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/SymbolIndexManager.cpp include-fixe

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-06 Thread Haojian Wu via cfe-commits
hokein added a comment. In http://reviews.llvm.org/D21603#475011, @bkramer wrote: > In the future I'd prefer to have patches like this split up in a part that > refactors and a part that contains the actual change. Having that in one > patch makes it really hard to review. Acknowledged. I'm s

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-07 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63043. hokein marked 3 inline comments as done. hokein added a comment. - Address Daniel's comments. - Add tests for nested classes. http://reviews.llvm.org/D21603 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.h include-fixer/

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-07 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: unittests/include-fixer/IncludeFixerTest.cpp:144 @@ -141,1 +143,3 @@ +runIncludeFixer("a::b::foo bar;\n", +/*FixNamespaceQualifiers=*/true, IncludePath)); djasper wrote: > I think

[clang-tools-extra] r274832 - [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 8 04:10:29 2016 New Revision: 274832 URL: http://llvm.org/viewvc/llvm-project?rev=274832&view=rev Log: [include-fixer] Add missing namespace qualifiers after inserting a missing header. Summary: This is an initial version of fixing namespace issues by adding missing

Re: [PATCH] D21603: [include-fixer] Add missing namespace qualifiers after inserting a missing header.

2016-07-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274832: [include-fixer] Add missing namespace qualifiers after inserting a missing… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21603?vs=63043&id=63189#toc Repository: rL

[PATCH] D22127: [include-fixer] Don't add qualifiers to symbols which have global scope operator.

2016-07-08 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D22127 Files: include-fixer/IncludeFixerContext.h unittests/include-fixer/IncludeFixerTest.cpp Index: unittests/include-fixer/IncludeFixerTest.cpp =

Re: [PATCH] D22100: [clang-rename] fix typo in Python script for Vim integration

2016-07-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. http://reviews.llvm.org/D22100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang-tools-extra] r274839 - [clang-rename] fix typo in Python script for Vim integration

2016-07-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 8 07:05:06 2016 New Revision: 274839 URL: http://llvm.org/viewvc/llvm-project?rev=274839&view=rev Log: [clang-rename] fix typo in Python script for Vim integration Patch by Kirill Bobyrev! Reviewers: kimgr, alexfh, bkramer, ioeric, hokein Subscribers: cfe-commits

Re: [PATCH] D22100: [clang-rename] fix typo in Python script for Vim integration

2016-07-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274839: [clang-rename] fix typo in Python script for Vim integration (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22100?vs=63101&id=63203#toc Repository: rL LLVM http://re

[clang-tools-extra] r274845 - [include-fixer] Pull out Context implementation code to a cpp file.

2016-07-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 8 08:11:38 2016 New Revision: 274845 URL: http://llvm.org/viewvc/llvm-project?rev=274845&view=rev Log: [include-fixer] Pull out Context implementation code to a cpp file. Added: clang-tools-extra/trunk/include-fixer/IncludeFixerContext.cpp Modified: clang-too

[clang-tools-extra] r274848 - [include-fixer] Don't add qualifiers to symbols which have global scope operator.

2016-07-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 8 09:28:43 2016 New Revision: 274848 URL: http://llvm.org/viewvc/llvm-project?rev=274848&view=rev Log: [include-fixer] Don't add qualifiers to symbols which have global scope operator. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: http://revie

Re: [PATCH] D22127: [include-fixer] Don't add qualifiers to symbols which have global scope operator.

2016-07-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274848: [include-fixer] Don't add qualifiers to symbols which have global scope… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22127?vs=63221&id=63223#toc Repository: rL LLV

Re: [PATCH] D22127: [include-fixer] Don't add qualifiers to symbols which have global scope operator.

2016-07-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63221. hokein added a comment. Rebase to master. http://reviews.llvm.org/D22127 Files: include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h unittests/include-fixer/IncludeFixerTest.cpp Index: unittests/include-fixer/IncludeFixerTe

[PATCH] D22154: [clang-tidy] Pass absolute path to OptionsProvider::getOptions/getRawOptions.

2016-07-08 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. Although there is no guarantee of getOptions/getRawOptions receiving an absolute path, we try to make it if possible. So FileOptionProvider subclasses don't have to convert the path to an absolut

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

2016-07-11 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cppcoreguidelines/SlicingCheck.cpp:48 @@ +47,3 @@ + + // Assignement slicing: "a = b;" and "a = std::move(b);" variants. + const auto SlicesObjectInAssignment = Looks like you are missing some cases here, like

[clang-tools-extra] r275051 - [clang-tidy] Pass absolute path to OptionsProvider::getOptions/getRawOptions.

2016-07-11 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Jul 11 02:47:04 2016 New Revision: 275051 URL: http://llvm.org/viewvc/llvm-project?rev=275051&view=rev Log: [clang-tidy] Pass absolute path to OptionsProvider::getOptions/getRawOptions. Summary: Although there is no guarantee of getOptions/getRawOptions receiving an absol

Re: [PATCH] D22154: [clang-tidy] Pass absolute path to OptionsProvider::getOptions/getRawOptions.

2016-07-11 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275051: [clang-tidy] Pass absolute path to OptionsProvider::getOptions/getRawOptions. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22154?vs=63282&id=63469#toc Repository: r

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

2016-07-12 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cppcoreguidelines/SlicingCheck.cpp:48 @@ +47,3 @@ + + // Assignement slicing: "a = b;" and "a = std::move(b);" variants. + const auto SlicesObjectInAssignment = courbet wrote: > hokein wrote: > > Looks like yo

[PATCH] D22260: [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully templated function.

2016-07-12 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: alexfh. hokein added a subscriber: cfe-commits. http://reviews.llvm.org/D22260 Files: clang-tidy/misc/DefinitionsInHeadersCheck.cpp test/clang-tidy/misc-definitions-in-headers.hpp Index: test/clang-tidy/misc-definitions-in-headers.hpp ==

Re: [PATCH] D22260: [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully templated function.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein added a comment. @aaron.ballman, could you take a look on this patch? Alex is on vocation these days. http://reviews.llvm.org/D22260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D22263: [clang-tidy] Fix syntax error in modernize-use-emplace.rst

2016-07-13 Thread Haojian Wu via cfe-commits
hokein added a subscriber: hokein. hokein added a comment. Someone fixed this error r275254 several hours ago. > List of Clang-tidy checks was not updated for long time (I still don't see > modernize-use-emplace). May be documentation contains other mistakes? Are the clang-tools-extra document

[PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. The patch extends include-fixer's "-output-headers", and "-insert-headers" command line options to make it dump more information (e.g. QualifiedSymbol), so that vim-integration can add missing q

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63789. hokein added a comment. Remove a debug print statement. http://reviews.llvm.org/D22299 Files: include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cpp include-fixer/tool/clang-include-f

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63796. hokein marked 6 inline comments as done. hokein added a comment. Address review comments. http://reviews.llvm.org/D22299 Files: include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cpp

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: include-fixer/tool/ClangIncludeFixer.cpp:252 @@ +251,3 @@ +// Only accept an unique header. +bool IsUniqueHeader = +std::adjacent_find(HeaderInfos.begin(), HeaderInfos.end(), You are right. `adja

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63799. hokein marked 2 inline comments as done. hokein added a comment. Add comments for std::equal. http://reviews.llvm.org/D22299 Files: include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cp

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/ClangIncludeFixer.cpp:252 @@ +251,3 @@ +assert(!HeaderInfos.empty()); +// Only accept an unique header. +bool IsUniqueHeader = std::equal( bkramer wrote: > In that case adjacent_find was the

[clang-tools-extra] r275263 - [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully templated function.

2016-07-13 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jul 13 08:55:29 2016 New Revision: 275263 URL: http://llvm.org/viewvc/llvm-project?rev=275263&view=rev Log: [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully templated function. Reviewers: alexfh, aaron.ballman Subscribers: cfe-commits Differential

Re: [PATCH] D22260: [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully templated function.

2016-07-13 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275263: [clang-tidy] Fix misc-definitions-in-headers misplaced fixing to fully… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22260?vs=63649&id=63802#toc Repository: rL LLVM

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63808. hokein marked an inline comment as done. hokein added a comment. Fix nits. http://reviews.llvm.org/D22299 Files: include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangIncludeFixer.cpp include-fixer/t

[clang-tools-extra] r275279 - [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jul 13 11:43:54 2016 New Revision: 275279 URL: http://llvm.org/viewvc/llvm-project?rev=275279&view=rev Log: [include-fixer] Implement adding missing namespace qualifiers in vim integration. Summary: The patch extends include-fixer's "-output-headers", and "-insert-header

Re: [PATCH] D22299: [include-fixer] Implement adding missing namespace qualifiers in vim integration.

2016-07-13 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275279: [include-fixer] Implement adding missing namespace qualifiers in vim… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22299?vs=63808&id=63818#toc Repository: rL LLVM

[PATCH] D22343: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

2016-07-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. The judgement that checks whether the fully-qualified name has scoped qualifiers prefix is incorrect. Should always check whether the first matched postion is the beginning position. http://re

Re: [PATCH] D22343: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

2016-07-14 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/IncludeFixerContext.cpp:46 @@ +45,3 @@ + bool HasScopedQualifiersPrefix = + FullyQualifiedName.find(SymbolScopedQualifiers) == 0; + if (!HasScopedQualifiersPrefix) bkramer wrote: > StringRef(FullyQuali

Re: [PATCH] D22343: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

2016-07-14 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 63941. hokein marked an inline comment as done. hokein added a comment. Use StringRef::startwith. http://reviews.llvm.org/D22343 Files: include-fixer/IncludeFixerContext.cpp unittests/include-fixer/IncludeFixerTest.cpp Index: unittests/include-fixer/Inc

Re: [PATCH] D22343: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

2016-07-14 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275386: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D22343?vs=63941&id=63942#toc Repository:

[clang-tools-extra] r275386 - [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers.

2016-07-14 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Jul 14 04:39:12 2016 New Revision: 275386 URL: http://llvm.org/viewvc/llvm-project?rev=275386&view=rev Log: [include-fixer] Correct an incorrecst judgement about prefix scoped qualifiers. Summary: The judgement that checks whether the fully-qualified name has scoped quali

[PATCH] D22351: [include-fixer] Move curosr to #include line in vim after inserting a missing header.

2016-07-14 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. A small improvement: for only one suggested header, user don't have to type ENTER manually after running the python script. https://reviews.llvm.org/D22351 Files: include-fixer/tool/clang-in

<    15   16   17   18   19   20   21   22   23   24   >