-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace libdparse with DMD in VcallCtorChecker #145
Replace libdparse with DMD in VcallCtorChecker #145
Conversation
Weird, it seems that dub does not know, or cannot find permissivevisitor.d . What the heck? |
Got it, it seems that the file has been moved to a different file: dlang/dmd#16875 |
This will prolly fix it: dlang/dmd#16906 |
c9ca7c9
to
43d6e7a
Compare
private enum string KEY = "dscanner.vcall_ctor"; | ||
private enum string MSG = "a virtual call inside a constructor may lead to unexpected results in the derived classes"; | ||
|
||
private static struct FuncContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like you doubled the tab size. Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then maybe try dfmt with 4 spaces instead of tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using a single TAB character (1 char in bottom right corner of the screenshot) that has the standard size of 4 spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does D's standard style use spaces instead of tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In dmd yes, we have spaces. I think what we are seing here is how a tab is interpreted (default to 4 spaces on your machine, default to 8 on github). Just use spaces and let's not waste more time on this nonsense.
import dscanner.analysis.helpers : assertAnalyzerWarnings; | ||
import std.stdio : stderr; | ||
import std.format : format; | ||
import dscanner.analysis.config : StaticAnalysisConfig, Check, disabledConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why double the tab?
#78 cont
This time without full semantic
I've also did my best to stick to the old libdparse implementation this time