[PATCH] D121019: [clang-tools-extra] Document clang tidy unit tests target

2022-03-07 Thread Richard via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGde29719af2c7: [clang-tools-extra] Document clang tidy unit tests target (authored by LegalizeAdulthood). Repository: rG LLVM Github Monorepo

[clang-tools-extra] de29719 - [clang-tools-extra] Document clang tidy unit tests target

2022-03-07 Thread via cfe-commits
: [clang-tools-extra] Document clang tidy unit tests target Differential Revision: https://reviews.llvm.org/D121019 Added: Modified: clang-tools-extra/docs/clang-tidy/Contributing.rst Removed: diff

[PATCH] D121019: [clang-tools-extra] Document clang tidy unit tests target

2022-03-07 Thread Richard via Phabricator via cfe-commits
tests for the public AST matcher classes and is a good source of testing idioms for matchers. +You can build the Clang-tidy unit tests by building the ``ClangTidyTests`` target. +Test targets in LLVM and Clang are excluded from the "build all" style action of +IDE-based CMake generato

[PATCH] D121019: [clang-tools-extra] Document clang tidy unit tests target

2022-03-07 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM! Comment at: clang-tools-extra/docs/clang-tidy/Contributing.rst:369 +Test targets in LLVM and Clang are excluded from the "build all" style action of +IDE based CMake generators, so you need to explicitl

[PATCH] D121019: [clang-tools-extra] Document clang tidy unit tests target

2022-03-05 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tools-extra/docs/clang-tidy/Contributing.rst:367 +You can build the Clang Tidy unit tests by building the ``ClangTidyTests`` target. +Test targets in LLVM and Clang are excluded from the "build all" style

[PATCH] D121019: [clang-tools-extra] Document clang tidy unit tests target

2022-03-04 Thread Richard via Phabricator via cfe-commits
-tidy/Contributing.rst @@ -364,6 +364,11 @@ test. The ``ASTMatchersTests`` target contains unit tests for the public AST matcher classes and is a good source of testing idioms for matchers. +You can build the Clang Tidy unit tests by building the ``ClangTidyTests`` target. +Test targets in LLVM

Re: clang-tidy unit tests

2015-09-02 Thread Aaron Ballman via cfe-commits
On Wed, Sep 2, 2015 at 10:44 AM, Alexander Kornienko wrote: > Looks like we need to call both ClangTidyContext::setASTContext, > ClangTidyCheck::registerMatchers and ClangTidyContext::setCurrentFile in > TestClangTidyAction::CreateASTConsumer. Maybe something else will need to > move there as well

Re: clang-tidy unit tests

2015-09-02 Thread Alexander Kornienko via cfe-commits
Looks like we need to call both ClangTidyContext::setASTContext, ClangTidyCheck::registerMatchers and ClangTidyContext::setCurrentFile in TestClangTidyAction::CreateASTConsumer. Maybe something else will need to move there as well. -- Alex On Wed, Sep 2, 2015 at 4:09 PM, Aaron Ballman wrote: >

clang-tidy unit tests

2015-09-02 Thread Aaron Ballman via cfe-commits
I ran into an issue with the runCheckOnCode() function from clang-tidy's unit tests, and I am not familiar enough with the way tool invocation works to suggest a correct fix. ClangTidyContext::setASTContext() is what sets up the language options for the ClangTidyContext object currently. However,