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)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox53 fixed)
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
(deleted),
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8819703 -
Flags: review?(michael)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ehsan
Comment 2•8 years ago
|
||
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+
Assignee | ||
Comment 3•8 years ago
|
||
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
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7d0b2be36233
https://hg.mozilla.org/mozilla-central/rev/70a3d7e03d55
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•