Semantic checks for 5 data constraints : C874, C875, C878, C880 and C881 are implemented.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, after fixing the clang-format problems.
flang/lib/Semantics/check-data.cpp | ||
---|---|---|
27–29 | I think this is clearer as: CheckIfConstantSubscript(std::get<0>(triplet.t)); CheckIfConstantSubscript(std::get<1>(triplet.t)); CheckIfConstantSubscript(std::get<2>(triplet.t)); |
flang/lib/Semantics/check-data.cpp | ||
---|---|---|
27–29 | Hi, Thank your for the comment! I have made the change suggested and fixed the formatting issues. |
Your code is still checking the *parse tree* for a data-ref rather than calculating a typed expression representation for the variable with AnalyzeExpr and applying constraint checks to its result.
clang-format: please reformat the code