This is an archive of the discontinued LLVM Phabricator instance.

Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc
ClosedPublic

Authored by alexfh on Nov 4 2016, 2:31 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

alexfh updated this revision to Diff 76947.Nov 4 2016, 2:31 PM
alexfh retitled this revision from to Use AnalyzerOptions::getRegisteredCheckers() instead of clang/StaticAnalyzer/Checkers/Checkers.inc.
alexfh updated this object.
alexfh added reviewers: zaks.anna, hokein.
alexfh added a subscriber: cfe-commits.
zaks.anna accepted this revision.Nov 5 2016, 10:39 AM
zaks.anna edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Nov 5 2016, 10:39 AM
hokein added inline comments.Nov 7 2016, 10:35 AM
clang-tidy/ClangTidy.cpp
297 ↗(On Diff #76947)

Since the default argument of this function is false already. Can we use AnalyzerOptions::getRegisteredCheckers(); directly?

alexfh added inline comments.Nov 7 2016, 2:27 PM
clang-tidy/ClangTidy.cpp
297 ↗(On Diff #76947)

I wanted to be explicit about this choice on the caller side as well.

hokein added inline comments.Nov 7 2016, 4:02 PM
clang-tidy/ClangTidy.cpp
297 ↗(On Diff #76947)

I see, but IncludeExperimentalCheckers is not needed here. How about AnalyzerOptions::getRegisteredCheckers(/*IncludeExperimental=*/false);?

alexfh updated this revision to Diff 77112.Nov 7 2016, 4:10 PM
alexfh edited edge metadata.
  • Address review comments.
alexfh marked an inline comment as done.Nov 7 2016, 4:11 PM
hokein accepted this revision.Nov 7 2016, 4:12 PM
hokein edited edge metadata.

LGTM, thanks.

This revision was automatically updated to reflect the committed changes.