All call-sites of this function pass false for MissingOK, so remove the parameter. Also, all call-sites pass both LParenLoc and RParenLoc, so replace the conditional store with an assertion for both of them.
Details
Details
- Reviewers
aaron.ballman - Group Reviewers
Restricted Project - Commits
- rG9f6147900739: [clang][Parser][NFC] Simplify ParseParenExprOrCondition
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with a minor improvement.
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
1275–1281 | We can do better than an assert. |
clang/lib/Parse/ParseStmt.cpp | ||
---|---|---|
1286 | Nitpick edit for adding bugprone-argument-comment annotation. |
We can do better than an assert.