Re: [PATCH] D22507: Clang-tidy - Enum misuse check

2016-07-22 Thread Haojian Wu via cfe-commits
hokein added a comment. Seems that you only uploaded the diff part, I only see the updated part of your patch now, and can't see the whole patch now (The review page says "Context not available"), could you upload the whole patch again? Comment at: docs/clang-tidy/checks/misc

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

2016-07-26 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added reviewers: alexfh, djasper. hokein added a subscriber: cfe-commits. The check doesn't mark the template argument as used when the template argument is a template. https://reviews.llvm.org/D22803 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added a comment. Nice! Thanks very much for making emacs integration. I'm not familiar with elisp, but it looks almost good to me. Just a few nits. Comment at: include-fixer/tool/clang-include-fixer.el:8 @@ +7,3 @@ + +;; This package allows to envoke the 'clnag-include-f

[PATCH] D22812: [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. In missing complete type cases, we don't know where to add the qualifiers. https://reviews.llvm.org/D22812 Files: include-fixer/IncludeFixer.cpp unittests/include-fixer/IncludeFixerTest.cp

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.el:126 @@ +125,3 @@ + (setq header-infos (plist-get include-fixer-context :HeaderInfos)) + (setq symbol (plist-get include-fixer-context :SymbolIdentifier)) + (setq symbol-offset (plist-get (plist-

[clang-tools-extra] r276761 - [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Jul 26 11:32:42 2016 New Revision: 276761 URL: http://llvm.org/viewvc/llvm-project?rev=276761&view=rev Log: [include-fixer] Don't add qualifiers in missing complete type cases. Summary: In missing complete type cases, we don't know where to add the qualifiers. Reviewers

Re: [PATCH] D22812: [include-fixer] Don't add qualifiers in missing complete type cases.

2016-07-26 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276761: [include-fixer] Don't add qualifiers in missing complete type cases. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22812?vs=65531&id=65544#toc Repository: rL LLVM

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-26 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/tool/clang-include-fixer.el:32 @@ +31,3 @@ + "google3" + "/usr/local/google/home/massberg/Emacs_Lisp/include-fixer/clang-include-fixer input format." + :group 'clang-include-fixer You forgot to remove th

Re: [PATCH] D22805: [clang-include-fixer] Added Emacs integration for clang-include-fixer.

2016-07-27 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. It looks good to me now, a few comments. Let's wait to see whether @bkramer has any further comments. Comment at: docs/include-fixer.rst:81 @@ +80,3 @@ +To run `clang-includ

[clang-tools-extra] r276861 - [clang-tidy] Add cppcoreguidelines-slicing entry to list.rst.

2016-07-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jul 27 08:11:50 2016 New Revision: 276861 URL: http://llvm.org/viewvc/llvm-project?rev=276861&view=rev Log: [clang-tidy] Add cppcoreguidelines-slicing entry to list.rst. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Modified: clang-tools-extra/tru

[clang-tools-extra] r276862 - [include-fixer] Update document.

2016-07-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jul 27 08:17:16 2016 New Revision: 276862 URL: http://llvm.org/viewvc/llvm-project?rev=276862&view=rev Log: [include-fixer] Update document. Modified: clang-tools-extra/trunk/docs/include-fixer.rst Modified: clang-tools-extra/trunk/docs/include-fixer.rst URL: http:/

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

2016-07-29 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: klimek. hokein added a subscriber: cfe-commits. Herald added a subscriber: klimek. https://reviews.llvm.org/D22957 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h include/clang/ASTMatchers/ASTMatchersInt

r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 08:57:27 2016 New Revision: 277142 URL: http://llvm.org/viewvc/llvm-project?rev=277142&view=rev Log: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: ht

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

2016-07-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277142: [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22957?vs=66094&id=66119#toc Repository: rL LLV

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

2016-07-29 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: klimek. hokein added a subscriber: cfe-commits. Herald added a subscriber: klimek. https://reviews.llvm.org/D22963 Files: docs/LibASTMatchersReference.html include/clang/AST/ASTTypeTraits.h include/clang/ASTMatchers/ASTMatchers.h lib/

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

2016-07-29 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 66129. hokein marked an inline comment as done. hokein added a comment. Fix code style. https://reviews.llvm.org/D22963 Files: docs/LibASTMatchersReference.html include/clang/AST/ASTTypeTraits.h include/clang/ASTMatchers/ASTMatchers.h lib/AST/ASTType

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

2016-07-29 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 66131. hokein added a comment. Use new ast matchers to simplify the code. Updating D22803: [clang-tidy] Fix an unused-using-decl false positive about template arguments in ===

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

2016-07-29 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:84-87 @@ -80,4 +83,6 @@ if (const auto *Used = Result.Nodes.getNodeAs("used")) { -if (const auto *Specialization = -dyn_cast(Used)) +if (const auto *FD = dyn_cast(

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
No, this is not templateName patch. The templateName one is in r277155. On Fri, Jul 29, 2016 at 4:45 PM, Benjamin Kramer wrote: > On Fri, Jul 29, 2016 at 3:57 PM, Haojian Wu via cfe-commits > wrote: > > Author: hokein > > Date: Fri Jul 29 08:57:27 2016 > > New Revi

r277155 - [ASTMatcher] Add templateName matcher.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 10:45:11 2016 New Revision: 277155 URL: http://llvm.org/viewvc/llvm-project?rev=277155&view=rev Log: [ASTMatcher] Add templateName matcher. Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D22963 Modified: cf

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

2016-07-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277155: [ASTMatcher] Add templateName matcher. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D22963?vs=66129&id=66130#toc Repository: rL LLVM https://reviews.llvm.org/D2296

r277174 - Fix a typo in document.

2016-07-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Jul 29 12:30:13 2016 New Revision: 277174 URL: http://llvm.org/viewvc/llvm-project?rev=277174&view=rev Log: Fix a typo in document. Modified: cfe/trunk/docs/LibASTMatchersReference.html cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Modified: cfe/trunk/docs/Li

Re: r277142 - [ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.

2016-07-29 Thread Haojian Wu via cfe-commits
ateName one is in r277155. > > > > On Fri, Jul 29, 2016 at 4:45 PM, Benjamin Kramer > > wrote: > >> > >> On Fri, Jul 29, 2016 at 3:57 PM, Haojian Wu via cfe-commits > >> wrote: > >> > Author: hokein > >> > Date: Fri Jul 29 08:57:27 2016

Re: [PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy

2016-08-01 Thread Haojian Wu via cfe-commits
hokein added a comment. Looks like the dependency of this patch https://reviews.llvm.org/D21962 got reverted by some reasons. Comment at: clang-tidy/mpi/BufferDerefCheck.cpp:63 @@ +62,3 @@ +if (FuncClassifier.isReduceType(Identifier)) { + addBuffer(0); + addBuffer

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

2016-08-01 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-rename/tool/clang-rename.el:16 @@ +15,3 @@ + +(defvar clang-rename-binary "clang-rename") + I think we should make `clang-rename` binary path configurable by making it a custom variable (using `defcustom`). ===

[PATCH] D23023: [include-fixer] Correct nested class search for identifiers with scoped information

2016-08-01 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. include-fixer will firstly try to use scoped namespace context information to search identifier. However, in some cases, it's unsafe to do nested class search, because it might treat the identif

Re: [PATCH] D23045: [Include-fixer] Install executables and support scripts

2016-08-02 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! Comment at: include-fixer/find-all-symbols/tool/CMakeLists.txt:22 @@ +21,2 @@ + DESTINATION share/clang + COMPONENT find-all-symbols) I think

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

2016-08-02 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: clang-rename/tool/CMakeLists.txt:14 @@ +13,3 @@ + +install(PROGRAMS clang-rename.el + DESTINATION share/clang Also include th

Re: [PATCH] D23023: [include-fixer] Correct nested class search for identifiers with scoped information

2016-08-02 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 66452. hokein added a comment. Address review comments. https://reviews.llvm.org/D23023 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixerContext.cpp include-fixer/SymbolIndexManager.cpp include-fixer/SymbolIndexManager.h unittests/in

[clang-tools-extra] r277442 - [include-fixer] Correct nested class search for identifiers with scoped information

2016-08-02 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 2 05:43:10 2016 New Revision: 277442 URL: http://llvm.org/viewvc/llvm-project?rev=277442&view=rev Log: [include-fixer] Correct nested class search for identifiers with scoped information Summary: include-fixer will firstly try to use scoped namespace context informa

Re: [PATCH] D23023: [include-fixer] Correct nested class search for identifiers with scoped information

2016-08-02 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277442: [include-fixer] Correct nested class search for identifiers with scoped… (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23023?vs=66452&id=66454#toc Repository: rL LL

[clang-tools-extra] r277444 - [clang-tidy] Fix an unused-using-decl false positive about template arguments in

2016-08-02 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 2 06:26:35 2016 New Revision: 277444 URL: http://llvm.org/viewvc/llvm-project?rev=277444&view=rev Log: [clang-tidy] Fix an unused-using-decl false positive about template arguments in function call expression. Summary: The check doesn't mark the template argument as

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

2016-08-02 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 rL277444: [clang-tidy] Fix an unused-using-decl false positive about template arguments in (authored by hokein). Changed prior to commit: https://reviews.llvm.org/

Re: [PATCH] D23135: [clang-tidy] misc-argument-comment non-strict mode

2016-08-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/ArgumentCommentCheck.cpp:29 @@ +28,3 @@ +void ArgumentCommentCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { + Options.store(Opts, "StrictMode", StrictMode); +} I think we should add a `StringMode

Re: [PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy

2016-08-05 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/mpi/BufferDerefCheck.cpp:87 @@ +86,3 @@ +// Capture the depth and types of indirections for the passed buffer. +while (true) { + if (BufferType->isPointerType()) { check whether `BufferType` is `nul

[PATCH] D23199: [include-fixer] Correct some header mappings.

2016-08-05 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/D23199 Files: include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp Index: include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp ==

[clang-tools-extra] r277811 - [include-fixer] Correct some header mappings.

2016-08-05 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Aug 5 06:54:34 2016 New Revision: 277811 URL: http://llvm.org/viewvc/llvm-project?rev=277811&view=rev Log: [include-fixer] Correct some header mappings. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23199 Modified: c

Re: [PATCH] D23199: [include-fixer] Correct some header mappings.

2016-08-05 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277811: [include-fixer] Correct some header mappings. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23199?vs=66926&id=66930#toc Repository: rL LLVM https://reviews.llvm.or

Re: [PATCH] D23257: Fix clang-tidy crash when a single fix is applied on multiple files.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.h:66 @@ -66,1 +65,3 @@ + // Fixes grouped by file path. + std::map Fix; SmallVector Notes; Use llvm::StringMap here? https://reviews.llvm.org/D23257

[PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a reviewer: bkramer. hokein added a subscriber: cfe-commits. Previously, if we pass multiple files or a file pattern (e.g. /path/to/*.cc) to include-fixer, include-fixer will apply all replacements to the first argument, which probably causes crashes. Wi

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 67171. hokein added a comment. Remove unneeded header. https://reviews.llvm.org/D23266 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/C

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 67172. hokein added a comment. Add missing tests. https://reviews.llvm.org/D23266 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext.cpp include-fixer/IncludeFixerContext.h include-fixer/tool/ClangI

Re: [PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy

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

Re: [PATCH] D23257: Fix clang-tidy crash when a single fix is applied on multiple files.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/Inputs/modernize-pass-by-value/header-with-fix.h:1 @@ +1,2 @@ +#include + Usually test should not use STL headers as it relies on the system headers. You don't have to use std::string to reproduce the cra

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-08 Thread Haojian Wu via cfe-commits
hokein added a comment. > Can you add a lit test for this? We should've added that earlier :| I forgot to upload the test first time. But I have already uploaded it, see `multiple_fixes.cpp` Comment at: include-fixer/IncludeFixerContext.h:78 @@ -72,1 +77,3 @@ + /// \brief

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

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

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 67294. hokein added a comment. Update comments, don't mention absolute file path since this is no guarantee about that. https://reviews.llvm.org/D23266 Files: include-fixer/IncludeFixer.cpp include-fixer/IncludeFixer.h include-fixer/IncludeFixerContext

[clang-tools-extra] r278102 - [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Aug 9 03:26:19 2016 New Revision: 278102 URL: http://llvm.org/viewvc/llvm-project?rev=278102&view=rev Log: [include-fixer] Support processing multiple files in one run. Summary: Previously, if we pass multiple files or a file pattern (e.g. /path/to/*.cc) to include-fixer

Re: [PATCH] D23266: [include-fixer] Support processing multiple files in one run.

2016-08-09 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278102: [include-fixer] Support processing multiple files in one run. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D23266?vs=67294&id=67296#toc Repository: rL LLVM https:/

Re: [PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy

2016-08-10 Thread Haojian Wu via cfe-commits
hokein added a comment. Do you have commit access now? https://reviews.llvm.org/D22729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23427: [Clang-tidy] Comparison Misuse

2016-08-12 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/ComparisonMisuseCheck.cpp:31 @@ +30,3 @@ + unless(anyOf(hasOperatorName("=="), hasOperatorName("!="))), + hasEitherOperand(ignoringImpCasts(gnuNullExpr( + .bind("compareToNull"), -

Re: [PATCH] D23421: [Clang-tidy] CERT-MSC53-CPP (checker for std namespace modification)

2016-08-12 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cert/DontModifyStdNamespaceCheck.cpp:20 @@ +19,3 @@ + +void DontModifyStdNamespaceCheck::registerMatchers(MatchFinder *Finder) { + Finder->addMatcher(namespaceDecl(unless(isExpansionInSystemHeader()), This chec

Re: [PATCH] D23423: [Clang-tidy] Comparison Function Address

2016-08-12 Thread Haojian Wu via cfe-commits
hokein added a comment. > This check looks like specific case of https://reviews.llvm.org/D23427. May > be they should be merged? +1, I think this check can be merged there. Comment at: test/clang-tidy/misc-comparison-function-address.cpp:20 @@ +19,3 @@ + // CHECK-MESSAGES:

Re: [PATCH] D16764: Move incorrect-roundings to upstream.

2016-02-01 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 46539. hokein added a comment. Address Alex's comments. http://reviews.llvm.org/D16764 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/IncorrectRoundings.cpp clang-tidy/misc/IncorrectRoundings.h clang-tidy/misc/MiscTidyModule.cpp docs/clang-t

Re: [PATCH] D16764: Move incorrect-roundings to upstream.

2016-02-01 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. Comment at: clang-tidy/misc/IncorrectRoundings.cpp:39 @@ +38,3 @@ +namespace tidy { +void IncorrectRoundings::registerMatchers(MatchFinder *MatchFinder) { + // Match a floating literal with value 0.5. Done. The `ASTMatcher

Re: [PATCH] D16717: [clang-tidy] Add non-constant references in function parameters check.

2016-02-02 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 46628. hokein added a comment. Address comments. http://reviews.llvm.org/D16717 Files: clang-tidy/google/CMakeLists.txt clang-tidy/google/GoogleTidyModule.cpp clang-tidy/google/NonConstReferences.cpp clang-tidy/google/NonConstReferences.h docs/clan

Re: [PATCH] D16717: [clang-tidy] Add non-constant references in function parameters check.

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

[clang-tools-extra] r259643 - [clang-tidy] bug fix: Don't warn on partial template specialization in `misc-definitions-in-headers` check.

2016-02-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Feb 3 06:10:27 2016 New Revision: 259643 URL: http://llvm.org/viewvc/llvm-project?rev=259643&view=rev Log: [clang-tidy] bug fix: Don't warn on partial template specialization in `misc-definitions-in-headers` check. Reviewers: alexfh Subscribers: cfe-commits Differenti

Re: [PATCH] D16578: [clang-tidy] bug fix: Don't warn on partial template specialization in `misc-definitions-in-headers` check.

2016-02-03 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259643: [clang-tidy] bug fix: Don't warn on partial template specialization in `misc… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16578?vs=45984&id=46767#toc Repository: r

Re: [PATCH] D16578: [clang-tidy] bug fix: Don't warn on partial template specialization in `misc-definitions-in-headers` check.

2016-02-03 Thread Haojian Wu via cfe-commits
hokein added a comment. @alexfh, I get commit access, and have committed the patch by myself (Seems it is a successful commit :D ). Repository: rL LLVM http://reviews.llvm.org/D16578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[clang-tools-extra] r259668 - [clang-tidy] Fix a crash issue on misc-virtual-near-miss check.

2016-02-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Feb 3 11:21:44 2016 New Revision: 259668 URL: http://llvm.org/viewvc/llvm-project?rev=259668&view=rev Log: [clang-tidy] Fix a crash issue on misc-virtual-near-miss check. Summary: The crash is caused by triggering a Assertion failed in DeclCXX.h when the check detects no

Re: [PATCH] D16854: [clang-tidy] Fix a crash issue on misc-virtual-near-miss check.

2016-02-03 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259668: [clang-tidy] Fix a crash issue on misc-virtual-near-miss check. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16854?vs=46787&id=46800#toc Repository: rL LLVM http:/

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 46897. hokein added a comment. Address Alex's comments. http://reviews.llvm.org/D16113 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/google/GlobalNamesInHeadersCheck.cpp clang-tidy/google/GlobalNamesInHeadersCheck.h clang-tidy/g

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-04 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. Comment at: clang-tidy/utils/HeaderFileExtensionsUtils.cpp:51 @@ +50,3 @@ + HeaderFileExtensions.clear(); + for (llvm::StringRef Suffix : Suffixes) { +llvm::StringRef Extension = Suffix.trim(); Thanks for the explanat

Re: [PATCH] D16882: [clang-tidy] More friendly warning in "google-runtime-references" when meeting an unnamed function parameter.

2016-02-04 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259787: [clang-tidy] More friendly warning in "google-runtime-references" when… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16882?vs=46902&id=46906#toc Repository: rL LLVM

[clang-tools-extra] r259787 - [clang-tidy] More friendly warning in "google-runtime-references" when meeting an unnamed function parameter.

2016-02-04 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Feb 4 08:06:49 2016 New Revision: 259787 URL: http://llvm.org/viewvc/llvm-project?rev=259787&view=rev Log: [clang-tidy] More friendly warning in "google-runtime-references" when meeting an unnamed function parameter. Reviewers: alexfh Subscribers: cfe-commits Differen

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/utils/HeaderFileExtensionsUtils.cpp:46 @@ +45,3 @@ +bool parseHeaderFileExtensions(llvm::StringRef AllHeaderFileExtensions, + HeaderFileExtensionsSet &HeaderFileExtensions, +

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 46923. hokein added a comment. Update. http://reviews.llvm.org/D16113 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/google/GlobalNamesInHeadersCheck.cpp clang-tidy/google/GlobalNamesInHeadersCheck.h clang-tidy/google/UnnamedName

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-04 Thread Haojian Wu via cfe-commits
hokein marked 2 inline comments as done. hokein added a comment. http://reviews.llvm.org/D16113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r259879 - [clang-tdiy] Add header file extension configuration support.

2016-02-05 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Feb 5 05:23:59 2016 New Revision: 259879 URL: http://llvm.org/viewvc/llvm-project?rev=259879&view=rev Log: [clang-tdiy] Add header file extension configuration support. Summary: * Add a `HeaderFileExtensions` check option in misc-definitions-in-headers, google-build-nam

Re: [PATCH] D16113: [clang-tdiy] Add header file extension configuration support.

2016-02-05 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL259879: [clang-tdiy] Add header file extension configuration support. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16113?vs=46923&id=47007#toc Repository: rL LLVM http://r

Re: [PATCH] D16926: [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert.

2016-02-05 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 47019. hokein added a comment. Fix a typo in doc. http://reviews.llvm.org/D16926 Files: clang-tidy/modernize/LoopConvertUtils.cpp docs/clang-tidy/checks/modernize-loop-convert.rst test/clang-tidy/Inputs/modernize-loop-convert/structures.h test/clang-

Re: [PATCH] D16764: [clang-tidy] Move incorrect-roundings to upstream.

2016-02-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 47167. hokein marked 2 inline comments as done. hokein added a comment. Update test. http://reviews.llvm.org/D16764 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/IncorrectRoundings.cpp clang-tidy/misc/IncorrectRoundings.h clang-tidy/misc/Misc

[clang-tools-extra] r260084 - [clang-tidy] Move incorrect-roundings to upstream.

2016-02-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 8 04:16:13 2016 New Revision: 260084 URL: http://llvm.org/viewvc/llvm-project?rev=260084&view=rev Log: [clang-tidy] Move incorrect-roundings to upstream. Summary: This is originally implemented by Jacques Pienaar. Reviewers: alexfh Subscribers: cfe-commits, jpienaa

Re: [PATCH] D16764: [clang-tidy] Move incorrect-roundings to upstream.

2016-02-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260084: [clang-tidy] Move incorrect-roundings to upstream. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16764?vs=47167&id=47169#toc Repository: rL LLVM http://reviews.llvm

Re: [PATCH] D16926: [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert.

2016-02-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260107: [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16926?vs=47019&id=47204#toc Repository:

Re: [PATCH] D16987: [clang-tidy] Correct IncorrectRoundings namespace.

2016-02-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260105: [clang-tidy] Correct IncorrectRoundings namespace. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16987?vs=47199&id=47202#toc Repository: rL LLVM http://reviews.llvm

[clang-tools-extra] r260108 - [clang-tidy] Some improvements in 'misc-definitions-in-headers' check.

2016-02-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 8 10:05:39 2016 New Revision: 260108 URL: http://llvm.org/viewvc/llvm-project?rev=260108&view=rev Log: [clang-tidy] Some improvements in 'misc-definitions-in-headers' check. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D

[clang-tools-extra] r260107 - [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert.

2016-02-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 8 09:59:42 2016 New Revision: 260107 URL: http://llvm.org/viewvc/llvm-project?rev=260107&view=rev Log: [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.ll

[clang-tools-extra] r260105 - [clang-tidy] Correct IncorrectRoundings namespace.

2016-02-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Feb 8 09:54:30 2016 New Revision: 260105 URL: http://llvm.org/viewvc/llvm-project?rev=260105&view=rev Log: [clang-tidy] Correct IncorrectRoundings namespace. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16987 Modified:

Re: [PATCH] D16979: [clang-tidy] Some improvements in 'misc-definitions-in-headers' check.

2016-02-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260108: [clang-tidy] Some improvements in 'misc-definitions-in-headers' check. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D16979?vs=47178&id=47205#toc Repository: rL LLVM

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/SuspiciousSemicolonCheck.cpp:23 @@ +22,3 @@ + Finder->addMatcher( + stmt(anyOf(ifStmt(hasThen(nullStmt().bind("semi"))), + forStmt(hasBody(nullStmt().bind("semi"))), Looks like this ch

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/misc-suspicious-semicolon.rst:35 @@ +34,3 @@ + +if(x >= y); +x -= y; The doc needs to be updated. With your latest patch, this is also a warning case. http://reviews.llvm.org/D16535 ___

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-10 Thread Haojian Wu via cfe-commits
hokein added a comment. LGTM, thanks for working on this! Ping @alexfh http://reviews.llvm.org/D16535 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17069: [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check.

2016-02-11 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 47609. hokein added a comment. Address review comment. http://reviews.llvm.org/D17069 Files: clang-tidy/readability/BracesAroundStatementsCheck.cpp test/clang-tidy/readability-braces-around-statements-assert-failure.cpp Index: test/clang-tidy/readabilit

Re: [PATCH] D17069: [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check.

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

Re: [PATCH] D17069: [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check.

2016-02-11 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260505: [clang-tidy] Fix an assert failure in 'readability-braces-around-statements'… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17069?vs=47609&id=47610#toc Repository: r

[clang-tools-extra] r260505 - [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check.

2016-02-11 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Feb 11 03:57:55 2016 New Revision: 260505 URL: http://llvm.org/viewvc/llvm-project?rev=260505&view=rev Log: [clang-tidy] Fix an assert failure in 'readability-braces-around-statements' check. Summary: The check will trigger a assert failure("CondEndLoc.isValid") when che

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-11 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/readability-braces-around-statements-assert-failure.cpp:13 @@ +12,3 @@ + std::vector e; + for (typename std::vector::const_reverse_iterator iter = e.begin(), + end2 =

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-12 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 47795. hokein added a comment. Make test ignore all compliation errors. http://reviews.llvm.org/D17134 Files: clang-tidy/readability/BracesAroundStatementsCheck.cpp test/clang-tidy/readability-braces-around-statements-assert-failure.cpp Index: test/clan

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-12 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: test/clang-tidy/readability-braces-around-statements-assert-failure.cpp:16 @@ -6,2 +15,2 @@ } } > Interesting. Does creduce fail to further reduce the test? I reduce the test case manually. Now I use Fil

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-15 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 47959. hokein marked an inline comment as done. hokein added a comment. Minimize test case. http://reviews.llvm.org/D17134 Files: clang-tidy/readability/BracesAroundStatementsCheck.cpp test/clang-tidy/readability-braces-around-statements-assert-failure.c

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-15 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: test/clang-tidy/readability-braces-around-statements-assert-failure.cpp:1 @@ -1,2 +1,2 @@ -// RUN: %check_clang_tidy %s readability-braces-around-statements %t +// RUN: clang-tidy -checks='-*,readability-braces-around-statement

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-16 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48057. hokein marked an inline comment as done. hokein added a comment. Add a note in testcase. http://reviews.llvm.org/D17134 Files: clang-tidy/readability/BracesAroundStatementsCheck.cpp test/clang-tidy/readability-braces-around-statements-assert-failu

[clang-tools-extra] r260952 - [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Feb 16 04:31:33 2016 New Revision: 260952 URL: http://llvm.org/viewvc/llvm-project?rev=260952&view=rev Log: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check. Reviewers: alexfh Subscribers: cfe-commits Differential Revision:

Re: [PATCH] D17134: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around-statements` check.

2016-02-16 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260952: [clang-tidy] Fix an assert failure of ForStmt in `readability-braces-around… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17134?vs=48057&id=48058#toc Repository: rL

[clang-tools-extra] r260953 - [clang-tidy] Fix an assert failure in `modernize-loop-convert`.

2016-02-16 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue Feb 16 04:36:51 2016 New Revision: 260953 URL: http://llvm.org/viewvc/llvm-project?rev=260953&view=rev Log: [clang-tidy] Fix an assert failure in `modernize-loop-convert`. Summary: The test code will trigger following an assert failure: assert.h assertion failed at LoopC

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-19 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48463. hokein added a comment. - Add lit test. - Address review comments. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/Inputs/compil

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-19 Thread Haojian Wu via cfe-commits
hokein marked 2 inline comments as done. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:343 @@ +342,3 @@ + auto WorkingDir = Info.getSourceManager() +.getFileManager().getVirtualFileSystem() +->getCurrentWorkingD

Re: [PATCH] D17387: Add check for CERT FLP30-C

2016-02-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 with one nit. Comment at: test/clang-tidy/cert-flp30-c.c:6 @@ +5,3 @@ +void func(void) { + // CHECK-MESSAGES: :[[@LINE+1]]:37: warning: loop induction expression should

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