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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48657. hokein marked an inline comment as done. hokein added a comment. - Address review comments. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein marked 4 inline comments as done. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:120 @@ +119,3 @@ + bool IsWarningAsError, + const std::string &BuildDirectory) +: BuildDirectory(std::move(BuildDirectory

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48682. hokein marked an inline comment as done. hokein added a comment. - Don't save BuildDirectory for every error in each check. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsu

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48683. hokein added a comment. Some cleanup. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h clang-tidy/tool/ClangTidyMain.cpp

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48684. hokein added a comment. Remove an extra blank line. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h clang-tidy/tool/Cla

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48686. hokein marked an inline comment as done. hokein added a comment. Address one comment. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnost

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

2016-02-22 Thread Haojian Wu via cfe-commits
hokein marked 2 inline comments as done. Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:122 @@ -121,3 +121,3 @@ IsWarningAsError(IsWarningAsError) {} // Returns true if GlobList starts with the negative indicator ('-'), removes it Done. Now ther

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

2016-02-24 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48924. hokein added a comment. Update: - Update test to apply multiple files and fixes. - Make it work with multiple files. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsumer.cp

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49027. hokein marked an inline comment as done. hokein added a comment. Make apply-fix work on relative path in `command` field of compilation database. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/Cl

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49042. hokein added a comment. Save the build directory in each error, making ClangTidyError not rely on ClangTidyContext. The benchmark result shows that using StringRef doesn't improve performance greatly. http://reviews.llvm.org/D17335 Files: clang-ti

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49044. hokein added a comment. Don't modify unrelevant code. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/Inputs/compilation-databas

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,1 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_ +Definitions This should be in one line? http://reviews.llvm.org

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

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

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM. I will commit the patch for you @omtcyf0. http://reviews.llvm.org/D17602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaration

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261868: [clang-tidy] update links to Google Code Style in docs (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17602?vs=49048&id=49052#toc Repository: rL LLVM http://reviews.

[clang-tools-extra] r261868 - [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Feb 25 08:31:10 2016 New Revision: 261868 URL: http://llvm.org/viewvc/llvm-project?rev=261868&view=rev Log: [clang-tidy] update links to Google Code Style in docs Summary: Because of the recent Google Code shutdown links to the Google Code Style up there are no longer re

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49054. hokein added a comment. Simplify test code. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/Inputs/compilation-database/template

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49060. hokein added a comment. 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/compilation-database/tem

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

2016-02-25 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:16 @@ +15,3 @@ +// RUN: FileCheck -input-file=%T/compilation-database-test/a/b.cpp %s -check-prefix=CHECK-FIX2 +// RUN: FileCheck -input-file=%T/compilation-database-test/b/b.cpp

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

2016-02-26 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49159. hokein marked an inline comment as done. hokein added a comment. Nit: correct a comment. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/cl

[clang-tools-extra] r261991 - [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Feb 26 03:19:33 2016 New Revision: 261991 URL: http://llvm.org/viewvc/llvm-project?rev=261991&view=rev Log: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database. Summary: The clang-tidy will trigger an assertion if it's not in the building directo

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

2016-02-26 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261991: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17335?vs=49159&id=49164#toc Repository:

Re: [PATCH] D17640: [clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check.

2016-02-26 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49186. hokein added a comment. Correct test code format. http://reviews.llvm.org/D17640 Files: clang-tidy/modernize/UseNullptrCheck.cpp test/clang-tidy/modernize-use-nullptr.cpp Index: test/clang-tidy/modernize-use-nullptr.cpp ==

Re: [PATCH] D17640: [clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check.

2016-02-26 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL262024: [clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17640?vs=49186&id=49187#toc Repository: rL LLVM

[clang-tools-extra] r262024 - [clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check.

2016-02-26 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Feb 26 09:34:35 2016 New Revision: 262024 URL: http://llvm.org/viewvc/llvm-project?rev=262024&view=rev Log: [clang-tidy] Fix an assertion failure in `modernize-use-nullptr` check. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/

Re: [PATCH] D19539: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a type with a template parameter as a base class.

2016-04-27 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 for the quick fix! http://reviews.llvm.org/D19539 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55170. hokein added a comment. Fix remaining nits. http://reviews.llvm.org/D18694 Files: clang-tidy/ClangTidyOptions.cpp clang-tidy/ClangTidyOptions.h clang-tidy/tool/ClangTidyMain.cpp test/clang-tidy/Inputs/explain-config/.clang-tidy test/clang-ti

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein marked 2 inline comments as done. Comment at: clang-tidy/ClangTidyOptions.h:233 @@ -200,2 +232,3 @@ - ClangTidyOptions getOptions(llvm::StringRef FileName) override; + std::vector getRawOptions( + llvm::StringRef FileName) override; alexfh wrote: >

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55172. hokein marked 2 inline comments as done. hokein added a comment. Update. http://reviews.llvm.org/D19482 Files: include-fixer/CMakeLists.txt include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/find-all-symbols/FindAllSymbols.h:38 @@ +37,3 @@ +private: + ResultReporter *const Reporter; +}; bkramer wrote: > nit: move const to the start of the line. Moving `const` to the start of line will change se

[clang-tools-extra] r267683 - [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 04:15:01 2016 New Revision: 267683 URL: http://llvm.org/viewvc/llvm-project?rev=267683&view=rev Log: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://rev

Re: [PATCH] D18694: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from.

2016-04-27 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 rL267683: [ClangTidy] Add an 'explain-checks' option to diagnose where each checks… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D18694?v

[clang-tools-extra] r267687 - Don't search compilation database in explain-check test.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 05:22:31 2016 New Revision: 267687 URL: http://llvm.org/viewvc/llvm-project?rev=267687&view=rev Log: Don't search compilation database in explain-check test. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19583 Modifie

Re: [PATCH] D19583: Don't search compilation database in explain-check test.

2016-04-27 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267687: Don't search compilation database in explain-check test. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19583?vs=55177&id=55178#toc Repository: rL LLVM http://review

[clang-tools-extra] r267700 - Fix a crash in cppcoreguidelines-pro-type-member-init when checking a type with a template parameter as a base class.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 07:17:04 2016 New Revision: 267700 URL: http://llvm.org/viewvc/llvm-project?rev=267700&view=rev Log: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a type with a template parameter as a base class. Summary: Fixed a crash in cppcoreguidelines-p

Re: [PATCH] D19539: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a type with a template parameter as a base class.

2016-04-27 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267700: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a type… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19539?vs=55026&id=55192#toc Repository: rL

[clang-tools-extra] r267711 - Remove explain-config testcase that detect hard-coded check.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 08:23:39 2016 New Revision: 267711 URL: http://llvm.org/viewvc/llvm-project?rev=267711&view=rev Log: Remove explain-config testcase that detect hard-coded check. Remove it for now, we need to better way to figure out how to test it. Modified: clang-tools-extra

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55220. hokein marked 13 inline comments as done. hokein added a comment. Add Daniel's comments. http://reviews.llvm.org/D19482 Files: include-fixer/CMakeLists.txt include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbo

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/find-all-symbols/FindAllSymbols.cpp:22-24 @@ +21,5 @@ + +using SymbolInfo = clang::find_all_symbols::SymbolInfo; +using SymbolType = clang::find_all_symbols::SymbolInfo::SymbolType; +using ContextType = clang::find_all_symbol

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55223. hokein added a comment. Fix a nit. http://reviews.llvm.org/D19482 Files: include-fixer/CMakeLists.txt include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbols/FindAllSymbols

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55226. hokein added a comment. Fix another nit. http://reviews.llvm.org/D19482 Files: include-fixer/CMakeLists.txt include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbols/FindAllS

[clang-tools-extra] r267719 - [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 09:27:05 2016 New Revision: 267719 URL: http://llvm.org/viewvc/llvm-project?rev=267719&view=rev Log: [include-fixer] Add a find-all-symbols tool for include-fixer. Summary: The find-all-symbols tool generates a yaml symbol database for include-fixer. The symbol ma

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-27 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267719: [include-fixer] Add a find-all-symbols tool for include-fixer. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19482?vs=55226&id=55227#toc Repository: rL LLVM http://

[clang-tools-extra] r267731 - Don't search compilation database in explain-check, fixing buildbot test

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 11:09:34 2016 New Revision: 267731 URL: http://llvm.org/viewvc/llvm-project?rev=267731&view=rev Log: Don't search compilation database in explain-check, fixing buildbot test failure. Modified: clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp Modified

[clang-tools-extra] r267736 - Fix explain-check failure test on Windows.

2016-04-27 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Apr 27 11:39:42 2016 New Revision: 267736 URL: http://llvm.org/viewvc/llvm-project?rev=267736&view=rev Log: Fix explain-check failure test on Windows. Modified: clang-tools-extra/trunk/test/clang-tidy/explain-checks.cpp Modified: clang-tools-extra/trunk/test/clang-ti

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein added a comment. @chapuni, thanks! Repository: rL LLVM http://reviews.llvm.org/D19482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19647: [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55398. hokein added a comment. Don't append absolute path to build directory. We will get the absolute file paths in some cases, such as STL. http://reviews.llvm.org/D19647 Files: include-fixer/find-all-symbols/FindAllSymbols.cpp Index: include-fixer/fin

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55412. hokein added a comment. Fix a nit. http://reviews.llvm.org/D19648 Files: include-fixer/CMakeLists.txt include-fixer/YamlXrefsDB.cpp include-fixer/YamlXrefsDB.h include-fixer/tool/ClangIncludeFixer.cpp test/include-fixer/Inputs/fake_yaml_db.y

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

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

[clang-tools-extra] r268017 - [include-fixer] Add Yaml database integration.

2016-04-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Apr 29 04:23:38 2016 New Revision: 268017 URL: http://llvm.org/viewvc/llvm-project?rev=268017&view=rev Log: [include-fixer] Add Yaml database integration. Reviewers: bkramer Subscribers: cfe-commits, klimek, djasper Differential Revision: http://reviews.llvm.org/D19648

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

2016-04-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268017: [include-fixer] Add Yaml database integration. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19648?vs=55412&id=3#toc Repository: rL LLVM http://reviews.llvm.org

[clang-tools-extra] r268019 - [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo.

2016-04-29 Thread Haojian Wu via cfe-commits
Author: hokein Date: Fri Apr 29 04:45:09 2016 New Revision: 268019 URL: http://llvm.org/viewvc/llvm-project?rev=268019&view=rev Log: [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo. Reviewers: bkramer Subscribers: cfe-commits Differential Revision: http:/

Re: [PATCH] D19647: [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo.

2016-04-29 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268019: [find-all-symbols] Save absolute file path instead of relative file path in… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19647?vs=55398&id=6#toc Repository: rL

Re: [PATCH] D19717: [find-all-symbols] Fix racy yaml file writing.

2016-04-29 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Thanks! LGTM with one nit. Comment at: include-fixer/find-all-symbols/SymbolInfo.h:92 @@ +91,3 @@ +/// \brief Write SymbolInfos to a stream (YAML format). +bool WriteSymbolInf

Re: [PATCH] D19720: [find-all-symbols] Parallelize the merge step.

2016-04-29 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp:107 @@ -94,3 +106,3 @@ } llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::F_None); Don't we need to all 'Pool.wait()' to wait for all working threads

Re: [PATCH] D19720: [find-all-symbols] Parallelize the merge step.

2016-04-29 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Just see you updated code. LGTM. http://reviews.llvm.org/D19720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

Re: [PATCH] D19183: [clang-tidy] Add modernize-make-shared check

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

Re: [PATCH] D19534: [clang-tidy] new google-default-arguments check

2016-05-02 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/google/DefaultArgumentsCheck.cpp:31 @@ +30,3 @@ + diag(MatchedDecl->getLocation(), + "default argument given for virtual or override method."); +} Usually, clang-tidy's warning message is not a sentence,

Re: [PATCH] D19755: [include-fixer] Fix Clang-tidy modernize-use-override and some Include What You Use warnings

2016-05-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! Repository: rL LLVM http://reviews.llvm.org/D19755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

Re: [PATCH] D19802: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class that initializes itself as a base

2016-05-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: test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp:342 @@ +341,3 @@ + +template +class PositiveSelfInitialization : NegativeAggregateType --

Re: [PATCH] D18919: [Clang-tidy] Add check "modernize use using"

2016-05-03 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM with some nits. Comment at: clang-tidy/modernize/UseUsingCheck.cpp:22 @@ +21,3 @@ +void UseUsingCheck::registerMatchers(MatchFinder *Finder) { + if (!getLangOpts().CPlusPlus) +return; Should be Cpl

[clang-tools-extra] r268369 - Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class that initializes itself as a base

2016-05-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 3 03:11:47 2016 New Revision: 268369 URL: http://llvm.org/viewvc/llvm-project?rev=268369&view=rev Log: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class that initializes itself as a base Summary: Fix a crash when a record type initializes i

Re: [PATCH] D19802: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class that initializes itself as a base

2016-05-03 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268369: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19802?vs=55904&id=55956#toc Repository: r

[clang-tools-extra] r268371 - [include-fixer] Abstract includeFixerMain function.

2016-05-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 3 03:38:35 2016 New Revision: 268371 URL: http://llvm.org/viewvc/llvm-project?rev=268371&view=rev Log: [include-fixer] Abstract includeFixerMain function. Modified: clang-tools-extra/trunk/include-fixer/tool/ClangIncludeFixer.cpp Modified: clang-tools-extra/trun

Re: [PATCH] D18919: [Clang-tidy] Add check "modernize use using"

2016-05-03 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/modernize/UseUsingCheck.cpp:22 @@ +21,3 @@ +void UseUsingCheck::registerMatchers(MatchFinder *Finder) { + if (!getLangOpts().CPlusPlus) +return; Prazek wrote: > hokein wrote: > > Should be CplusPlus11 here.

[clang-tools-extra] r268374 - Fix cppcoreguidelines-pro-type-member-init failure test on Windows.

2016-05-03 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 3 06:19:46 2016 New Revision: 268374 URL: http://llvm.org/viewvc/llvm-project?rev=268374&view=rev Log: Fix cppcoreguidelines-pro-type-member-init failure test on Windows. Modified: clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-type-member-init.cp

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56101. hokein marked 2 inline comments as done. hokein added a comment. Address review comments. http://reviews.llvm.org/D19816 Files: include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-al

Re: [PATCH] D19869: Added XrefsDBManager into include-fixer and made XrefsDB return SymbolInfo.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: include-fixer/InMemoryXrefsDB.cpp:24-26 @@ +23,5 @@ +for (const auto &Header : Entry.second) { + SymbolInfo Info; + Info.Name = Names.back(); + Info.FilePath = Header; + for (auto IdentiferContext = Names.rbegin() +

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56120. hokein added a comment. Improvements based on offline discussion. http://reviews.llvm.org/D19816 Files: include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbols/FindAllSymbols

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56121. hokein added a comment. Fix a nit. http://reviews.llvm.org/D19816 Files: include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbols/FindAllSymbols.h include-fixer/find-all-sym

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56130. hokein marked an inline comment as done. hokein added a comment. Update. http://reviews.llvm.org/D19816 Files: include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbols/FindAll

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp:418 @@ +417,3 @@ + + { +SymbolInfo Symbol = klimek wrote: > Any reason for the extra block here? Because I want to keep consistence with other test case

Re: [PATCH] D19913: Added static creators that create complete instances of SymbolInfo.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein added a comment. Not sure whether this is what @klimek expected.. You also need to update the FindAllSymbolsTests code (there is a CreateSymbolInfo function there). Comment at: include-fixer/find-all-symbols/SymbolInfo.cpp:91 @@ +90,3 @@ +void SymbolInfo::SetCommonInfo(

Re: [PATCH] D19913: Added static creators that create complete instances of SymbolInfo.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: unittests/include-fixer/find-all-symbols/FindAllSymbolsTests.cpp:92 @@ -107,5 +91,3 @@ -SymbolInfo -CreateSymbolInfo(StringRef Name, SymbolInfo::SymbolKind Type, - const std::string FilePath, int LineNumber, -

Re: [PATCH] D19913: Added static creators that create complete instances of SymbolInfo.

2016-05-04 Thread Haojian Wu via cfe-commits
hokein added a comment. It looks good to me now, but need to wait @klimek acceptance. Comment at: include-fixer/find-all-symbols/SymbolInfo.h:98-101 @@ +97,6 @@ + + static SymbolInfo + CreateFunctionSymbolInfo(const std::string &Name, const std::string &FilePath, +

Re: [PATCH] D19993: Fixed cppcoreguidelines-pro-type-member-init when checking records with indirect fields

2016-05-06 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:31 @@ +30,3 @@ +// Convenience utility to get a RecordDecl from a QualType. +const RecordDecl *getCanonicalRecordDecl(const QualType &Type) { + if (const auto *RT = Type.getCanonical

Re: [PATCH] D19534: [clang-tidy] new google-default-arguments check

2016-05-06 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/google-default-arguments.cpp:10 @@ +9,3 @@ + void f(int I, int J = 5); + // CHECK-MESSAGES: :[[@LINE-1]]:8: warning: default a

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56540. hokein marked 5 inline comments as done. hokein added a comment. - Address review comments. - Ignore using-declarations defined in class definition. http://reviews.llvm.org/D20018 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/Un

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein added a comment. I ran the check on LLVM project. The check found 8 hits: http://reviews.llvm.org/D20060 (Check all of them, no false positives). http://reviews.llvm.org/D20018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D19993: Fixed cppcoreguidelines-pro-type-member-init when checking records with indirect fields

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

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:39 @@ +38,3 @@ +// Ignores using-declrations defined in class definition. +if (isa(TargetDecl->getDeclContext())) + return; djasper wrote: > We should also ignore usin

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56555. hokein marked 2 inline comments as done. hokein added a comment. Update. http://reviews.llvm.org/D20018 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck.h test/clang-tidy/misc-unused-using-decls.cpp Index:

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56566. hokein added a comment. Address remaining comments. http://reviews.llvm.org/D20018 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck.h test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

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

[clang-tools-extra] r268917 - Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon May 9 08:37:12 2016 New Revision: 268917 URL: http://llvm.org/viewvc/llvm-project?rev=268917&view=rev Log: Support variables and functions types in misc-unused-using-decls. Summary: Fix PR27429. Reviewers: djasper Subscribers: cfe-commits Differential Revision: http:/

Re: [PATCH] D20018: Support variables and functions types in misc-unused-using-decls.

2016-05-09 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268917: Support variables and functions types in misc-unused-using-decls. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20018?vs=56566&id=56568#toc Repository: rL LLVM http

[clang-tools-extra] r268919 - [clang-tidy] new google-default-arguments check

2016-05-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon May 9 08:43:58 2016 New Revision: 268919 URL: http://llvm.org/viewvc/llvm-project?rev=268919&view=rev Log: [clang-tidy] new google-default-arguments check Summary: To check the google style guide rule here: https://google.github.io/styleguide/cppguide.html#Default_Argume

Re: [PATCH] D19534: [clang-tidy] new google-default-arguments check

2016-05-09 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL268919: [clang-tidy] new google-default-arguments check (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19534?vs=56529&id=56569#toc Repository: rL LLVM http://reviews.llvm.or

Re: [PATCH] D20066: [include-fixer] Autodetect yaml databases in parent directories.

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

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56579. hokein marked an inline comment as done. hokein added a comment. Address comments. http://reviews.llvm.org/D19816 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp clang-tidy/misc/UnusedUsingDeclsCheck.h include-fixer/find-all-symbols/CMakeLists.

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-09 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. Comment at: include-fixer/find-all-symbols/PragmaCommentHandler.cpp:27 @@ +26,3 @@ + SmallVector Matches; + if (!llvm::Regex(IWYUPragma).match(Text, &Matches)) +return false; bkramer wrote: > Isn't this regex just a c

Re: [PATCH] D19993: Fixed cppcoreguidelines-pro-type-member-init when checking records with indirect fields

2016-05-10 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269024: Fixed cppcoreguidelines-pro-type-member-init when checking records with… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D19993?vs=56439&id=56668#toc Repository: rL LLV

[clang-tools-extra] r269024 - Fixed cppcoreguidelines-pro-type-member-init when checking records with indirect fields

2016-05-10 Thread Haojian Wu via cfe-commits
Author: hokein Date: Tue May 10 02:42:19 2016 New Revision: 269024 URL: http://llvm.org/viewvc/llvm-project?rev=269024&view=rev Log: Fixed cppcoreguidelines-pro-type-member-init when checking records with indirect fields Summary: Fixed a crash in cppcoreguidelines-pro-type-member-init when check

Re: [PATCH] D20095: [find-all-symbols] Slim SymbolInfo.

2016-05-10 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56725. hokein marked an inline comment as done. hokein added a comment. Address comments. http://reviews.llvm.org/D20095 Files: include-fixer/InMemoryXrefsDB.cpp include-fixer/XrefsDBManager.cpp include-fixer/YamlXrefsDB.cpp include-fixer/find-all-sy

Re: [PATCH] D20094: [include-fixer] Add basic documentation.

2016-05-10 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/include-fixer.rst:36 @@ +35,3 @@ + +The include fixer contains :program:`find-all-symbols`, a tool to create a +symbol database in YAML format from a compilation database by parsing all A extra space before a. =

Re: [PATCH] D20095: [find-all-symbols] Slim SymbolInfo.

2016-05-11 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269162: [find-all-symbols] Slim SymbolInfo. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20095?vs=56725&id=56862#toc Repository: rL LLVM http://reviews.llvm.org/D20095 Fi

[clang-tools-extra] r269162 - [find-all-symbols] Slim SymbolInfo.

2016-05-11 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed May 11 03:38:21 2016 New Revision: 269162 URL: http://llvm.org/viewvc/llvm-project?rev=269162&view=rev Log: [find-all-symbols] Slim SymbolInfo. Summary: SymbolInfo has some optional fields, which is a bad-smell implementation. For now, we * remove the optional field sinc

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

2016-05-11 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 56872. hokein marked an inline comment as done. hokein added a comment. Rebase to master. http://reviews.llvm.org/D19816 Files: include-fixer/find-all-symbols/CMakeLists.txt include-fixer/find-all-symbols/FindAllSymbols.cpp include-fixer/find-all-symbo

Re: [PATCH] D19816: [find-all-symbols] Add IWYU private pragma support.

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

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