Details
Diff Detail
Event Timeline
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
1221–1223 | DiagnosticsEngine‘s isIgnored? |
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
1221 | Rather than querying the diagnostics engine for each call to Check(), I think you can query this property once in the constructor and then do a simple member variable test here instead. | |
1231–1232 | Under what circumstances is this required (can we generate a test case for it)? |
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
1221 | Check() is called only once per object so there should be no difference. and DiagnosticsEngine::isIgnored requests the location of the location at which the warning is supposed to appear. this location is not know during the construction of the object. | |
1231–1232 | i managed to reproduced it https://godbolt.org/z/XqVNPD |
Rather than querying the diagnostics engine for each call to Check(), I think you can query this property once in the constructor and then do a simple member variable test here instead.