Details
Diff Detail
Event Timeline
lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp | ||
---|---|---|
28 | I'd like to see Stmt-related options together (PreStmt<Type1>, PostStmt<Type1>, PreStmt<Type2>, PostStmt<Type2>). Not sure, however. Anna, Artem, what do you think? Is there any style recommendation for that? | |
lib/StaticAnalyzer/Core/ExprEngine.cpp | ||
1990 | You should use a temporary node set for PreStmt and then use Dst for PostStmt. Please see an example in ExprEngine.cpp:1213. |
lib/StaticAnalyzer/Core/ExprEngine.cpp | ||
---|---|---|
1982 | auto *Node |
So we did run checkers for PreStmt but forgot PostStmt? Nice! Thanks for noticing and fixing.
lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp | ||
---|---|---|
28–31 | I agree that having one place to change stuff is better than having two places to change stuff, so i'd also prefer pre-post-pre-pos-...-pre-post. In the long term, when this list becomes very long, i'd still suggest we only make PreStmt<Stmt> and PostStmt<Stmt> and construct some dynamic switch in the implementation. | |
lib/StaticAnalyzer/Core/ExprEngine.cpp | ||
1982 | Indent seems to have moved. |
Looks good overall.
Please, include a more elaborate commit message, mentioning that you are adding a new callback.
lib/StaticAnalyzer/Core/ExprEngine.cpp | ||
---|---|---|
1974 | Let's keep the prefix of the old name for "checkerPreStmt" as it is more explicit - those are the states we get by running the checkers registered for preStmt. This is also more consistent with naming used elsewhere. (Not sure what to do about capitalization though. Looks like it's already inconsistent in this file. The LLVM coding style prefers lower letters, but this part of the analyzer has been written before that went into effect.) |
I'd like to see Stmt-related options together (PreStmt<Type1>, PostStmt<Type1>, PreStmt<Type2>, PostStmt<Type2>). Not sure, however. Anna, Artem, what do you think? Is there any style recommendation for that?