[PATCH] D46504: [clang-tidy] Profile is a per-AST (per-TU) data.
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 8 05:10:48 PDT 2018
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
LG with a couple of nits.
================
Comment at: clang-tidy/ClangTidyDiagnosticConsumer.cpp:181
std::unique_ptr<ClangTidyOptionsProvider> OptionsProvider)
- : DiagEngine(nullptr), OptionsProvider(std::move(OptionsProvider)),
- Profile(nullptr) {
+ : DiagEngine(nullptr), OptionsProvider(std::move(OptionsProvider)) {
// Before the first translation unit we can get errors related to command-line
----------------
lebedev.ri wrote:
> Eugene.Zelenko wrote:
> > Will be good idea to use default member initialization for DiagEngine too.
> Yes, but in the context of the diff that would be a completely unrelated change, i try to avoid those..
I'd better leave the initializer here for consistency with the other fields.
================
Comment at: clang-tidy/ClangTidyDiagnosticConsumer.h:168
+ /// \brief Control profile collection in clang-tidy.
+ void setCheckProfileData(bool Profile);
+ bool getCheckProfileData() const { return Profile; }
----------------
It seems to be `setEnableProfiling()` now.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D46504
More information about the cfe-commits
mailing list