Closed Bug 1324320 Opened 8 years ago Closed 8 years ago

Port the must-override check to the clang-tidy compatible framework

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
normal

Tracking

(firefox53 fixed)

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

No description provided.
Blocks: 1324315
Assignee: nobody → ehsan
Comment on attachment 8819703 [details] [diff] [review] Port the must-override check to the clang-tidy compatible framework Review of attachment 8819703 [details] [diff] [review]: ----------------------------------------------------------------- ::: build/clang-plugin/MustOverrideChecker.cpp @@ +9,5 @@ > + AstMatcher->addMatcher(cxxRecordDecl(isDefinition()).bind("class"), this); > +} > + > +void MustOverrideChecker::registerPPCallbacks(CompilerInstance& CI) { > + this->CI = &CI; I really don't like this, especially considering that in our "normal" use-case of being directly inside of clang instead of inside of clang-tidy this isn't a problem. I can't think of any other way to get access to the Sema object off of my head though, and re-implementing Sema::IsOverload in tree would be kinda nuts.
Attachment #8819703 - Flags: review?(michael) → review+
I share the same feeling. :(
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7d0b2be36233 Port the must-override check to the clang-tidy compatible framework; r=mystor
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/70a3d7e03d55 follow-up: Fix a mistake that breaks the build
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: